diff --git a/generation_config.yaml b/generation_config.yaml index e6845cad5e4b..cef8af666142 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.68.0 -googleapis_commitish: 7e8511aad98db8480de0fd594c1cfd09a32b1cf3 +googleapis_commitish: 0b3dec847f1045e47991c1539d4c69d8b025cfe8 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..112868d6de87 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 @@ -575,6 +575,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..94573f3e7906 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 @@ -530,6 +530,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 +2042,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 +3941,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 +4670,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/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/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-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-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/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..3e51eff7f25c 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();
                                                           }
                                                         
                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java
                                                        index a5a1036d2fa6..c09c36e0ddf4 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java
                                                        @@ -403,6 +403,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/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java
                                                        index 257081b2419b..3e2c2f9bcef0 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java
                                                        @@ -435,6 +435,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/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java
                                                        index 2543326007fd..bb63b6a62413 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java
                                                        @@ -324,6 +324,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/SipTrunksStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java
                                                        index 17c650043a6a..56ca23715986 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java
                                                        @@ -401,6 +401,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/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java
                                                        index 7dfc0ee6aeb0..1b337796fa7a 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.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/v2beta1/stub/Version.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/Version.java
                                                        new file mode 100644
                                                        index 000000000000..be5846935ffc
                                                        --- /dev/null
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/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.v2beta1.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/v2beta1/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java
                                                        index f3ff81006a42..625f6a343f2c 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java
                                                        @@ -401,6 +401,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                             return LibraryMetadata.newBuilder()
                                                                 .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                 .setRepository("googleapis/google-cloud-java")
                                                        +        .setVersion(com.google.cloud.dialogflow.v2beta1.stub.Version.VERSION)
                                                                 .build();
                                                           }
                                                         
                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json
                                                        index a03123a82502..242540b754b9 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json
                                                        @@ -1151,6 +1151,42 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.CesAppSpec",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.CesAppSpec$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.CesToolSpec",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.CesToolSpec$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -1376,6 +1412,33 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.Conversation$GeneratorContext",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.Conversation$GeneratorContext$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.Conversation$GeneratorContext$GeneratorType",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.Conversation$LifecycleState",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -2033,6 +2096,15 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.DatastoreResponseReason",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.DeleteAgentRequest",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -4310,6 +4382,51 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo$IngestedParameterDebugInfo",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo$IngestedParameterDebugInfo$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo$IngestedParameterDebugInfo$IngestionStatus",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.InitializeEncryptionSpecMetadata",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -5246,6 +5363,60 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$KnowledgeAssistBehavior",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$KnowledgeAssistBehavior$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryCategorizationFailureReason",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationFailureReason",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.KnowledgeBase",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -6443,6 +6614,42 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo$SearchKnowledgeBehavior",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo$SearchKnowledgeBehavior$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.SearchKnowledgeRequest",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -6686,6 +6893,42 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ServiceLatency",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ServiceLatency$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ServiceLatency$InternalServiceLatency",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ServiceLatency$InternalServiceLatency$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.SessionEntityType",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -7118,6 +7361,24 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse$Summary$SummarySection",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse$Summary$SummarySection$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest",
                                                             "queryAllDeclaredConstructors": true,
                                                        @@ -8117,6 +8378,24 @@
                                                             "allDeclaredClasses": true,
                                                             "allPublicClasses": true
                                                           },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ToolsetTool",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                        +  {
                                                        +    "name": "com.google.cloud.dialogflow.v2.ToolsetTool$Builder",
                                                        +    "queryAllDeclaredConstructors": true,
                                                        +    "queryAllPublicConstructors": true,
                                                        +    "queryAllDeclaredMethods": true,
                                                        +    "allPublicMethods": true,
                                                        +    "allDeclaredClasses": true,
                                                        +    "allPublicClasses": true
                                                        +  },
                                                           {
                                                             "name": "com.google.cloud.dialogflow.v2.TrainAgentRequest",
                                                             "queryAllDeclaredConstructors": true,
                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientHttpJsonTest.java
                                                        index 7af4a8b2325a..32917e25f5b6 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientHttpJsonTest.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/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);
                                                         
                                                        @@ -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/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/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/versions.txt b/versions.txt index 9ccbc9229700..3302c386c7bc 100644 --- a/versions.txt +++ b/versions.txt @@ -587,7 +587,7 @@ grpc-google-cloud-tpu-v2:2.89.0:2.90.0-SNAPSHOT google-cloud-datalineage:0.80.0:0.81.0-SNAPSHOT proto-google-cloud-datalineage-v1:0.80.0:0.81.0-SNAPSHOT grpc-google-cloud-datalineage-v1:0.80.0:0.81.0-SNAPSHOT -google-iam-policy:1.86.0:1.87.0-SNAPSHOT +google-iam-policy:1.62.0:1.62.1-SNAPSHOT proto-google-cloud-build-v2:3.90.0:3.91.0-SNAPSHOT grpc-google-cloud-build-v2:3.90.0:3.91.0-SNAPSHOT google-cloud-advisorynotifications:0.77.0:0.78.0-SNAPSHOT @@ -993,7 +993,6 @@ proto-google-iam-v1:1.62.0:1.62.1-SNAPSHOT grpc-google-iam-v1:1.62.0:1.62.1-SNAPSHOT proto-google-iam-v2beta:1.62.0:1.62.1-SNAPSHOT grpc-google-iam-v2beta:1.62.0:1.62.1-SNAPSHOT -google-iam-policy:1.62.0:1.62.1-SNAPSHOT proto-google-iam-v2:1.62.0:1.62.1-SNAPSHOT grpc-google-iam-v2:1.62.0:1.62.1-SNAPSHOT google-cloud-core:2.66.0:2.66.1-SNAPSHOT