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

ListLocations - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    RunSession - *

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

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

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

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

      StreamRunSession + *

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

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

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

      + *
        + *
      • streamRunSessionCallable() + *

      + * + * + * *

      BidiRunSession *

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

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

      ListLocations - *

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

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

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

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

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

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

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

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

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

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

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

        Sample code: + * + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        ListLocations - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          ListLocations - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ default void runSession( @@ -197,6 +238,27 @@ default void runSession( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunSessionMethod(), responseObserver); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + default void streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamRunSessionMethod(), responseObserver); + } + /** * * @@ -303,8 +365,7 @@ protected SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public void runSession( @@ -314,6 +375,29 @@ public void runSession( getChannel().newCall(getRunSessionMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + public void streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamRunSessionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -405,8 +489,7 @@ protected SessionServiceBlockingV2Stub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.cloud.ces.v1.RunSessionResponse runSession( @@ -415,6 +498,27 @@ public com.google.cloud.ces.v1.RunSessionResponse runSession( getChannel(), getRunSessionMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall + streamRunSession(com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } + /** * * @@ -507,8 +611,7 @@ protected SessionServiceBlockingStub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.cloud.ces.v1.RunSessionResponse runSession( @@ -516,6 +619,26 @@ public com.google.cloud.ces.v1.RunSessionResponse runSession( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRunSessionMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Initiates a single-turn interaction with the CES agent. Uses server-side
            +     * streaming to deliver incremental results and partial responses as they are
            +     * generated.
            +     * By default, complete responses (e.g., messages from callbacks or full LLM
            +     * responses) are sent to the client as soon as they are available. To enable
            +     * streaming individual text chunks directly from the model, set
            +     * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming]
            +     * to true.
            +     * 
            + */ + public java.util.Iterator streamRunSession( + com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } } /** @@ -541,8 +664,7 @@ protected SessionServiceFutureStub build( * * *
            -     * Initiates a single turn interaction with the CES agent within a
            -     * session.
            +     * Initiates a single-turn interaction with the CES agent within a session.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< @@ -554,7 +676,8 @@ protected SessionServiceFutureStub build( } private static final int METHODID_RUN_SESSION = 0; - private static final int METHODID_BIDI_RUN_SESSION = 1; + private static final int METHODID_STREAM_RUN_SESSION = 1; + private static final int METHODID_BIDI_RUN_SESSION = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -579,6 +702,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_RUN_SESSION: + serviceImpl.streamRunSession( + (com.google.cloud.ces.v1.RunSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -608,6 +737,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse>(service, METHODID_RUN_SESSION))) + .addMethod( + getStreamRunSessionMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1.RunSessionRequest, + com.google.cloud.ces.v1.RunSessionResponse>( + service, METHODID_STREAM_RUN_SESSION))) .addMethod( getBidiRunSessionMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( @@ -667,6 +803,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SessionServiceFileDescriptorSupplier()) .addMethod(getRunSessionMethod()) + .addMethod(getStreamRunSessionMethod()) .addMethod(getBidiRunSessionMethod()) .build(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java index a77500b2fd27..4cbdf6239c9c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java @@ -345,13 +345,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020DeleteAppRequest\022,\n" + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\021\n" - + "\004etag\030\002 \001(\tB\003\340A\001\"\351\001\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\245\002\n" + "\020ExportAppRequest\022,\n" + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022N\n\r" + "export_format\030\002 \001(\01622.google.c" + "loud.ces.v1.ExportAppRequest.ExportFormatB\003\340A\002\022\024\n" - + "\007gcs_uri\030\003 \001(\tB\003\340A\001\"A\n" + + "\007gcs_uri\030\003 \001(\tB\003\340A\001\022:\n" + + "\013app_version\030\004 \001(\tB%\340A\001\372A\037\n" + + "\035ces.googleapis.com/AppVersion\"A\n" + "\014ExportFormat\022\035\n" + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" + "\004JSON\020\001\022\010\n" @@ -367,13 +369,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\036\340A\002\372A\030\022\026ces.googleapis.com/App\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\001\022\023\n" + "\006app_id\030\003 \001(\tB\003\340A\001\022P\n" - + "\016import_options\030\006 \001(\01323.google.cl" - + "oud.ces.v1.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" - + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\362\001\n" - + "\r" + + "\016import_options\030\006" + + " \001(\01323.google.cloud.ces.v1.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" + + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\362\001\n\r" + "ImportOptions\022y\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162N.google.cloud.ces.v1.Impor" - + "tAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162N.googl" + + "e.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007REPLACE\020\001\022\r\n" @@ -429,8 +430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032ces.googleapis.com/Example\"\227\001\n" + "\024CreateExampleRequest\0222\n" + "\006parent\030\001 \001(" - + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n" - + "\n" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n\n" + "example_id\030\002 \001(\tB\003\340A\001\0222\n" + "\007example\030\003" + " \001(\0132\034.google.cloud.ces.v1.ExampleB\003\340A\002\"\200\001\n" @@ -473,18 +473,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022=\n" - + "\006source\030\005 \001(\0162(.goog" - + "le.cloud.ces.v1.Conversation.SourceB\003\340A\001\022>\n" - + "\007sources\030\006" - + " \003(\0162(.google.cloud.ces.v1.Conversation.SourceB\003\340A\001\"n\n" + + "\006source\030\005" + + " \001(\0162(.google.cloud.ces.v1.Conversation.SourceB\003\340A\001\022>\n" + + "\007sources\030\006 \003(\0162(." + + "google.cloud.ces.v1.Conversation.SourceB\003\340A\001\"n\n" + "\031ListConversationsResponse\0228\n\r" + "conversations\030\001 \003(\0132!.google.cloud.ces.v1.Conversation\022\027\n" + "\017next_page_token\030\002 \001(\t\"\220\001\n" + "\026GetConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022?\n" - + "\006source\030\002 \001(\0162(.goo" - + "gle.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\223\001\n" + + "\006source\030\002" + + " \001(\0162(.google.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\223\001\n" + "\031DeleteConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022?\n" @@ -619,194 +619,195 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034ces.googleapis.com/Changelog2\376C\n" + "\014AgentService\022\222\001\n" - + "\010ListApps\022$.google.cloud.ces.v1.ListAppsRequ" - + "est\032%.google.cloud.ces.v1.ListAppsRespon" - + "se\"9\332A\006parent\202\323\344\223\002*\022(/v1/{parent=projects/*/locations/*}/apps\022\177\n" - + "\006GetApp\022\".google.cloud.ces.v1.GetAppRequest\032\030.google.clo" - + "ud.ces.v1.App\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/apps/*}\022\304\001\n" - + "\tCreat" - + "eApp\022%.google.cloud.ces.v1.CreateAppRequest\032\035.google.longrunning.Operation\"q\312A\030\n" + + "\010ListApps\022$.google.cloud.ces.v1.ListAppsRequest\032%.google.cloud.c" + + "es.v1.ListAppsResponse\"9\332A\006parent\202\323\344\223\002*\022" + + "(/v1/{parent=projects/*/locations/*}/apps\022\177\n" + + "\006GetApp\022\".google.cloud.ces.v1.GetApp" + + "Request\032\030.google.cloud.ces.v1.App\"7\332A\004na" + + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/apps/*}\022\304\001\n" + + "\tCreateApp\022%.google.cloud." + + "ces.v1.CreateAppRequest\032\035.google.longrunning.Operation\"q\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" - + "parent,app\202\323\344\223\002/\"(/v1/{parent=projects/*/locations/*}/apps:\003app\022\231\001\n" - + "\tUpdateApp\022%.google.cloud.ces.v1.UpdateAppReque" - + "st\032\030.google.cloud.ces.v1.App\"K\332A\017app,upd" - + "ate_mask\202\323\344\223\00232,/v1/{app.name=projects/*/locations/*/apps/*}:\003app\022\267\001\n" - + "\tDeleteApp\022" - + "%.google.cloud.ces.v1.DeleteAppRequest\032\035.google.longrunning.Operation\"d\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\002**(/v1/{name=projects/*/locations/*/apps/*}\022\300\001\n" - + "\tExportApp\022%.google.cloud" - + ".ces.v1.ExportAppRequest\032\035.google.longrunning.Operation\"m\312A&\n" - + "\021ExportAppResponse\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\0027\"2/v1/{na" - + "me=projects/*/locations/*/apps/*}:exportApp:\001*\022\327\001\n" - + "\tImportApp\022%.google.cloud.ces." - + "v1.ImportAppRequest\032\035.google.longrunning.Operation\"\203\001\312A&\n" - + "\021ImportAppResponse\022\021OperationMetadata\332A\032parent,display_name,app" - + "_id\202\323\344\223\0027\"2/v1/{parent=projects/*/locations/*}/apps:importApp:\001*\022\241\001\n\n" - + "ListAgents\022&.google.cloud.ces.v1.ListAgentsRequest\032" - + "\'.google.cloud.ces.v1.ListAgentsResponse" - + "\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*/apps/*}/agents\022\216\001\n" - + "\010GetAgent\022$.google.cloud.ces.v1.GetAgentRequest\032" - + "\032.google.cloud.ces.v1.Agent\"@\332A\004name\202\323\344\223" - + "\0023\0221/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\273\001\n" - + "\013CreateAgent\022\'.google.cloud.ces.v1.CreateAgentRequest\032\032.google." - + "cloud.ces.v1.Agent\"g\332A\025parent,agent,agen" - + "t_id\332A\014parent,agent\202\323\344\223\002:\"1/v1/{parent=p" - + "rojects/*/locations/*/apps/*}/agents:\005agent\022\256\001\n" - + "\013UpdateAgent\022\'.google.cloud.ces.v1.UpdateAgentRequest\032\032.google.cloud.ces." - + "v1.Agent\"Z\332A\021agent,update_mask\202\323\344\223\002@27/v" - + "1/{agent.name=projects/*/locations/*/apps/*/agents/*}:\005agent\022\220\001\n" - + "\013DeleteAgent\022\'.google.cloud.ces.v1.DeleteAgentRequest\032\026." - + "google.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v" - + "1/{name=projects/*/locations/*/apps/*/agents/*}\022\251\001\n" - + "\014ListExamples\022(.google.cloud.ces.v1.ListExamplesRequest\032).google.clou" - + "d.ces.v1.ListExamplesResponse\"D\332A\006parent" - + "\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*/apps/*}/examples\022\226\001\n\n" - + "GetExample\022&.google.cloud.ces.v1.GetExampleRequest\032\034.goo" - + "gle.cloud.ces.v1.Example\"B\332A\004name\202\323\344\223\0025\022" - + "3/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\313\001\n\r" - + "CreateExample\022).google.cloud.ces.v1.CreateExampleRequest\032\034.goog" - + "le.cloud.ces.v1.Example\"q\332A\031parent,examp" - + "le,example_id\332A\016parent,example\202\323\344\223\002>\"3/v" - + "1/{parent=projects/*/locations/*/apps/*}/examples:\007example\022\274\001\n\r" - + "UpdateExample\022).google.cloud.ces.v1.UpdateExampleRequest\032" - + "\034.google.cloud.ces.v1.Example\"b\332A\023exampl" - + "e,update_mask\202\323\344\223\002F2;/v1/{example.name=p" - + "rojects/*/locations/*/apps/*/examples/*}:\007example\022\226\001\n\r" - + "DeleteExample\022).google.cloud.ces.v1.DeleteExampleRequest\032\026.google." - + "protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{name" - + "=projects/*/locations/*/apps/*/examples/*}\022\235\001\n" - + "\tListTools\022%.google.cloud.ces.v1.ListToolsRequest\032&.google.cloud.ces.v1.Li" - + "stToolsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{p" - + "arent=projects/*/locations/*/apps/*}/tools\022\212\001\n" - + "\007GetTool\022#.google.cloud.ces.v1.Get" - + "ToolRequest\032\031.google.cloud.ces.v1.Tool\"?" - + "\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\275\001\n" - + "\021ListConversations\022-.google.cloud.ces.v1.ListConversa" - + "tionsRequest\032..google.cloud.ces.v1.ListC" - + "onversationsResponse\"I\332A\006parent\202\323\344\223\002:\0228/" - + "v1/{parent=projects/*/locations/*/apps/*}/conversations\022\252\001\n" - + "\017GetConversation\022+.google.cloud.ces.v1.GetConversationRequest" - + "\032!.google.cloud.ces.v1.Conversation\"G\332A\004" - + "name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\245\001\n" - + "\022DeleteConversation\022..google.cloud.ces.v1.Delete" - + "ConversationRequest\032\026.google.protobuf.Em" - + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\202\002\n" - + "\030BatchDeleteConversations\0224.google.cloud" - + ".ces.v1.BatchDeleteConversationsRequest\032\035.google.longrunning.Operation\"\220\001\312A5\n" - + " BatchDeleteConversationsResponse\022\021Operatio" - + "nMetadata\332A\006parent\202\323\344\223\002I\"D/v1/{parent=pr" - + "ojects/*/locations/*/apps/*}/conversations:batchDelete:\001*\022\263\001\n\n" - + "CreateTool\022&.google.cloud.ces.v1.CreateToolRequest\032\031.googl" - + "e.cloud.ces.v1.Tool\"b\332A\023parent,tool,tool" - + "_id\332A\013parent,tool\202\323\344\223\0028\"0/v1/{parent=pro" - + "jects/*/locations/*/apps/*}/tools:\004tool\022\247\001\n\n" - + "UpdateTool\022&.google.cloud.ces.v1.UpdateToolRequest\032\031.google.cloud.ces.v1.Too" - + "l\"V\332A\020tool,update_mask\202\323\344\223\002=25/v1/{tool." - + "name=projects/*/locations/*/apps/*/tools/*}:\004tool\022\215\001\n\n" - + "DeleteTool\022&.google.cloud.ces.v1.DeleteToolRequest\032\026.google.protob" - + "uf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\261\001\n" - + "\016ListGuardrails\022*.google.cloud.ces.v1.ListG" - + "uardrailsRequest\032+.google.cloud.ces.v1.L" - + "istGuardrailsResponse\"F\332A\006parent\202\323\344\223\0027\0225" - + "/v1/{parent=projects/*/locations/*/apps/*}/guardrails\022\236\001\n" - + "\014GetGuardrail\022(.google.cloud.ces.v1.GetGuardrailRequest\032\036.googl" - + "e.cloud.ces.v1.Guardrail\"D\332A\004name\202\323\344\223\0027\022" - + "5/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\333\001\n" - + "\017CreateGuardrail\022+.google.cloud.ces.v1.CreateGuardrailRequest\032" - + "\036.google.cloud.ces.v1.Guardrail\"{\332A\035pare" - + "nt,guardrail,guardrail_id\332A\020parent,guard" - + "rail\202\323\344\223\002B\"5/v1/{parent=projects/*/locations/*/apps/*}/guardrails:" - + "\tguardrail\022\312\001\n" - + "\017UpdateGuardrail\022+.google.cloud.ces.v1.U" - + "pdateGuardrailRequest\032\036.google.cloud.ces" - + ".v1.Guardrail\"j\332A\025guardrail,update_mask\202" - + "\323\344\223\002L2?/v1/{guardrail.name=projects/*/locations/*/apps/*/guardrails/*}:" - + "\tguardrail\022\234\001\n" - + "\017DeleteGuardrail\022+.google.cloud.ces" - + ".v1.DeleteGuardrailRequest\032\026.google.prot" - + "obuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1/{name=pro" - + "jects/*/locations/*/apps/*/guardrails/*}\022\265\001\n" - + "\017ListDeployments\022+.google.cloud.ces.v1.ListDeploymentsRequest\032,.google.cloud" - + ".ces.v1.ListDeploymentsResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/locations/*/apps/*}/deployments\022\242\001\n\r" - + "GetDeployment\022).google.cloud.ces.v1.GetDeploymentRe" - + "quest\032\037.google.cloud.ces.v1.Deployment\"E" - + "\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\344\001\n" - + "\020CreateDeployment\022,.google.cloud.ces.v1.CreateD" - + "eploymentRequest\032\037.google.cloud.ces.v1.D" - + "eployment\"\200\001\332A\037parent,deployment,deploym" - + "ent_id\332A\021parent,deployment\202\323\344\223\002D\"6/v1/{p" - + "arent=projects/*/locations/*/apps/*}/deployments:\n" + + "parent,app\202\323\344\223" + + "\002/\"(/v1/{parent=projects/*/locations/*}/apps:\003app\022\231\001\n" + + "\tUpdateApp\022%.google.cloud.ces.v1.UpdateAppRequest\032\030.google.cloud.ce" + + "s.v1.App\"K\332A\017app,update_mask\202\323\344\223\00232,/v1/" + + "{app.name=projects/*/locations/*/apps/*}:\003app\022\267\001\n" + + "\tDeleteApp\022%.google.cloud.ces.v" + + "1.DeleteAppRequest\032\035.google.longrunning.Operation\"d\312A*\n" + + "\025google.protobuf.Empty\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002**(/v1/{name=projects/*/locations/*/apps/*}\022\300\001\n" + + "\tExportApp\022%.google.cloud.ces.v1.ExportAppReq" + + "uest\032\035.google.longrunning.Operation\"m\312A&\n" + + "\021ExportAppResponse\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0027\"2/v1/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\327\001\n" + + "\tImportApp" + + "\022%.google.cloud.ces.v1.ImportAppRequest\032\035.google.longrunning.Operation\"\203\001\312A&\n" + + "\021ImportAppResponse\022\021OperationMetadata\332A\032par" + + "ent,display_name,app_id\202\323\344\223\0027\"2/v1/{pare" + + "nt=projects/*/locations/*}/apps:importApp:\001*\022\241\001\n\n" + + "ListAgents\022&.google.cloud.ces.v1.ListAgentsRequest\032\'.google.cloud.ces.v" + + "1.ListAgentsResponse\"B\332A\006parent\202\323\344\223\0023\0221/" + + "v1/{parent=projects/*/locations/*/apps/*}/agents\022\216\001\n" + + "\010GetAgent\022$.google.cloud.ces.v1.GetAgentRequest\032\032.google.cloud.ces.v" + + "1.Agent\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\273\001\n" + + "\013CreateAgent\022\'.google.cloud.ces.v1.CreateAg" + + "entRequest\032\032.google.cloud.ces.v1.Agent\"g" + + "\332A\025parent,agent,agent_id\332A\014parent,agent\202" + + "\323\344\223\002:\"1/v1/{parent=projects/*/locations/*/apps/*}/agents:\005agent\022\256\001\n" + + "\013UpdateAgent\022\'.google.cloud.ces.v1.UpdateAgentRequest" + + "\032\032.google.cloud.ces.v1.Agent\"Z\332A\021agent,u" + + "pdate_mask\202\323\344\223\002@27/v1/{agent.name=projec" + + "ts/*/locations/*/apps/*/agents/*}:\005agent\022\220\001\n" + + "\013DeleteAgent\022\'.google.cloud.ces.v1.D" + + "eleteAgentRequest\032\026.google.protobuf.Empt" + + "y\"@\332A\004name\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\251\001\n" + + "\014ListExamples\022(.google.cloud.ces.v1.ListExamplesR" + + "equest\032).google.cloud.ces.v1.ListExample" + + "sResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=" + + "projects/*/locations/*/apps/*}/examples\022\226\001\n\n" + + "GetExample\022&.google.cloud.ces.v1.GetExampleRequest\032\034.google.cloud.ces.v1.Exa" + + "mple\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\313\001\n\r" + + "CreateExample\022).google.cloud.ces.v1.CreateE" + + "xampleRequest\032\034.google.cloud.ces.v1.Exam" + + "ple\"q\332A\031parent,example,example_id\332A\016pare" + + "nt,example\202\323\344\223\002>\"3/v1/{parent=projects/*" + + "/locations/*/apps/*}/examples:\007example\022\274\001\n\r" + + "UpdateExample\022).google.cloud.ces.v1.UpdateExampleRequest\032\034.google.cloud.ces.v" + + "1.Example\"b\332A\023example,update_mask\202\323\344\223\002F2" + + ";/v1/{example.name=projects/*/locations/*/apps/*/examples/*}:\007example\022\226\001\n\r" + + "DeleteExample\022).google.cloud.ces.v1.DeleteExam" + + "pleRequest\032\026.google.protobuf.Empty\"B\332A\004n" + + "ame\202\323\344\223\0025*3/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\235\001\n" + + "\tListTools\022%.google.cloud.ces.v1.ListToolsRequest\032&.go" + + "ogle.cloud.ces.v1.ListToolsResponse\"A\332A\006" + + "parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*/apps/*}/tools\022\212\001\n" + + "\007GetTool\022#.google.cloud.ces.v1.GetToolRequest\032\031.google" + + ".cloud.ces.v1.Tool\"?\332A\004name\202\323\344\223\0022\0220/v1/{" + + "name=projects/*/locations/*/apps/*/tools/*}\022\275\001\n" + + "\021ListConversations\022-.google.cloud.ces.v1.ListConversationsRequest\032..googl" + + "e.cloud.ces.v1.ListConversationsResponse" + + "\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*/apps/*}/conversations\022\252\001\n" + + "\017GetConversation\022+.google.cloud.ces.v1.Ge" + + "tConversationRequest\032!.google.cloud.ces." + + "v1.Conversation\"G\332A\004name\202\323\344\223\002:\0228/v1/{nam" + + "e=projects/*/locations/*/apps/*/conversations/*}\022\245\001\n" + + "\022DeleteConversation\022..google.cloud.ces.v1.DeleteConversationRequest\032" + + "\026.google.protobuf.Empty\"G\332A\004name\202\323\344\223\002:*8" + + "/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\202\002\n" + + "\030BatchDeleteConversations\0224.google.cloud.ces.v1.BatchDeleteC" + + "onversationsRequest\032\035.google.longrunning.Operation\"\220\001\312A5\n" + + " BatchDeleteConversationsResponse\022\021OperationMetadata\332A\006parent\202\323" + + "\344\223\002I\"D/v1/{parent=projects/*/locations/*" + + "/apps/*}/conversations:batchDelete:\001*\022\263\001\n\n" + + "CreateTool\022&.google.cloud.ces.v1.Creat" + + "eToolRequest\032\031.google.cloud.ces.v1.Tool\"" + + "b\332A\023parent,tool,tool_id\332A\013parent,tool\202\323\344" + + "\223\0028\"0/v1/{parent=projects/*/locations/*/apps/*}/tools:\004tool\022\247\001\n\n" + + "UpdateTool\022&.google.cloud.ces.v1.UpdateToolRequest\032\031.goo" + + "gle.cloud.ces.v1.Tool\"V\332A\020tool,update_ma" + + "sk\202\323\344\223\002=25/v1/{tool.name=projects/*/locations/*/apps/*/tools/*}:\004tool\022\215\001\n\n" + + "DeleteTool\022&.google.cloud.ces.v1.DeleteToolReq" + + "uest\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344" + + "\223\0022*0/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\261\001\n" + + "\016ListGuardrails\022*.google.cloud.ces.v1.ListGuardrailsRequest\032+.g" + + "oogle.cloud.ces.v1.ListGuardrailsRespons" + + "e\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*/locations/*/apps/*}/guardrails\022\236\001\n" + + "\014GetGuardrail\022(.google.cloud.ces.v1.GetGuar" + + "drailRequest\032\036.google.cloud.ces.v1.Guard" + + "rail\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\333\001\n" + + "\017CreateGuardrail\022+.google.cloud.ces.v1.Cre" + + "ateGuardrailRequest\032\036.google.cloud.ces.v" + + "1.Guardrail\"{\332A\035parent,guardrail,guardra" + + "il_id\332A\020parent,guardrail\202\323\344\223\002B\"5/v1/{par" + + "ent=projects/*/locations/*/apps/*}/guardrails:\tguardrail\022\312\001\n" + + "\017UpdateGuardrail\022+.google.cloud.ces.v1.UpdateGuardrailReques" + + "t\032\036.google.cloud.ces.v1.Guardrail\"j\332A\025gu" + + "ardrail,update_mask\202\323\344\223\002L2?/v1/{guardrai" + + "l.name=projects/*/locations/*/apps/*/guardrails/*}:\tguardrail\022\234\001\n" + + "\017DeleteGuardrail\022+.google.cloud.ces.v1.DeleteGuardrailR" + + "equest\032\026.google.protobuf.Empty\"D\332A\004name\202" + + "\323\344\223\0027*5/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\265\001\n" + + "\017ListDeployments\022+.google.cloud.ces.v1.ListDeploymentsRe" + + "quest\032,.google.cloud.ces.v1.ListDeployme" + + "ntsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{paren" + + "t=projects/*/locations/*/apps/*}/deployments\022\242\001\n\r" + + "GetDeployment\022).google.cloud.ces.v1.GetDeploymentRequest\032\037.google.cloud" + + ".ces.v1.Deployment\"E\332A\004name\202\323\344\223\0028\0226/v1/{" + + "name=projects/*/locations/*/apps/*/deployments/*}\022\344\001\n" + + "\020CreateDeployment\022,.google.cloud.ces.v1.CreateDeploymentRequest\032\037.g" + + "oogle.cloud.ces.v1.Deployment\"\200\001\332A\037paren" + + "t,deployment,deployment_id\332A\021parent,depl" + + "oyment\202\323\344\223\002D\"6/v1/{parent=projects/*/locations/*/apps/*}/deployments:\n" + "deployment\022\321\001\n" - + "\020UpdateDeployment\022,.google.cloud.ces.v1.UpdateDeployment" - + "Request\032\037.google.cloud.ces.v1.Deployment" - + "\"n\332A\026deployment,update_mask\202\323\344\223\002O2A/v1/{" - + "deployment.name=projects/*/locations/*/apps/*/deployments/*}:\n" + + "\020UpdateDeployment\022,.google.cloud.ces" + + ".v1.UpdateDeploymentRequest\032\037.google.clo" + + "ud.ces.v1.Deployment\"n\332A\026deployment,upda" + + "te_mask\202\323\344\223\002O2A/v1/{deployment.name=proj" + + "ects/*/locations/*/apps/*/deployments/*}:\n" + "deployment\022\237\001\n" - + "\020DeleteDeployment\022,.google.cloud.ces.v1.Dele" - + "teDeploymentRequest\032\026.google.protobuf.Em" - + "pty\"E\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\251\001\n" - + "\014ListToolsets\022(.google.cloud.ces.v1.ListTo" - + "olsetsRequest\032).google.cloud.ces.v1.List" - + "ToolsetsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{" - + "parent=projects/*/locations/*/apps/*}/toolsets\022\226\001\n\n" - + "GetToolset\022&.google.cloud.ces.v1.GetToolsetRequest\032\034.google.cloud.ces" - + ".v1.Toolset\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=pr" - + "ojects/*/locations/*/apps/*/toolsets/*}\022\313\001\n\r" - + "CreateToolset\022).google.cloud.ces.v1.CreateToolsetRequest\032\034.google.cloud.ces." - + "v1.Toolset\"q\332A\031parent,toolset,toolset_id" - + "\332A\016parent,toolset\202\323\344\223\002>\"3/v1/{parent=pro" - + "jects/*/locations/*/apps/*}/toolsets:\007toolset\022\274\001\n\r" - + "UpdateToolset\022).google.cloud.ces.v1.UpdateToolsetRequest\032\034.google.clou" - + "d.ces.v1.Toolset\"b\332A\023toolset,update_mask" - + "\202\323\344\223\002F2;/v1/{toolset.name=projects/*/locations/*/apps/*/toolsets/*}:\007toolset\022\226\001\n", - "\rDeleteToolset\022).google.cloud.ces.v1.Del" - + "eteToolsetRequest\032\026.google.protobuf.Empt" - + "y\"B\332A\004name\202\323\344\223\0025*3/v1/{name=projects/*/l" - + "ocations/*/apps/*/toolsets/*}\022\262\001\n\017ListAp" - + "pVersions\022+.google.cloud.ces.v1.ListAppV" - + "ersionsRequest\032,.google.cloud.ces.v1.Lis" - + "tAppVersionsResponse\"D\332A\006parent\202\323\344\223\0025\0223/" - + "v1/{parent=projects/*/locations/*/apps/*" - + "}/versions\022\237\001\n\rGetAppVersion\022).google.cl" - + "oud.ces.v1.GetAppVersionRequest\032\037.google" - + ".cloud.ces.v1.AppVersion\"B\332A\004name\202\323\344\223\0025\022" - + "3/v1/{name=projects/*/locations/*/apps/*" - + "/versions/*}\022\345\001\n\020CreateAppVersion\022,.goog" - + "le.cloud.ces.v1.CreateAppVersionRequest\032" - + "\037.google.cloud.ces.v1.AppVersion\"\201\001\332A!pa" - + "rent,app_version,app_version_id\332A\022parent" - + ",app_version\202\323\344\223\002B\"3/v1/{parent=projects" - + "/*/locations/*/apps/*}/versions:\013app_ver" - + "sion\022\234\001\n\020DeleteAppVersion\022,.google.cloud" - + ".ces.v1.DeleteAppVersionRequest\032\026.google" - + ".protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{nam" - + "e=projects/*/locations/*/apps/*/versions" - + "/*}\022\341\001\n\021RestoreAppVersion\022-.google.cloud" - + ".ces.v1.RestoreAppVersionRequest\032\035.googl" - + "e.longrunning.Operation\"~\312A.\n\031RestoreApp" - + "VersionResponse\022\021OperationMetadata\332A\004nam" - + "e\202\323\344\223\002@\";/v1/{name=projects/*/locations/" - + "*/apps/*/versions/*}:restore:\001*\022\261\001\n\016List" - + "Changelogs\022*.google.cloud.ces.v1.ListCha" - + "ngelogsRequest\032+.google.cloud.ces.v1.Lis" - + "tChangelogsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" - + "1/{parent=projects/*/locations/*/apps/*}" - + "/changelogs\022\236\001\n\014GetChangelog\022(.google.cl" - + "oud.ces.v1.GetChangelogRequest\032\036.google." - + "cloud.ces.v1.Changelog\"D\332A\004name\202\323\344\223\0027\0225/" - + "v1/{name=projects/*/locations/*/apps/*/c" - + "hangelogs/*}\032j\312A\022ces.googleapis.com\322ARht" - + "tps://www.googleapis.com/auth/ces,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\306\001\n\027com.google.cloud.ces.v1B\021AgentServi" - + "ceProtoP\001Z)cloud.google.com/go/ces/apiv1" - + "/cespb;cespb\352Aj\n,contactcenterinsights.g" - + "oogleapis.com/Dataset\022:projects/{project" - + "}/locations/{location}/datasets/{dataset" - + "}b\006proto3" + + "\020DeleteDeployment\022,.google.cloud.ces.v1.DeleteDeploymentRequest\032" + + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" + + "/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\251\001\n" + + "\014ListToolsets\022(.google.cloud.ces.v1.ListToolsetsRequest\032).goog" + + "le.cloud.ces.v1.ListToolsetsResponse\"D\332A" + + "\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*/apps/*}/toolsets\022\226\001\n\n" + + "GetToolset\022&.google.cloud.ces.v1.GetToolsetReques" + + "t\032\034.google.cloud.ces.v1.Toolset\"B\332A\004name" + + "\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/apps/*/toolsets/*}\022\313\001\n\r" + + "CreateToolset\022).google.cloud.ces.v1.CreateToolsetRequest" + + "\032\034.google.cloud.ces.v1.Toolset\"q\332A\031paren" + + "t,toolset,toolset_id\332A\016parent,toolset\202\323\344" + + "\223\002>\"3/v1/{parent=projects/*/locations/*/apps/*}/toolsets:\007toolset\022\274\001\n\r" + + "UpdateToolset\022).google.cloud.ces.v1.UpdateToolsetR" + + "equest\032\034.google.cloud.ces.v1.Toolset\"b\332A" + + "\023toolset,update_mask\202\323\344\223\002F2;/v1/{toolset", + ".name=projects/*/locations/*/apps/*/tool" + + "sets/*}:\007toolset\022\226\001\n\rDeleteToolset\022).goo" + + "gle.cloud.ces.v1.DeleteToolsetRequest\032\026." + + "google.protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v" + + "1/{name=projects/*/locations/*/apps/*/to" + + "olsets/*}\022\262\001\n\017ListAppVersions\022+.google.c" + + "loud.ces.v1.ListAppVersionsRequest\032,.goo" + + "gle.cloud.ces.v1.ListAppVersionsResponse" + + "\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=projects/" + + "*/locations/*/apps/*}/versions\022\237\001\n\rGetAp" + + "pVersion\022).google.cloud.ces.v1.GetAppVer" + + "sionRequest\032\037.google.cloud.ces.v1.AppVer" + + "sion\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/" + + "*/locations/*/apps/*/versions/*}\022\345\001\n\020Cre" + + "ateAppVersion\022,.google.cloud.ces.v1.Crea" + + "teAppVersionRequest\032\037.google.cloud.ces.v" + + "1.AppVersion\"\201\001\332A!parent,app_version,app" + + "_version_id\332A\022parent,app_version\202\323\344\223\002B\"3" + + "/v1/{parent=projects/*/locations/*/apps/" + + "*}/versions:\013app_version\022\234\001\n\020DeleteAppVe" + + "rsion\022,.google.cloud.ces.v1.DeleteAppVer" + + "sionRequest\032\026.google.protobuf.Empty\"B\332A\004" + + "name\202\323\344\223\0025*3/v1/{name=projects/*/locatio" + + "ns/*/apps/*/versions/*}\022\341\001\n\021RestoreAppVe" + + "rsion\022-.google.cloud.ces.v1.RestoreAppVe" + + "rsionRequest\032\035.google.longrunning.Operat" + + "ion\"~\312A.\n\031RestoreAppVersionResponse\022\021Ope" + + "rationMetadata\332A\004name\202\323\344\223\002@\";/v1/{name=p" + + "rojects/*/locations/*/apps/*/versions/*}" + + ":restore:\001*\022\261\001\n\016ListChangelogs\022*.google." + + "cloud.ces.v1.ListChangelogsRequest\032+.goo" + + "gle.cloud.ces.v1.ListChangelogsResponse\"" + + "F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/*" + + "/locations/*/apps/*}/changelogs\022\236\001\n\014GetC" + + "hangelog\022(.google.cloud.ces.v1.GetChange" + + "logRequest\032\036.google.cloud.ces.v1.Changel" + + "og\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/" + + "locations/*/apps/*/changelogs/*}\032j\312A\022ces" + + ".googleapis.com\322ARhttps://www.googleapis" + + ".com/auth/ces,https://www.googleapis.com" + + "/auth/cloud-platformB\306\001\n\027com.google.clou" + + "d.ces.v1B\021AgentServiceProtoP\001Z)cloud.goo" + + "gle.com/go/ces/apiv1/cespb;cespb\352Aj\n,con" + + "tactcenterinsights.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{locatio" + + "n}/datasets/{dataset}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -885,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor, new java.lang.String[] { - "Name", "ExportFormat", "GcsUri", + "Name", "ExportFormat", "GcsUri", "AppVersion", }); internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor = getDescriptor().getMessageType(7); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java new file mode 100644 index 000000000000..6948990b89b0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTool.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Represents a tool that allows the agent to call another agent.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.AgentTool} + */ +@com.google.protobuf.Generated +public final class AgentTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentTool) + AgentToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentTool"); + } + + // Use AgentTool.newBuilder() to construct. + private AgentTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentTool() { + name_ = ""; + description_ = ""; + rootAgent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTool.class, + com.google.cloud.ces.v1.AgentTool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_AGENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rootAgent_ = ""; + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + @java.lang.Override + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootAgent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rootAgent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rootAgent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AgentTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentTool other = (com.google.cloud.ces.v1.AgentTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRootAgent().equals(other.getRootAgent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ROOT_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRootAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AgentTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a tool that allows the agent to call another agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.AgentTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentTool) + com.google.cloud.ces.v1.AgentToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTool.class, + com.google.cloud.ces.v1.AgentTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + rootAgent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentToolProto + .internal_static_google_cloud_ces_v1_AgentTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool build() { + com.google.cloud.ces.v1.AgentTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool buildPartial() { + com.google.cloud.ces.v1.AgentTool result = new com.google.cloud.ces.v1.AgentTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rootAgent_ = rootAgent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentTool) { + return mergeFrom((com.google.cloud.ces.v1.AgentTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentTool other) { + if (other == com.google.cloud.ces.v1.AgentTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRootAgent().isEmpty()) { + rootAgent_ = other.rootAgent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + rootAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the agent tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description of the tool's purpose.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object rootAgent_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rootAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRootAgent() { + rootAgent_ = getDefaultInstance().getRootAgent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the root agent that is the entry point of
            +     * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +     * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentTool) + private static final com.google.cloud.ces.v1.AgentTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentTool(); + } + + public static com.google.cloud.ces.v1.AgentTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java new file mode 100644 index 000000000000..d60132cb8817 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the agent tool.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. Description of the tool's purpose.
            +   * 
            + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + java.lang.String getRootAgent(); + + /** + * + * + *
            +   * Optional. The resource name of the root agent that is the entry point of
            +   * the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
            +   * 
            + * + * + * string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + com.google.protobuf.ByteString getRootAgentBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java new file mode 100644 index 000000000000..e4b904e2bbf5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentToolProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentToolProto extends com.google.protobuf.GeneratedFile { + private AgentToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AgentTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n$google/cloud/ces/v1/agent_tool.proto\022\023" + + "google.cloud.ces.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\"" + + "n\n\tAgentTool\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descr" + + "iption\030\002 \001(\tB\003\340A\001\0224\n\nroot_agent\030\003 \001(\tB \340" + + "A\001\372A\032\n\030ces.googleapis.com/AgentBV\n\027com.g" + + "oogle.cloud.ces.v1B\016AgentToolProtoP\001Z)cl" + + "oud.google.com/go/ces/apiv1/cespb;cespbb" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_AgentTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_AgentTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentTool_descriptor, + new java.lang.String[] { + "Name", "Description", "RootAgent", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java index c8d53001eced..9057398ea948 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java @@ -333,7 +333,7 @@ public SourceCase getSourceCase() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1066,7 +1066,7 @@ public Builder clearSource() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1088,7 +1088,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1113,7 +1113,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1138,7 +1138,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1170,7 +1170,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1199,7 +1199,7 @@ public Builder setPrebuiltAmbientNoise( * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java index 3bfec6d4eb8d..88ba966aad9a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See - * google/cloud/ces/v1/app.proto;l=285 + * google/cloud/ces/v1/app.proto;l=293 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java index f2827ebabe53..0ab4534defdc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java @@ -1921,6 +1921,66 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil : loggingSettings_; } + public static final int ERROR_HANDLING_SETTINGS_FIELD_NUMBER = 34; + private com.google.cloud.ces.v1.ErrorHandlingSettings errorHandlingSettings_; + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + @java.lang.Override + public boolean hasErrorHandlingSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings() { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder + getErrorHandlingSettingsOrBuilder() { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + public static final int MODEL_SETTINGS_FIELD_NUMBER = 13; private com.google.cloud.ces.v1.ModelSettings modelSettings_; @@ -1941,7 +2001,7 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil */ @java.lang.Override public boolean hasModelSettings() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2047,7 +2107,7 @@ public com.google.cloud.ces.v1.App.ToolExecutionMode getToolExecutionMode() { */ @java.lang.Override public boolean hasEvaluationMetricsThresholds() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2426,7 +2486,7 @@ public com.google.protobuf.ByteString getGuardrailsBytes(int index) { */ @java.lang.Override public boolean hasDataStoreSettings() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2485,7 +2545,7 @@ public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOr */ @java.lang.Override public boolean hasDefaultChannelProfile() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2654,7 +2714,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2706,7 +2766,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -2835,7 +2895,7 @@ public int getDeploymentCount() { */ @java.lang.Override public boolean hasClientCertificateSettings() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -2923,10 +2983,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, rootAgent_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(5, getCreateTime()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(6, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2943,13 +3003,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, etag_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getModelSettings()); } for (int i = 0; i < variableDeclarations_.size(); i++) { output.writeMessage(14, variableDeclarations_.get(i)); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(15, getDataStoreSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { @@ -2958,16 +3018,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(18, getLanguageSettings()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(22, getDefaultChannelProfile()); } if (deploymentCount_ != 0) { output.writeInt32(23, deploymentCount_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(24, getEvaluationMetricsThresholds()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(25, getClientCertificateSettings()); } if (((bitField0_ & 0x00000002) != 0)) { @@ -2987,6 +3047,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(32, toolExecutionMode_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(34, getErrorHandlingSettings()); + } getUnknownFields().writeTo(output); } @@ -3008,10 +3071,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rootAgent_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -3042,7 +3105,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, etag_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getModelSettings()); } for (int i = 0; i < variableDeclarations_.size(); i++) { @@ -3050,7 +3113,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, variableDeclarations_.get(i)); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDataStoreSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { @@ -3059,19 +3122,19 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLanguageSettings()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDefaultChannelProfile()); } if (deploymentCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(23, deploymentCount_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 24, getEvaluationMetricsThresholds()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 25, getClientCertificateSettings()); @@ -3095,6 +3158,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, toolExecutionMode_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(34, getErrorHandlingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3131,6 +3198,10 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingSettings()) { if (!getLoggingSettings().equals(other.getLoggingSettings())) return false; } + if (hasErrorHandlingSettings() != other.hasErrorHandlingSettings()) return false; + if (hasErrorHandlingSettings()) { + if (!getErrorHandlingSettings().equals(other.getErrorHandlingSettings())) return false; + } if (hasModelSettings() != other.hasModelSettings()) return false; if (hasModelSettings()) { if (!getModelSettings().equals(other.getModelSettings())) return false; @@ -3208,6 +3279,10 @@ public int hashCode() { hash = (37 * hash) + LOGGING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLoggingSettings().hashCode(); } + if (hasErrorHandlingSettings()) { + hash = (37 * hash) + ERROR_HANDLING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getErrorHandlingSettings().hashCode(); + } if (hasModelSettings()) { hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getModelSettings().hashCode(); @@ -3429,6 +3504,7 @@ private void maybeForceBuilderInitialization() { internalGetTimeZoneSettingsFieldBuilder(); internalGetAudioProcessingConfigFieldBuilder(); internalGetLoggingSettingsFieldBuilder(); + internalGetErrorHandlingSettingsFieldBuilder(); internalGetModelSettingsFieldBuilder(); internalGetEvaluationMetricsThresholdsFieldBuilder(); internalGetVariableDeclarationsFieldBuilder(); @@ -3470,6 +3546,11 @@ public Builder clear() { loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } + errorHandlingSettings_ = null; + if (errorHandlingSettingsBuilder_ != null) { + errorHandlingSettingsBuilder_.dispose(); + errorHandlingSettingsBuilder_ = null; + } modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -3487,14 +3568,14 @@ public Builder clear() { variableDeclarations_ = null; variableDeclarationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); if (predefinedVariableDeclarationsBuilder_ == null) { predefinedVariableDeclarations_ = java.util.Collections.emptyList(); } else { predefinedVariableDeclarations_ = null; predefinedVariableDeclarationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); globalInstruction_ = ""; guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); dataStoreSettings_ = null; @@ -3561,19 +3642,19 @@ public com.google.cloud.ces.v1.App buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.ces.v1.App result) { if (variableDeclarationsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { variableDeclarations_ = java.util.Collections.unmodifiableList(variableDeclarations_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.variableDeclarations_ = variableDeclarations_; } else { result.variableDeclarations_ = variableDeclarationsBuilder_.build(); } if (predefinedVariableDeclarationsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { predefinedVariableDeclarations_ = java.util.Collections.unmodifiableList(predefinedVariableDeclarations_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.predefinedVariableDeclarations_ = predefinedVariableDeclarations_; } else { @@ -3622,67 +3703,74 @@ private void buildPartial0(com.google.cloud.ces.v1.App result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.modelSettings_ = - modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + result.errorHandlingSettings_ = + errorHandlingSettingsBuilder_ == null + ? errorHandlingSettings_ + : errorHandlingSettingsBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.toolExecutionMode_ = toolExecutionMode_; + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.toolExecutionMode_ = toolExecutionMode_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { result.evaluationMetricsThresholds_ = evaluationMetricsThresholdsBuilder_ == null ? evaluationMetricsThresholds_ : evaluationMetricsThresholdsBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.globalInstruction_ = globalInstruction_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { guardrails_.makeImmutable(); result.guardrails_ = guardrails_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.dataStoreSettings_ = dataStoreSettingsBuilder_ == null ? dataStoreSettings_ : dataStoreSettingsBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.defaultChannelProfile_ = defaultChannelProfileBuilder_ == null ? defaultChannelProfile_ : defaultChannelProfileBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000100; - } if (((from_bitField0_ & 0x00100000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.etag_ = etag_; + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.deploymentCount_ = deploymentCount_; + result.etag_ = etag_; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.deploymentCount_ = deploymentCount_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.clientCertificateSettings_ = clientCertificateSettingsBuilder_ == null ? clientCertificateSettings_ : clientCertificateSettingsBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.locked_ = locked_; } result.bitField0_ |= to_bitField0_; @@ -3735,6 +3823,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (other.hasLoggingSettings()) { mergeLoggingSettings(other.getLoggingSettings()); } + if (other.hasErrorHandlingSettings()) { + mergeErrorHandlingSettings(other.getErrorHandlingSettings()); + } if (other.hasModelSettings()) { mergeModelSettings(other.getModelSettings()); } @@ -3748,7 +3839,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (!other.variableDeclarations_.isEmpty()) { if (variableDeclarations_.isEmpty()) { variableDeclarations_ = other.variableDeclarations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureVariableDeclarationsIsMutable(); variableDeclarations_.addAll(other.variableDeclarations_); @@ -3761,7 +3852,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { variableDeclarationsBuilder_.dispose(); variableDeclarationsBuilder_ = null; variableDeclarations_ = other.variableDeclarations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); variableDeclarationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetVariableDeclarationsFieldBuilder() @@ -3775,7 +3866,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { if (!other.predefinedVariableDeclarations_.isEmpty()) { if (predefinedVariableDeclarations_.isEmpty()) { predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensurePredefinedVariableDeclarationsIsMutable(); predefinedVariableDeclarations_.addAll(other.predefinedVariableDeclarations_); @@ -3788,7 +3879,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { predefinedVariableDeclarationsBuilder_.dispose(); predefinedVariableDeclarationsBuilder_ = null; predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); predefinedVariableDeclarationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetPredefinedVariableDeclarationsFieldBuilder() @@ -3801,13 +3892,13 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { } if (!other.getGlobalInstruction().isEmpty()) { globalInstruction_ = other.globalInstruction_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (!other.guardrails_.isEmpty()) { if (guardrails_.isEmpty()) { guardrails_ = other.guardrails_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } else { ensureGuardrailsIsMutable(); guardrails_.addAll(other.guardrails_); @@ -3821,7 +3912,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { mergeDefaultChannelProfile(other.getDefaultChannelProfile()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -3830,7 +3921,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.App other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.getDeploymentCount() != 0) { @@ -3896,14 +3987,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 42 case 50: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 50 case 58: @@ -3936,20 +4027,20 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 90 case 98: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 98 case 106: { input.readMessage( internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 106 case 114: @@ -3970,13 +4061,13 @@ public Builder mergeFrom( { input.readMessage( internalGetDataStoreSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 138: { globalInstruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 138 case 146: @@ -3990,13 +4081,13 @@ public Builder mergeFrom( { input.readMessage( internalGetDefaultChannelProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 178 case 184: { deploymentCount_ = input.readInt32(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 184 case 194: @@ -4004,7 +4095,7 @@ public Builder mergeFrom( input.readMessage( internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 194 case 202: @@ -4012,7 +4103,7 @@ public Builder mergeFrom( input.readMessage( internalGetClientCertificateSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 202 case 218: @@ -4039,7 +4130,7 @@ public Builder mergeFrom( case 232: { locked_ = input.readBool(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 232 case 248: @@ -4051,9 +4142,16 @@ public Builder mergeFrom( case 256: { toolExecutionMode_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 256 + case 274: + { + input.readMessage( + internalGetErrorHandlingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5447,6 +5545,221 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil return loggingSettingsBuilder_; } + private com.google.cloud.ces.v1.ErrorHandlingSettings errorHandlingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder> + errorHandlingSettingsBuilder_; + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + public boolean hasErrorHandlingSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings() { + if (errorHandlingSettingsBuilder_ == null) { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } else { + return errorHandlingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorHandlingSettings(com.google.cloud.ces.v1.ErrorHandlingSettings value) { + if (errorHandlingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorHandlingSettings_ = value; + } else { + errorHandlingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorHandlingSettings( + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder builderForValue) { + if (errorHandlingSettingsBuilder_ == null) { + errorHandlingSettings_ = builderForValue.build(); + } else { + errorHandlingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeErrorHandlingSettings(com.google.cloud.ces.v1.ErrorHandlingSettings value) { + if (errorHandlingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && errorHandlingSettings_ != null + && errorHandlingSettings_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance()) { + getErrorHandlingSettingsBuilder().mergeFrom(value); + } else { + errorHandlingSettings_ = value; + } + } else { + errorHandlingSettingsBuilder_.mergeFrom(value); + } + if (errorHandlingSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearErrorHandlingSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + errorHandlingSettings_ = null; + if (errorHandlingSettingsBuilder_ != null) { + errorHandlingSettingsBuilder_.dispose(); + errorHandlingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettings.Builder getErrorHandlingSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetErrorHandlingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder + getErrorHandlingSettingsOrBuilder() { + if (errorHandlingSettingsBuilder_ != null) { + return errorHandlingSettingsBuilder_.getMessageOrBuilder(); + } else { + return errorHandlingSettings_ == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance() + : errorHandlingSettings_; + } + } + + /** + * + * + *
            +     * Optional. Error handling settings of the app.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder> + internalGetErrorHandlingSettingsFieldBuilder() { + if (errorHandlingSettingsBuilder_ == null) { + errorHandlingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ErrorHandlingSettings, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder, + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder>( + getErrorHandlingSettings(), getParentForChildren(), isClean()); + errorHandlingSettings_ = null; + } + return errorHandlingSettingsBuilder_; + } + private com.google.cloud.ces.v1.ModelSettings modelSettings_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.ModelSettings, @@ -5470,7 +5783,7 @@ public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuil * @return Whether the modelSettings field is set. */ public boolean hasModelSettings() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -5520,7 +5833,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { } else { modelSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5544,7 +5857,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder bu } else { modelSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5564,7 +5877,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder bu */ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { if (modelSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && modelSettings_ != null && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { getModelSettingsBuilder().mergeFrom(value); @@ -5575,7 +5888,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { modelSettingsBuilder_.mergeFrom(value); } if (modelSettings_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -5595,7 +5908,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { * */ public Builder clearModelSettings() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -5619,7 +5932,7 @@ public Builder clearModelSettings() { * */ public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetModelSettingsFieldBuilder().getBuilder(); } @@ -5715,7 +6028,7 @@ public int getToolExecutionModeValue() { */ public Builder setToolExecutionModeValue(int value) { toolExecutionMode_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5760,7 +6073,7 @@ public Builder setToolExecutionMode(com.google.cloud.ces.v1.App.ToolExecutionMod if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; toolExecutionMode_ = value.getNumber(); onChanged(); return this; @@ -5781,7 +6094,7 @@ public Builder setToolExecutionMode(com.google.cloud.ces.v1.App.ToolExecutionMod * @return This builder for chaining. */ public Builder clearToolExecutionMode() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); toolExecutionMode_ = 0; onChanged(); return this; @@ -5808,7 +6121,7 @@ public Builder clearToolExecutionMode() { * @return Whether the evaluationMetricsThresholds field is set. */ public boolean hasEvaluationMetricsThresholds() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5855,7 +6168,7 @@ public Builder setEvaluationMetricsThresholds( } else { evaluationMetricsThresholdsBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5878,7 +6191,7 @@ public Builder setEvaluationMetricsThresholds( } else { evaluationMetricsThresholdsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5897,7 +6210,7 @@ public Builder setEvaluationMetricsThresholds( public Builder mergeEvaluationMetricsThresholds( com.google.cloud.ces.v1.EvaluationMetricsThresholds value) { if (evaluationMetricsThresholdsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && evaluationMetricsThresholds_ != null && evaluationMetricsThresholds_ != com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance()) { @@ -5909,7 +6222,7 @@ public Builder mergeEvaluationMetricsThresholds( evaluationMetricsThresholdsBuilder_.mergeFrom(value); } if (evaluationMetricsThresholds_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5927,7 +6240,7 @@ public Builder mergeEvaluationMetricsThresholds( * */ public Builder clearEvaluationMetricsThresholds() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); evaluationMetricsThresholds_ = null; if (evaluationMetricsThresholdsBuilder_ != null) { evaluationMetricsThresholdsBuilder_.dispose(); @@ -5950,7 +6263,7 @@ public Builder clearEvaluationMetricsThresholds() { */ public com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder getEvaluationMetricsThresholdsBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(); } @@ -6009,11 +6322,11 @@ public Builder clearEvaluationMetricsThresholds() { java.util.Collections.emptyList(); private void ensureVariableDeclarationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { variableDeclarations_ = new java.util.ArrayList( variableDeclarations_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } @@ -6264,7 +6577,7 @@ public Builder addAllVariableDeclarations( public Builder clearVariableDeclarations() { if (variableDeclarationsBuilder_ == null) { variableDeclarations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { variableDeclarationsBuilder_.clear(); @@ -6412,7 +6725,7 @@ public com.google.cloud.ces.v1.App.VariableDeclaration.Builder addVariableDeclar com.google.cloud.ces.v1.App.VariableDeclaration.Builder, com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( variableDeclarations_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); variableDeclarations_ = null; @@ -6424,11 +6737,11 @@ public com.google.cloud.ces.v1.App.VariableDeclaration.Builder addVariableDeclar predefinedVariableDeclarations_ = java.util.Collections.emptyList(); private void ensurePredefinedVariableDeclarationsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { predefinedVariableDeclarations_ = new java.util.ArrayList( predefinedVariableDeclarations_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -6682,7 +6995,7 @@ public Builder addAllPredefinedVariableDeclarations( public Builder clearPredefinedVariableDeclarations() { if (predefinedVariableDeclarationsBuilder_ == null) { predefinedVariableDeclarations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { predefinedVariableDeclarationsBuilder_.clear(); @@ -6830,7 +7143,7 @@ public Builder removePredefinedVariableDeclarations(int index) { com.google.cloud.ces.v1.App.VariableDeclaration.Builder, com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( predefinedVariableDeclarations_, - ((bitField0_ & 0x00002000) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); predefinedVariableDeclarations_ = null; @@ -6909,7 +7222,7 @@ public Builder setGlobalInstruction(java.lang.String value) { throw new NullPointerException(); } globalInstruction_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6929,7 +7242,7 @@ public Builder setGlobalInstruction(java.lang.String value) { */ public Builder clearGlobalInstruction() { globalInstruction_ = getDefaultInstance().getGlobalInstruction(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -6954,7 +7267,7 @@ public Builder setGlobalInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); globalInstruction_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6966,7 +7279,7 @@ private void ensureGuardrailsIsMutable() { if (!guardrails_.isModifiable()) { guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } /** @@ -7071,7 +7384,7 @@ public Builder setGuardrails(int index, java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.set(index, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7098,7 +7411,7 @@ public Builder addGuardrails(java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7122,7 +7435,7 @@ public Builder addGuardrails(java.lang.String value) { public Builder addAllGuardrails(java.lang.Iterable values) { ensureGuardrailsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7144,7 +7457,7 @@ public Builder addAllGuardrails(java.lang.Iterable values) { */ public Builder clearGuardrails() { guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ; onChanged(); return this; @@ -7173,7 +7486,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7199,7 +7512,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { * @return Whether the dataStoreSettings field is set. */ public boolean hasDataStoreSettings() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -7245,7 +7558,7 @@ public Builder setDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings va } else { dataStoreSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7268,7 +7581,7 @@ public Builder setDataStoreSettings( } else { dataStoreSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7286,7 +7599,7 @@ public Builder setDataStoreSettings( */ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings value) { if (dataStoreSettingsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && dataStoreSettings_ != null && dataStoreSettings_ != com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance()) { @@ -7298,7 +7611,7 @@ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings dataStoreSettingsBuilder_.mergeFrom(value); } if (dataStoreSettings_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7316,7 +7629,7 @@ public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings * */ public Builder clearDataStoreSettings() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); dataStoreSettings_ = null; if (dataStoreSettingsBuilder_ != null) { dataStoreSettingsBuilder_.dispose(); @@ -7338,7 +7651,7 @@ public Builder clearDataStoreSettings() { * */ public com.google.cloud.ces.v1.DataStoreSettings.Builder getDataStoreSettingsBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetDataStoreSettingsFieldBuilder().getBuilder(); } @@ -7413,7 +7726,7 @@ public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOr * @return Whether the defaultChannelProfile field is set. */ public boolean hasDefaultChannelProfile() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -7459,7 +7772,7 @@ public Builder setDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile v } else { defaultChannelProfileBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7482,7 +7795,7 @@ public Builder setDefaultChannelProfile( } else { defaultChannelProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7500,7 +7813,7 @@ public Builder setDefaultChannelProfile( */ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { if (defaultChannelProfileBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && defaultChannelProfile_ != null && defaultChannelProfile_ != com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance()) { @@ -7512,7 +7825,7 @@ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile defaultChannelProfileBuilder_.mergeFrom(value); } if (defaultChannelProfile_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -7530,7 +7843,7 @@ public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile * */ public Builder clearDefaultChannelProfile() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); defaultChannelProfile_ = null; if (defaultChannelProfileBuilder_ != null) { defaultChannelProfileBuilder_.dispose(); @@ -7552,7 +7865,7 @@ public Builder clearDefaultChannelProfile() { * */ public com.google.cloud.ces.v1.ChannelProfile.Builder getDefaultChannelProfileBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return internalGetDefaultChannelProfileFieldBuilder().getBuilder(); } @@ -7624,7 +7937,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return metadata_; } @@ -7722,7 +8035,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -7749,7 +8062,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return internalGetMutableMetadata().getMutableMap(); } @@ -7772,7 +8085,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7789,7 +8102,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7814,7 +8127,7 @@ public Builder putAllMetadata(java.util.Map * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7860,7 +8173,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7882,7 +8195,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7900,7 +8213,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -7911,7 +8224,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -7929,7 +8242,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -7951,7 +8264,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -8026,7 +8339,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -8072,7 +8385,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8094,7 +8407,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8112,7 +8425,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -8123,7 +8436,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -8141,7 +8454,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -8163,7 +8476,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -8288,7 +8601,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8308,7 +8621,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -8333,7 +8646,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8371,7 +8684,7 @@ public int getDeploymentCount() { public Builder setDeploymentCount(int value) { deploymentCount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8388,7 +8701,7 @@ public Builder setDeploymentCount(int value) { * @return This builder for chaining. */ public Builder clearDeploymentCount() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); deploymentCount_ = 0; onChanged(); return this; @@ -8415,7 +8728,7 @@ public Builder clearDeploymentCount() { * @return Whether the clientCertificateSettings field is set. */ public boolean hasClientCertificateSettings() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -8462,7 +8775,7 @@ public Builder setClientCertificateSettings( } else { clientCertificateSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8485,7 +8798,7 @@ public Builder setClientCertificateSettings( } else { clientCertificateSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8504,7 +8817,7 @@ public Builder setClientCertificateSettings( public Builder mergeClientCertificateSettings( com.google.cloud.ces.v1.ClientCertificateSettings value) { if (clientCertificateSettingsBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && clientCertificateSettings_ != null && clientCertificateSettings_ != com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance()) { @@ -8516,7 +8829,7 @@ public Builder mergeClientCertificateSettings( clientCertificateSettingsBuilder_.mergeFrom(value); } if (clientCertificateSettings_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -8534,7 +8847,7 @@ public Builder mergeClientCertificateSettings( * */ public Builder clearClientCertificateSettings() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); clientCertificateSettings_ = null; if (clientCertificateSettingsBuilder_ != null) { clientCertificateSettingsBuilder_.dispose(); @@ -8557,7 +8870,7 @@ public Builder clearClientCertificateSettings() { */ public com.google.cloud.ces.v1.ClientCertificateSettings.Builder getClientCertificateSettingsBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return internalGetClientCertificateSettingsFieldBuilder().getBuilder(); } @@ -8647,7 +8960,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -8665,7 +8978,7 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); locked_ = false; onChanged(); return this; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java index 97a1842b71f5..dd2450fc0e34 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java @@ -323,6 +323,49 @@ public interface AppOrBuilder */ com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder(); + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorHandlingSettings field is set. + */ + boolean hasErrorHandlingSettings(); + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingSettings. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings getErrorHandlingSettings(); + + /** + * + * + *
            +   * Optional. Error handling settings of the app.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings error_handling_settings = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder getErrorHandlingSettingsOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java index 1fe5006a52c6..916fab4c5127 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -151,7 +155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/bigquery_export.proto\032" + " google/cloud/ces/v1/common.proto\032 google/cl" + "oud/ces/v1/schema.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timestamp.proto\"\361\r\n" + + "/duration.proto\032\037google/protobuf/timestamp.proto\"\303\016\n" + "\003App\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" @@ -166,13 +170,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027audio_processing_config\030\007" + " \001(\0132*.google.cloud.ces.v1.AudioProcessingConfigB\003\340A\001\022C\n" + "\020logging_settings\030\010" - + " \001(\0132$.google.cloud.ces.v1.LoggingSettingsB\003\340A\001\022?\n" + + " \001(\0132$.google.cloud.ces.v1.LoggingSettingsB\003\340A\001\022P\n" + + "\027error_handling_settings\030\"" + + " \001(\0132*.google.cloud.ces.v1.ErrorHandlingSettingsB\003\340A\001\022?\n" + "\016model_settings\030\r" + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022L\n" - + "\023tool_execution_mode\030 \001(\0162*.google" - + ".cloud.ces.v1.App.ToolExecutionModeB\003\340A\001\022\\\n" - + "\035evaluation_metrics_thresholds\030\030 \001(\0132" - + "0.google.cloud.ces.v1.EvaluationMetricsThresholdsB\003\340A\001\022P\n" + + "\023tool_execution_mode\030 \001(\0162*.goog" + + "le.cloud.ces.v1.App.ToolExecutionModeB\003\340A\001\022\\\n" + + "\035evaluation_metrics_thresholds\030\030 \001(" + + "\01320.google.cloud.ces.v1.EvaluationMetricsThresholdsB\003\340A\001\022P\n" + "\025variable_declarations\030\016" + " \003(\0132,.google.cloud.ces.v1.App.VariableDeclarationB\003\340A\001\022[\n" + " predefined_variable_declarations\030\034" @@ -206,18 +212,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037TOOL_EXECUTION_MODE_UNSPECIFIED\020\000\022\014\n" + "\010PARALLEL\020\001\022\016\n\n" + "SEQUENTIAL\020\002:Z\352AW\n" - + "\026ces.googleapis.co" - + "m/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + + "\026ces.googleapis." + + "com/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + "\020TimeZoneSettings\022\026\n" - + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\245\001\n" + + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\247\001\n" + "\020LanguageSettings\022\"\n" + "\025default_language_code\030\001 \001(\tB\003\340A\001\022%\n" + "\030supported_language_codes\030\002 \003(\tB\003\340A\001\022(\n" - + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\034\n" - + "\017fallback_action\030\004 \001(\tB\003\340A\001\"\277\003\n" + + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\036\n" + + "\017fallback_action\030\004 \001(\tB\005\030\001\340A\001\"\277\003\n" + "\025AudioProcessingConfig\022o\n" - + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud.ces" - + ".v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud" + + ".ces.v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + "\017barge_in_config\030\003" + " \001(\0132\".google.cloud.ces.v1.BargeInConfigB\003\340A\001\022:\n" + "\022inactivity_timeout\030\004" @@ -226,11 +232,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.ces.v1.AmbientSoundConfigB\003\340A\001\032k\n" + "\034SynthesizeSpeechConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022:\n" - + "\005value\030\002 \001(" - + "\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + + "\005value\030\002" + + " \001(\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + "\022AmbientSoundConfig\022e\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.cloud" - + ".ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.c" + + "loud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022%\n" + "\026prebuilt_ambient_sound\030\004 \001(\tB\003\340A\001H\000\022\033\n" + "\016volume_gain_db\030\003 \001(\001B\003\340A\001\"r\n" @@ -257,39 +263,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.ces.v1.BigQueryExportSettingsB\003\340A\001\022N\n" + "\026cloud_logging_settings\030\004" + " \001(\0132).google.cloud.ces.v1.CloudLoggingSettingsB\003\340A\001\022\\\n" - + "\035conversation_logging_settings\030\005 \001(\01320.google.cloud" - + ".ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" - + "!evaluation_audio_recording_config\030\006 " - + "\001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + + "\035conversation_logging_settings\030\005 \001(\01320.google.c" + + "loud.ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" + + "!evaluation_audio_recording_config\030\006" + + " \001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\203\020\n" + + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\363\001\n" + + "\025ErrorHandlingSettings\022f\n" + + "\027error_handling_strategy\030\001 \001(\0162@" + + ".google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"r\n" + + "\025ErrorHandlingStrategy\022\'\n" + + "#ERROR_HANDLING_STRATEGY_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\025\n" + + "\021FALLBACK_RESPONSE\020\002\022\017\n" + + "\013END_SESSION\020\003\"\203\020\n" + "\033EvaluationMetricsThresholds\022\205\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud.ces.v1.Eva" - + "luationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162L.google.cloud.ce" - + "s.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162L.goog" - + "le.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" - + "&scenario_hallucination_metric_behavior\030\004" - + " \001(\0162L.google.cloud.ces.v1.EvaluationMe" - + "tricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud." + + "ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162L.googl" + + "e.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" + + "$golden_hallucination_metric_behavior\030\005 " + + "\001(\0162L.google.cloud.ces.v1.EvaluationMetr" + + "icsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162L.google.cloud.ces.v1.Ev" + + "aluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + "!GoldenEvaluationMetricsThresholds\022\231\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.EvaluationM" - + "etricsThresholds.GoldenEvaluationMetrics" - + "Thresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v1.Evaluati" - + "onMetricsThresholds.GoldenEvaluationMetr" - + "icsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" - + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.EvaluationMet" - + "ricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.E" + + "valuationMetricsThresholds.GoldenEvaluat" + + "ionMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" + + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v" + + "1.EvaluationMetricsThresholds.GoldenEval" + + "uationMetricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" + + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.Eva" + + "luationMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + "\032TurnLevelMetricsThresholds\0227\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\003\340A\001H\001\210\001\001\022\262\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\207\001.googl" - + "e.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.Tur" - + "nLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(" + + "\0162\207\001.google.cloud.ces.v1.EvaluationMetri" + + "csThresholds.GoldenEvaluationMetricsThre" + + "sholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -301,8 +316,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\363\001\n" + "\024ToolMatchingSettings\022\202\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cloud.ces.v1" - + ".EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cl" + + "oud.ces.v1.EvaluationMetricsThresholds.T" + + "oolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -330,27 +346,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\263\002\n" + "\021DataStoreSettings\022C\n" - + "\007engines\030\003 \003(\0132-.go" - + "ogle.cloud.ces.v1.DataStoreSettings.EngineB\003\340A\003\032\330\001\n" + + "\007engines\030\003" + + " \003(\0132-.google.cloud.ces.v1.DataStoreSettings.EngineB\003\340A\003\032\330\001\n" + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022E\n" - + "\004type\030\002" - + " \001(\01622.google.cloud.ces.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + + "\004type\030\002 \001(\01622.google.cloud.c" + + "es.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" + "\020ENGINE_TYPE_CHAT\020\002B\364\004\n" - + "\027com.googl" - + "e.cloud.ces.v1B\010AppProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizat" - + "ions/{organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kpr" - + "ojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locations/{lo" - + "cation}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/locations/" - + "{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locat" - + "ions/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\027com.google.cloud.ces.v1B\010AppProtoP\001Z)cl" + + "oud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization}/locations/" + + "{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/locations/{lo" + + "cation}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/loc" + + "ations/{location}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/" + + "locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{proj" + + "ect}/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -378,6 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZoneSettings", "AudioProcessingConfig", "LoggingSettings", + "ErrorHandlingSettings", "ModelSettings", "ToolExecutionMode", "EvaluationMetricsThresholds", @@ -492,8 +509,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationAudioRecordingConfig", "MetricAnalysisSettings", }); - internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor = getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor, + new java.lang.String[] { + "ErrorHandlingStrategy", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor, @@ -542,7 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExtraToolCallBehavior", }); internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor, @@ -550,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsCertificate", "PrivateKey", "Passphrase", }); internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor, @@ -558,7 +583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConversationLogging", }); internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor, @@ -566,7 +591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableCloudLogging", }); internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor, @@ -574,7 +599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "GcsPathPrefix", }); internal_static_google_cloud_ces_v1_RedactionConfig_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_RedactionConfig_descriptor, @@ -582,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java index c9d77b15bc04..9de7e5847799 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Override @@ -463,7 +463,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Override @@ -488,7 +488,7 @@ public boolean getDisableBargeIn() { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -517,7 +517,7 @@ public Builder setDisableBargeIn(boolean value) { * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java index 794d998e8917..3254270fd167 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java @@ -42,7 +42,7 @@ public interface BargeInConfigOrBuilder * * * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1/app.proto;l=333 + * google/cloud/ces/v1/app.proto;l=341 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java index 32242b252003..8de8012d41a4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java @@ -255,7 +255,7 @@ public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOr * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -273,7 +273,7 @@ public boolean hasInterruptionSignal() { * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -294,7 +294,7 @@ public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -1396,7 +1396,7 @@ public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOr * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1414,7 +1414,7 @@ public boolean hasInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1442,7 +1442,7 @@ public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1467,7 +1467,7 @@ public Builder setInterruptionSignal(com.google.cloud.ces.v1.InterruptionSignal * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1490,7 +1490,7 @@ public Builder setInterruptionSignal( * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1525,7 +1525,7 @@ public Builder mergeInterruptionSignal(com.google.cloud.ces.v1.InterruptionSigna * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1553,7 +1553,7 @@ public Builder clearInterruptionSignal() { * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1568,7 +1568,7 @@ public com.google.cloud.ces.v1.InterruptionSignal.Builder getInterruptionSignalB * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * @@ -1591,7 +1591,7 @@ public com.google.cloud.ces.v1.InterruptionSignalOrBuilder getInterruptionSignal * * *
            -     * Optional. Interruption signal detected from the audio input.
            +     * Optional. Indicates the agent's audio response has been interrupted.
                  * 
            * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java index c6a06a42c9da..e5bf025f7b9c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java @@ -116,7 +116,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -131,7 +131,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * @@ -146,7 +146,7 @@ public interface BidiSessionServerMessageOrBuilder * * *
            -   * Optional. Interruption signal detected from the audio input.
            +   * Optional. Indicates the agent's audio response has been interrupted.
                * 
            * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java index 0e2c388a1938..8156f86c3e12 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java @@ -99,7 +99,7 @@ public boolean getEnabled() { * * *
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -127,7 +127,7 @@ public java.lang.String getProject() {
                *
                *
                * 
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -160,7 +160,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
                *
                *
                * 
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -184,7 +184,7 @@ public java.lang.String getDataset() { * * *
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -621,7 +621,7 @@ public Builder clearEnabled() { * * *
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -648,7 +648,7 @@ public java.lang.String getProject() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -675,7 +675,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -701,7 +701,7 @@ public Builder setProject(java.lang.String value) {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -723,7 +723,7 @@ public Builder clearProject() {
                  *
                  *
                  * 
            -     * Optional. The project ID of the BigQuery dataset to export the data to.
            +     * Optional. The **project ID** of the BigQuery dataset to export the data to.
                  *
                  * Note: If the BigQuery dataset is in a different project from the app,
                  * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -752,7 +752,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
                  *
                  *
                  * 
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -775,7 +775,7 @@ public java.lang.String getDataset() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -798,7 +798,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -820,7 +820,7 @@ public Builder setDataset(java.lang.String value) { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -838,7 +838,7 @@ public Builder clearDataset() { * * *
            -     * Optional. The BigQuery dataset to export the data to.
            +     * Optional. The BigQuery **dataset ID** to export the data to.
                  * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java index 6fe865942f98..d93307e12bb0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java @@ -43,7 +43,7 @@ public interface BigQueryExportSettingsOrBuilder * * *
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -60,7 +60,7 @@ public interface BigQueryExportSettingsOrBuilder
                *
                *
                * 
            -   * Optional. The project ID of the BigQuery dataset to export the data to.
            +   * Optional. The **project ID** of the BigQuery dataset to export the data to.
                *
                * Note: If the BigQuery dataset is in a different project from the app,
                * you should grant `roles/bigquery.admin` role to the CES service agent
            @@ -77,7 +77,7 @@ public interface BigQueryExportSettingsOrBuilder
                *
                *
                * 
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -90,7 +90,7 @@ public interface BigQueryExportSettingsOrBuilder * * *
            -   * Optional. The BigQuery dataset to export the data to.
            +   * Optional. The BigQuery **dataset ID** to export the data to.
                * 
            * * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java index 644facb97c1a..448dc98b0665 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java @@ -153,6 +153,16 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { * FIVE9 = 7; */ FIVE9(7), + /** + * + * + *
            +     * Third party contact center integration channel.
            +     * 
            + * + * CONTACT_CENTER_INTEGRATION = 8; + */ + CONTACT_CENTER_INTEGRATION(8), UNRECOGNIZED(-1), ; @@ -243,6 +253,17 @@ public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FIVE9_VALUE = 7; + /** + * + * + *
            +     * Third party contact center integration channel.
            +     * 
            + * + * CONTACT_CENTER_INTEGRATION = 8; + */ + public static final int CONTACT_CENTER_INTEGRATION_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -281,6 +302,8 @@ public static ChannelType forNumber(int value) { return CONTACT_CENTER_AS_A_SERVICE; case 7: return FIVE9; + case 8: + return CONTACT_CENTER_INTEGRATION; default: return null; } @@ -1341,6 +1364,16 @@ public enum Modality implements com.google.protobuf.ProtocolMessageEnum { * CHAT_ONLY = 3; */ CHAT_ONLY(3), + /** + * + * + *
            +       * Widget supports chat, voice, and video input.
            +       * 
            + * + * CHAT_VOICE_AND_VIDEO = 4; + */ + CHAT_VOICE_AND_VIDEO(4), UNRECOGNIZED(-1), ; @@ -1398,6 +1431,17 @@ public enum Modality implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHAT_ONLY_VALUE = 3; + /** + * + * + *
            +       * Widget supports chat, voice, and video input.
            +       * 
            + * + * CHAT_VOICE_AND_VIDEO = 4; + */ + public static final int CHAT_VOICE_AND_VIDEO_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1430,6 +1474,8 @@ public static Modality forNumber(int value) { return VOICE_ONLY; case 3: return CHAT_ONLY; + case 4: + return CHAT_VOICE_AND_VIDEO; default: return null; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java index 8ff5e0154e33..86ab088f74af 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Deployment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\002\022:\n" - + "\013app_version\030\002 \001(\tB%\340A\002\372A\037\n" + + "\013app_version\030\002 \001(\tB%\340A\001\372A\037\n" + "\035ces.googleapis.com/AppVersion\022A\n" + "\017channel_profile\030\003" + " \001(\0132#.google.cloud.ces.v1.ChannelProfileB\003\340A\002\0224\n" diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java index b4ef6f0f3fa4..9e4696cae64f 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java @@ -78,6 +78,7 @@ public enum DataCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT(1), TRANSCRIPT(9), + BLOB(7), PAYLOAD(11), IMAGE(5), TOOL_CALL(2), @@ -108,6 +109,8 @@ public static DataCase forNumber(int value) { return TEXT; case 9: return TRANSCRIPT; + case 7: + return BLOB; case 11: return PAYLOAD; case 5: @@ -284,6 +287,60 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } + public static final int BLOB_FIELD_NUMBER = 7; + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return dataCase_ == 7; + } + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + public static final int PAYLOAD_FIELD_NUMBER = 11; /** @@ -712,6 +769,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 5) { output.writeMessage(5, (com.google.cloud.ces.v1.Image) data_); } + if (dataCase_ == 7) { + output.writeMessage(7, (com.google.cloud.ces.v1.Blob) data_); + } if (dataCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Struct) data_); } @@ -756,6 +816,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.ces.v1.Image) data_); } + if (dataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.ces.v1.Blob) data_); + } if (dataCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -797,6 +862,9 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getTranscript().equals(other.getTranscript())) return false; break; + case 7: + if (!getBlob().equals(other.getBlob())) return false; + break; case 11: if (!getPayload().equals(other.getPayload())) return false; break; @@ -841,6 +909,10 @@ public int hashCode() { hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; hash = (53 * hash) + getTranscript().hashCode(); break; + case 7: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; case 11: hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); @@ -1010,6 +1082,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (blobBuilder_ != null) { + blobBuilder_.clear(); + } if (payloadBuilder_ != null) { payloadBuilder_.clear(); } @@ -1074,6 +1149,9 @@ private void buildPartial0(com.google.cloud.ces.v1.Chunk result) { private void buildPartialOneofs(com.google.cloud.ces.v1.Chunk result) { result.dataCase_ = dataCase_; result.data_ = this.data_; + if (dataCase_ == 7 && blobBuilder_ != null) { + result.data_ = blobBuilder_.build(); + } if (dataCase_ == 11 && payloadBuilder_ != null) { result.data_ = payloadBuilder_.build(); } @@ -1124,6 +1202,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Chunk other) { onChanged(); break; } + case BLOB: + { + mergeBlob(other.getBlob()); + break; + } case PAYLOAD: { mergePayload(other.getPayload()); @@ -1224,6 +1307,12 @@ public Builder mergeFrom( dataCase_ = 5; break; } // case 42 + case 58: + { + input.readMessage(internalGetBlobFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 7; + break; + } // case 58 case 66: { input.readMessage( @@ -1562,6 +1651,219 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + blobBuilder_; + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return dataCase_ == 7; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (blobBuilder_ == null) { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } else { + if (dataCase_ == 7) { + return blobBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (dataCase_ == 7 && data_ != com.google.cloud.ces.v1.Blob.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.Blob.newBuilder((com.google.cloud.ces.v1.Blob) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 7) { + blobBuilder_.mergeFrom(value); + } else { + blobBuilder_.setMessage(value); + } + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + } + blobBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Blob.Builder getBlobBuilder() { + return internalGetBlobFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if ((dataCase_ == 7) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) data_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Blob data.
            +     * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + internalGetBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(dataCase_ == 7)) { + data_ = com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + blobBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder>( + (com.google.cloud.ces.v1.Blob) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 7; + onChanged(); + return blobBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java index fd6a5ef8e5a5..eebacc95c152 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java @@ -104,6 +104,43 @@ public interface ChunkOrBuilder */ com.google.protobuf.ByteString getTranscriptBytes(); + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + boolean hasBlob(); + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + com.google.cloud.ces.v1.Blob getBlob(); + + /** + * + * + *
            +   * Optional. Blob data.
            +   * 
            + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java index 83f4820021d0..1bbf45244772 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java @@ -152,7 +152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004cert\030\002 \001(\014B\003\340A\002\"Z\n" + "\026ServiceDirectoryConfig\022@\n" + "\007service\030\001 \001(\tB/\340A\002\372A)\n" - + "\'servicedirectory.googleapis.com/Service\"\211\n\n" + + "\'servicedirectory.googleapis.com/Service\"\303\n\n" + "\016ChannelProfile\022\027\n\n" + "profile_id\030\001 \001(\tB\003\340A\001\022J\n" + "\014channel_type\030\003 \001(\0162/.google.clo" @@ -170,7 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Persona\022\013\n" + "\007UNKNOWN\020\000\022\013\n" + "\007CONCISE\020\001\022\n\n" - + "\006CHATTY\020\002\032\337\004\n" + + "\006CHATTY\020\002\032\371\004\n" + "\017WebWidgetConfig\022S\n" + "\010modality\030\001 \001(\0162<.google.cloud." + "ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022M\n" @@ -183,16 +183,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024enable_public_access\030\001 \001(\010B\003\340A\001\022 \n" + "\023enable_origin_check\030\004 \001(\010B\003\340A\001\022\034\n" + "\017allowed_origins\030\002 \003(\tB\003\340A\001\022\035\n" - + "\020enable_recaptcha\030\003 \001(\010B\003\340A\001\"W\n" + + "\020enable_recaptcha\030\003 \001(\010B\003\340A\001\"q\n" + "\010Modality\022\030\n" + "\024MODALITY_UNSPECIFIED\020\000\022\022\n" + "\016CHAT_AND_VOICE\020\001\022\016\n\n" + "VOICE_ONLY\020\002\022\r\n" - + "\tCHAT_ONLY\020\003\"3\n" + + "\tCHAT_ONLY\020\003\022\030\n" + + "\024CHAT_VOICE_AND_VIDEO\020\004\"3\n" + "\005Theme\022\025\n" + "\021THEME_UNSPECIFIED\020\000\022\t\n" + "\005LIGHT\020\001\022\010\n" - + "\004DARK\020\002\"\206\001\n" + + "\004DARK\020\002\"\246\001\n" + "\013ChannelType\022\013\n" + "\007UNKNOWN\020\000\022\n\n" + "\006WEB_UI\020\002\022\007\n" @@ -200,7 +201,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006TWILIO\020\004\022\035\n" + "\031GOOGLE_TELEPHONY_PLATFORM\020\005\022\037\n" + "\033CONTACT_CENTER_AS_A_SERVICE\020\006\022\t\n" - + "\005FIVE9\020\007\"\232\002\n" + + "\005FIVE9\020\007\022\036\n" + + "\032CONTACT_CENTER_INTEGRATION\020\010\"\232\002\n" + "\004Span\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -212,10 +214,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013SYNCHRONOUS\020\001\022\020\n" + "\014ASYNCHRONOUS\020\002B\322\001\n" - + "\027com.google.cl" - + "oud.ces.v1B\013CommonProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojec" - + "ts/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\027com.google.cloud.ces.v1B\013CommonProt" + + "oP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations" + + "/{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java index d61fcc0b1bb5..46da739d8088 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { *
            * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Override @@ -647,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -669,7 +669,7 @@ public int getSourceValue() { *
            * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -694,7 +694,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Override @@ -718,7 +718,7 @@ public com.google.cloud.ces.v1.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @param value The source to set. * @return This builder for chaining. */ @@ -746,7 +746,7 @@ public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java index 7efd6324132b..3c911ef443cc 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1158 + * google/cloud/ces/v1/agent_service.proto;l=1166 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java index bc33b1718d76..d3a54a3f9680 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -112,7 +112,7 @@ public java.lang.String getName() { *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -194,13 +194,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -222,13 +224,15 @@ public java.lang.String getAppVersion() { * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. @@ -966,7 +970,7 @@ public Builder mergeFrom( *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -991,7 +995,7 @@ public java.lang.String getName() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1016,7 +1020,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1040,7 +1044,7 @@ public Builder setName(java.lang.String value) { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1060,7 +1064,7 @@ public Builder clearName() { *
                  * Identifier. The resource name of the deployment.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1196,13 +1200,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -1223,13 +1229,15 @@ public java.lang.String getAppVersion() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. @@ -1250,13 +1258,15 @@ public com.google.protobuf.ByteString getAppVersionBytes() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The appVersion to set. @@ -1276,13 +1286,15 @@ public Builder setAppVersion(java.lang.String value) { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1298,13 +1310,15 @@ public Builder clearAppVersion() { * * *
            -     * Required. The resource name of the app version to deploy.
            +     * Optional. The resource name of the app version to deploy.
                  * Format:
            -     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +     * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +     * the draft app.
                  * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for appVersion to set. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java index f261fb983b8e..96dfc70c55ff 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java @@ -32,7 +32,7 @@ public interface DeploymentOrBuilder *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -47,7 +47,7 @@ public interface DeploymentOrBuilder *
                * Identifier. The resource name of the deployment.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
            +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -86,13 +86,15 @@ public interface DeploymentOrBuilder * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The appVersion. @@ -103,13 +105,15 @@ public interface DeploymentOrBuilder * * *
            -   * Required. The resource name of the app version to deploy.
            +   * Optional. The resource name of the app version to deploy.
                * Format:
            -   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
            +   * Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
            +   * the draft app.
                * 
            * * - * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string app_version = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for appVersion. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java new file mode 100644 index 000000000000..47279e40e2b6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicy.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Defines project/location level endpoint control policy.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.EndpointControlPolicy} + */ +@com.google.protobuf.Generated +public final class EndpointControlPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndpointControlPolicy) + EndpointControlPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndpointControlPolicy"); + } + + // Use EndpointControlPolicy.newBuilder() to construct. + private EndpointControlPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndpointControlPolicy() { + enforcementScope_ = 0; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndpointControlPolicy.class, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder.class); + } + + /** + * + * + *
            +   * Defines the scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope} + */ + public enum EnforcementScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified. This policy will be treated as VPCSC_ONLY.
            +     * 
            + * + * ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + */ + ENFORCEMENT_SCOPE_UNSPECIFIED(0), + /** + * + * + *
            +     * This policy applies only when VPC-SC is active.
            +     * 
            + * + * VPCSC_ONLY = 1; + */ + VPCSC_ONLY(1), + /** + * + * + *
            +     * This policy ALWAYS applies, regardless of VPC-SC status.
            +     * 
            + * + * ALWAYS = 2; + */ + ALWAYS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnforcementScope"); + } + + /** + * + * + *
            +     * Unspecified. This policy will be treated as VPCSC_ONLY.
            +     * 
            + * + * ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + */ + public static final int ENFORCEMENT_SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * This policy applies only when VPC-SC is active.
            +     * 
            + * + * VPCSC_ONLY = 1; + */ + public static final int VPCSC_ONLY_VALUE = 1; + + /** + * + * + *
            +     * This policy ALWAYS applies, regardless of VPC-SC status.
            +     * 
            + * + * ALWAYS = 2; + */ + public static final int ALWAYS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnforcementScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnforcementScope forNumber(int value) { + switch (value) { + case 0: + return ENFORCEMENT_SCOPE_UNSPECIFIED; + case 1: + return VPCSC_ONLY; + case 2: + return ALWAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnforcementScope findValueByNumber(int number) { + return EnforcementScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.EndpointControlPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final EnforcementScope[] VALUES = values(); + + public static EnforcementScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnforcementScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope) + } + + public static final int ENFORCEMENT_SCOPE_FIELD_NUMBER = 1; + private int enforcementScope_ = 0; + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + @java.lang.Override + public int getEnforcementScopeValue() { + return enforcementScope_; + } + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope() { + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope result = + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.forNumber(enforcementScope_); + return result == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_ORIGINS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + return allowedOrigins_; + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enforcementScope_ + != com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope + .ENFORCEMENT_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, enforcementScope_); + } + for (int i = 0; i < allowedOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedOrigins_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enforcementScope_ + != com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope + .ENFORCEMENT_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, enforcementScope_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedOriginsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EndpointControlPolicy)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndpointControlPolicy other = + (com.google.cloud.ces.v1.EndpointControlPolicy) obj; + + if (enforcementScope_ != other.enforcementScope_) return false; + if (!getAllowedOriginsList().equals(other.getAllowedOriginsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENFORCEMENT_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + enforcementScope_; + if (getAllowedOriginsCount() > 0) { + hash = (37 * hash) + ALLOWED_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedOriginsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.EndpointControlPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Defines project/location level endpoint control policy.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.EndpointControlPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndpointControlPolicy) + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndpointControlPolicy.class, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EndpointControlPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enforcementScope_ = 0; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy build() { + com.google.cloud.ces.v1.EndpointControlPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy buildPartial() { + com.google.cloud.ces.v1.EndpointControlPolicy result = + new com.google.cloud.ces.v1.EndpointControlPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.EndpointControlPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enforcementScope_ = enforcementScope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedOrigins_.makeImmutable(); + result.allowedOrigins_ = allowedOrigins_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndpointControlPolicy) { + return mergeFrom((com.google.cloud.ces.v1.EndpointControlPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.EndpointControlPolicy other) { + if (other == com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance()) return this; + if (other.enforcementScope_ != 0) { + setEnforcementScopeValue(other.getEnforcementScopeValue()); + } + if (!other.allowedOrigins_.isEmpty()) { + if (allowedOrigins_.isEmpty()) { + allowedOrigins_ = other.allowedOrigins_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedOriginsIsMutable(); + allowedOrigins_.addAll(other.allowedOrigins_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enforcementScope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int enforcementScope_ = 0; + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + @java.lang.Override + public int getEnforcementScopeValue() { + return enforcementScope_; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for enforcementScope to set. + * @return This builder for chaining. + */ + public Builder setEnforcementScopeValue(int value) { + enforcementScope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope() { + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope result = + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.forNumber( + enforcementScope_); + return result == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enforcementScope to set. + * @return This builder for chaining. + */ + public Builder setEnforcementScope( + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + enforcementScope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scope in which this policy's allowed_origins list is
            +     * enforced.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnforcementScope() { + bitField0_ = (bitField0_ & ~0x00000001); + enforcementScope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedOriginsIsMutable() { + if (!allowedOrigins_.isModifiable()) { + allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(allowedOrigins_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + allowedOrigins_.makeImmutable(); + return allowedOrigins_; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedOrigins to set. + * @return This builder for chaining. + */ + public Builder setAllowedOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedOrigins(java.lang.Iterable values) { + ensureAllowedOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedOrigins_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedOrigins() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +     * directly call. The enforcement depends on the value of
            +     * enforcement_scope and the VPC-SC status of the project.
            +     * If a port number is not provided, all ports will be allowed. Otherwise,
            +     * the port number must match exactly. For example, "https://example.com"
            +     * will match "https://example.com:443" and any other port.
            +     * "https://example.com:443" will only match "https://example.com:443".
            +     * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndpointControlPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndpointControlPolicy) + private static final com.google.cloud.ces.v1.EndpointControlPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndpointControlPolicy(); + } + + public static com.google.cloud.ces.v1.EndpointControlPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointControlPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java new file mode 100644 index 000000000000..492ff03e5d77 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndpointControlPolicyOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EndpointControlPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndpointControlPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for enforcementScope. + */ + int getEnforcementScopeValue(); + + /** + * + * + *
            +   * Optional. The scope in which this policy's allowed_origins list is
            +   * enforced.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope enforcement_scope = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enforcementScope. + */ + com.google.cloud.ces.v1.EndpointControlPolicy.EnforcementScope getEnforcementScope(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + java.util.List getAllowedOriginsList(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + int getAllowedOriginsCount(); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + java.lang.String getAllowedOrigins(int index); + + /** + * + * + *
            +   * Optional. The allowed HTTP(s) origins that tools in the App are able to
            +   * directly call. The enforcement depends on the value of
            +   * enforcement_scope and the VPC-SC status of the project.
            +   * If a port number is not provided, all ports will be allowed. Otherwise,
            +   * the port number must match exactly. For example, "https://example.com"
            +   * will match "https://example.com:443" and any other port.
            +   * "https://example.com:443" will only match "https://example.com:443".
            +   * 
            + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + com.google.protobuf.ByteString getAllowedOriginsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java new file mode 100644 index 000000000000..361b858c82cb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettings.java @@ -0,0 +1,789 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Settings to describe how errors should be handled in the app.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings} + */ +@com.google.protobuf.Generated +public final class ErrorHandlingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ErrorHandlingSettings) + ErrorHandlingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ErrorHandlingSettings"); + } + + // Use ErrorHandlingSettings.newBuilder() to construct. + private ErrorHandlingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ErrorHandlingSettings() { + errorHandlingStrategy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder.class); + } + + /** + * + * + *
            +   * Defines the strategy for handling errors.
            +   * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy} + */ + public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified error handling strategy.
            +     * 
            + * + * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + */ + ERROR_HANDLING_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
            +     * No specific handling is enabled.
            +     * 
            + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
            +     * A fallback message will be returned to the user in case of
            +     * system errors (e.g. LLM errors).
            +     * 
            + * + * FALLBACK_RESPONSE = 2; + */ + FALLBACK_RESPONSE(2), + /** + * + * + *
            +     * An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in
            +     * case of system errors (e.g. LLM errors).
            +     * 
            + * + * END_SESSION = 3; + */ + END_SESSION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ErrorHandlingStrategy"); + } + + /** + * + * + *
            +     * Unspecified error handling strategy.
            +     * 
            + * + * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + */ + public static final int ERROR_HANDLING_STRATEGY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * No specific handling is enabled.
            +     * 
            + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
            +     * A fallback message will be returned to the user in case of
            +     * system errors (e.g. LLM errors).
            +     * 
            + * + * FALLBACK_RESPONSE = 2; + */ + public static final int FALLBACK_RESPONSE_VALUE = 2; + + /** + * + * + *
            +     * An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in
            +     * case of system errors (e.g. LLM errors).
            +     * 
            + * + * END_SESSION = 3; + */ + public static final int END_SESSION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorHandlingStrategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ErrorHandlingStrategy forNumber(int value) { + switch (value) { + case 0: + return ERROR_HANDLING_STRATEGY_UNSPECIFIED; + case 1: + return NONE; + case 2: + return FALLBACK_RESPONSE; + case 3: + return END_SESSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorHandlingStrategy findValueByNumber(int number) { + return ErrorHandlingStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorHandlingStrategy[] VALUES = values(); + + public static ErrorHandlingStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ErrorHandlingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy) + } + + public static final int ERROR_HANDLING_STRATEGY_FIELD_NUMBER = 1; + private int errorHandlingStrategy_ = 0; + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + @java.lang.Override + public int getErrorHandlingStrategyValue() { + return errorHandlingStrategy_; + } + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + getErrorHandlingStrategy() { + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy result = + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.forNumber( + errorHandlingStrategy_); + return result == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (errorHandlingStrategy_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + .ERROR_HANDLING_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, errorHandlingStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (errorHandlingStrategy_ + != com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + .ERROR_HANDLING_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorHandlingStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ErrorHandlingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ErrorHandlingSettings other = + (com.google.cloud.ces.v1.ErrorHandlingSettings) obj; + + if (errorHandlingStrategy_ != other.errorHandlingStrategy_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ERROR_HANDLING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + errorHandlingStrategy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ErrorHandlingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Settings to describe how errors should be handled in the app.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.ErrorHandlingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ErrorHandlingSettings) + com.google.cloud.ces.v1.ErrorHandlingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ErrorHandlingSettings.class, + com.google.cloud.ces.v1.ErrorHandlingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ErrorHandlingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + errorHandlingStrategy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ErrorHandlingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings build() { + com.google.cloud.ces.v1.ErrorHandlingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings buildPartial() { + com.google.cloud.ces.v1.ErrorHandlingSettings result = + new com.google.cloud.ces.v1.ErrorHandlingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ErrorHandlingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorHandlingStrategy_ = errorHandlingStrategy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ErrorHandlingSettings) { + return mergeFrom((com.google.cloud.ces.v1.ErrorHandlingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ErrorHandlingSettings other) { + if (other == com.google.cloud.ces.v1.ErrorHandlingSettings.getDefaultInstance()) return this; + if (other.errorHandlingStrategy_ != 0) { + setErrorHandlingStrategyValue(other.getErrorHandlingStrategyValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + errorHandlingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int errorHandlingStrategy_ = 0; + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + @java.lang.Override + public int getErrorHandlingStrategyValue() { + return errorHandlingStrategy_; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for errorHandlingStrategy to set. + * @return This builder for chaining. + */ + public Builder setErrorHandlingStrategyValue(int value) { + errorHandlingStrategy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy + getErrorHandlingStrategy() { + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy result = + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.forNumber( + errorHandlingStrategy_); + return result == null + ? com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The errorHandlingStrategy to set. + * @return This builder for chaining. + */ + public Builder setErrorHandlingStrategy( + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + errorHandlingStrategy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The strategy to use for error handling.
            +     * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorHandlingStrategy() { + bitField0_ = (bitField0_ & ~0x00000001); + errorHandlingStrategy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ErrorHandlingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ErrorHandlingSettings) + private static final com.google.cloud.ces.v1.ErrorHandlingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ErrorHandlingSettings(); + } + + public static com.google.cloud.ces.v1.ErrorHandlingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorHandlingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ErrorHandlingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java new file mode 100644 index 000000000000..b3320490126f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ErrorHandlingSettingsOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ErrorHandlingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ErrorHandlingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for errorHandlingStrategy. + */ + int getErrorHandlingStrategyValue(); + + /** + * + * + *
            +   * Optional. The strategy to use for error handling.
            +   * 
            + * + * + * .google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorHandlingStrategy. + */ + com.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java index 3830c9df095c..ea7568b0df22 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java @@ -4750,7 +4750,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4772,7 +4772,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5562,7 +5562,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5584,7 +5584,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5609,7 +5609,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5638,7 +5638,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5667,7 +5667,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java index 045eab77f914..143f99eea5cb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is - * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * deprecated. See google/cloud/ces/v1/app.proto;l=534 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java index 7c166305ebdf..a1cc6e438c30 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java @@ -104,18 +104,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Message\022\021\n" + "\004role\030\001 \001(\tB\003\340A\001\022/\n" + "\006chunks\030\002 \003(\0132\032.google.cloud.ces.v1.ChunkB\003\340A\001\0223\n\n" - + "event_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\313\003\n" + + "event_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\373\003\n" + "\005Chunk\022\023\n" + "\004text\030\001 \001(\tB\003\340A\001H\000\022\031\n\n" - + "transcript\030\t \001(\tB\003\340A\001H\000\022/\n" + + "transcript\030\t \001(\tB\003\340A\001H\000\022.\n" + + "\004blob\030\007 \001(\0132\031.google.cloud.ces.v1.BlobB\003\340A\001H\000\022/\n" + "\007payload\030\013 \001(\0132\027.google.protobuf.StructB\003\340A\001H\000\0220\n" + "\005image\030\005 \001(\0132\032.google.cloud.ces.v1.ImageB\003\340A\001H\000\0227\n" + "\ttool_call\030\002" + " \001(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001H\000\022?\n\r" + "tool_response\030\003" + " \001(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001H\000\022A\n" - + "\016agent_transfer\030\004" - + " \001(\0132\".google.cloud.ces.v1.AgentTransferB\003\340A\001H\000\0224\n" + + "\016agent_transfer\030\004 \001" + + "(\0132\".google.cloud.ces.v1.AgentTransferB\003\340A\001H\000\0224\n" + "\021updated_variables\030\010 \001(\0132\027.google.protobuf.StructH\000\0224\n" + "\021default_variables\030\n" + " \001(\0132\027.google.protobuf.StructH\000B\006\n" @@ -148,8 +149,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014target_agent\030\001 \001(\tB \340A\002\372A\032\n" + "\030ces.googleapis.com/Agent\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\003BT\n" - + "\027com.google.cloud.ces.v1B\014ExampleProtoP\001Z)cloud.g" - + "oogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\014ExampleProtoP\001Z" + + ")cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -190,6 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Text", "Transcript", + "Blob", "Payload", "Image", "ToolCall", diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java index 2f08f2002492..04a987873a98 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java @@ -122,6 +122,56 @@ public ToolIdentifierCase getToolIdentifierCase() { return ToolIdentifierCase.forNumber(toolIdentifierCase_); } + private int toolExecutionContextCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolExecutionContext_; + + public enum ToolExecutionContextCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VARIABLES(5), + CONTEXT(6), + TOOLEXECUTIONCONTEXT_NOT_SET(0); + private final int value; + + private ToolExecutionContextCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolExecutionContextCase valueOf(int value) { + return forNumber(value); + } + + public static ToolExecutionContextCase forNumber(int value) { + switch (value) { + case 5: + return VARIABLES; + case 6: + return CONTEXT; + case 0: + return TOOLEXECUTIONCONTEXT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolExecutionContextCase getToolExecutionContextCase() { + return ToolExecutionContextCase.forNumber(toolExecutionContextCase_); + } + public static final int TOOL_FIELD_NUMBER = 1; /** @@ -270,6 +320,120 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); } + public static final int VARIABLES_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return toolExecutionContextCase_ == 5; + } + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int CONTEXT_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return toolExecutionContextCase_ == 6; + } + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + public static final int PARENT_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -407,6 +571,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (toolExecutionContextCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Struct) toolExecutionContext_); + } + if (toolExecutionContextCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Struct) toolExecutionContext_); + } getUnknownFields().writeTo(output); } @@ -430,6 +600,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (toolExecutionContextCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.protobuf.Struct) toolExecutionContext_); + } + if (toolExecutionContextCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.protobuf.Struct) toolExecutionContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -462,6 +642,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getToolExecutionContextCase().equals(other.getToolExecutionContextCase())) return false; + switch (toolExecutionContextCase_) { + case 5: + if (!getVariables().equals(other.getVariables())) return false; + break; + case 6: + if (!getContext().equals(other.getContext())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -491,6 +682,18 @@ public int hashCode() { case 0: default: } + switch (toolExecutionContextCase_) { + case 5: + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + break; + case 6: + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -644,6 +847,12 @@ public Builder clear() { if (toolsetToolBuilder_ != null) { toolsetToolBuilder_.clear(); } + if (variablesBuilder_ != null) { + variablesBuilder_.clear(); + } + if (contextBuilder_ != null) { + contextBuilder_.clear(); + } parent_ = ""; args_ = null; if (argsBuilder_ != null) { @@ -652,6 +861,8 @@ public Builder clear() { } toolIdentifierCase_ = 0; toolIdentifier_ = null; + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; return this; } @@ -689,11 +900,11 @@ public com.google.cloud.ces.v1.ExecuteToolRequest buildPartial() { private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -706,6 +917,14 @@ private void buildPartialOneofs(com.google.cloud.ces.v1.ExecuteToolRequest resul if (toolIdentifierCase_ == 3 && toolsetToolBuilder_ != null) { result.toolIdentifier_ = toolsetToolBuilder_.build(); } + result.toolExecutionContextCase_ = toolExecutionContextCase_; + result.toolExecutionContext_ = this.toolExecutionContext_; + if (toolExecutionContextCase_ == 5 && variablesBuilder_ != null) { + result.toolExecutionContext_ = variablesBuilder_.build(); + } + if (toolExecutionContextCase_ == 6 && contextBuilder_ != null) { + result.toolExecutionContext_ = contextBuilder_.build(); + } } @java.lang.Override @@ -722,7 +941,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { if (other == com.google.cloud.ces.v1.ExecuteToolRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasArgs()) { @@ -746,6 +965,22 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { break; } } + switch (other.getToolExecutionContextCase()) { + case VARIABLES: + { + mergeVariables(other.getVariables()); + break; + } + case CONTEXT: + { + mergeContext(other.getContext()); + break; + } + case TOOLEXECUTIONCONTEXT_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -782,7 +1017,7 @@ public Builder mergeFrom( case 18: { input.readMessage(internalGetArgsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: @@ -795,9 +1030,22 @@ public Builder mergeFrom( case 34: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 34 + case 42: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + toolExecutionContextCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetContextFieldBuilder().getBuilder(), extensionRegistry); + toolExecutionContextCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -829,6 +1077,20 @@ public Builder clearToolIdentifier() { return this; } + private int toolExecutionContextCase_ = 0; + private java.lang.Object toolExecutionContext_; + + public ToolExecutionContextCase getToolExecutionContextCase() { + return ToolExecutionContextCase.forNumber(toolExecutionContextCase_); + } + + public Builder clearToolExecutionContext() { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + return this; + } + private int bitField0_; /** @@ -1238,6 +1500,458 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { return toolsetToolBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return toolExecutionContextCase_ == 5; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (toolExecutionContextCase_ == 5) { + return variablesBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolExecutionContext_ = value; + onChanged(); + } else { + variablesBuilder_.setMessage(value); + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + toolExecutionContext_ = builderForValue.build(); + onChanged(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5 + && toolExecutionContext_ != com.google.protobuf.Struct.getDefaultInstance()) { + toolExecutionContext_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) toolExecutionContext_) + .mergeFrom(value) + .buildPartial(); + } else { + toolExecutionContext_ = value; + } + onChanged(); + } else { + if (toolExecutionContextCase_ == 5) { + variablesBuilder_.mergeFrom(value); + } else { + variablesBuilder_.setMessage(value); + } + } + toolExecutionContextCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + if (toolExecutionContextCase_ == 5) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + } + } else { + if (toolExecutionContextCase_ == 5) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + } + variablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if ((toolExecutionContextCase_ == 5) && (variablesBuilder_ != null)) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + if (toolExecutionContextCase_ == 5) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The variables that are available for the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + if (!(toolExecutionContextCase_ == 5)) { + toolExecutionContext_ = com.google.protobuf.Struct.getDefaultInstance(); + } + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) toolExecutionContext_, + getParentForChildren(), + isClean()); + toolExecutionContext_ = null; + } + toolExecutionContextCase_ = 5; + onChanged(); + return variablesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contextBuilder_; + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return toolExecutionContextCase_ == 6; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (toolExecutionContextCase_ == 6) { + return contextBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolExecutionContext_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContext(com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + toolExecutionContext_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6 + && toolExecutionContext_ != com.google.protobuf.Struct.getDefaultInstance()) { + toolExecutionContext_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) toolExecutionContext_) + .mergeFrom(value) + .buildPartial(); + } else { + toolExecutionContext_ = value; + } + onChanged(); + } else { + if (toolExecutionContextCase_ == 6) { + contextBuilder_.mergeFrom(value); + } else { + contextBuilder_.setMessage(value); + } + } + toolExecutionContextCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + if (toolExecutionContextCase_ == 6) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + onChanged(); + } + } else { + if (toolExecutionContextCase_ == 6) { + toolExecutionContextCase_ = 0; + toolExecutionContext_ = null; + } + contextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getContextBuilder() { + return internalGetContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if ((toolExecutionContextCase_ == 6) && (contextBuilder_ != null)) { + return contextBuilder_.getMessageOrBuilder(); + } else { + if (toolExecutionContextCase_ == 6) { + return (com.google.protobuf.Struct) toolExecutionContext_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The
            +     * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +     * for details) to be passed to the Python tool.
            +     * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContextFieldBuilder() { + if (contextBuilder_ == null) { + if (!(toolExecutionContextCase_ == 6)) { + toolExecutionContext_ = com.google.protobuf.Struct.getDefaultInstance(); + } + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) toolExecutionContext_, + getParentForChildren(), + isClean()); + toolExecutionContext_ = null; + } + toolExecutionContextCase_ = 6; + onChanged(); + return contextBuilder_; + } + private java.lang.Object parent_ = ""; /** @@ -1312,7 +2026,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1333,7 +2047,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1359,7 +2073,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1384,7 +2098,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the args field is set. */ public boolean hasArgs() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1426,7 +2140,7 @@ public Builder setArgs(com.google.protobuf.Struct value) { } else { argsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1447,7 +2161,7 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { } else { argsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1464,7 +2178,7 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeArgs(com.google.protobuf.Struct value) { if (argsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && args_ != null && args_ != com.google.protobuf.Struct.getDefaultInstance()) { getArgsBuilder().mergeFrom(value); @@ -1475,7 +2189,7 @@ public Builder mergeArgs(com.google.protobuf.Struct value) { argsBuilder_.mergeFrom(value); } if (args_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1492,7 +2206,7 @@ public Builder mergeArgs(com.google.protobuf.Struct value) { * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearArgs() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); args_ = null; if (argsBuilder_ != null) { argsBuilder_.dispose(); @@ -1513,7 +2227,7 @@ public Builder clearArgs() { * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Struct.Builder getArgsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetArgsFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java index a55a4a9313da..ec2c88d8dc76 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java @@ -123,6 +123,86 @@ public interface ExecuteToolRequestOrBuilder */ com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
            +   * Optional. The variables that are available for the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the context field is set. + */ + boolean hasContext(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The context. + */ + com.google.protobuf.Struct getContext(); + + /** + * + * + *
            +   * Optional. The
            +   * [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
            +   * for details) to be passed to the Python tool.
            +   * 
            + * + * .google.protobuf.Struct context = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); + /** * * @@ -196,4 +276,6 @@ public interface ExecuteToolRequestOrBuilder com.google.protobuf.StructOrBuilder getArgsOrBuilder(); com.google.cloud.ces.v1.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); + + com.google.cloud.ces.v1.ExecuteToolRequest.ToolExecutionContextCase getToolExecutionContextCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java index 6c5816cb96f5..3c79ebf630f2 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java @@ -257,13 +257,13 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -276,13 +276,13 @@ public boolean hasResponse() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -295,19 +295,68 @@ public com.google.protobuf.Struct getResponse() { * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; } + public static final int VARIABLES_FIELD_NUMBER = 4; + private com.google.protobuf.Struct variables_; + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -331,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolIdentifierCase_ == 3) { output.writeMessage(3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getVariables()); + } getUnknownFields().writeTo(output); } @@ -351,6 +403,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVariables()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -371,6 +426,10 @@ public boolean equals(final java.lang.Object obj) { if (hasResponse()) { if (!getResponse().equals(other.getResponse())) return false; } + if (hasVariables() != other.hasVariables()) return false; + if (hasVariables()) { + if (!getVariables().equals(other.getVariables())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -397,6 +456,10 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } + if (hasVariables()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -552,6 +615,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetResponseFieldBuilder(); + internalGetVariablesFieldBuilder(); } } @@ -567,6 +631,11 @@ public Builder clear() { responseBuilder_.dispose(); responseBuilder_ = null; } + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; return this; @@ -611,6 +680,10 @@ private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolResponse result) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.variables_ = variablesBuilder_ == null ? variables_ : variablesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -637,6 +710,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolResponse other) { if (other.hasResponse()) { mergeResponse(other.getResponse()); } + if (other.hasVariables()) { + mergeVariables(other.getVariables()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -702,6 +778,13 @@ public Builder mergeFrom( toolIdentifierCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1108,13 +1191,13 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -1126,13 +1209,13 @@ public boolean hasResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -1148,13 +1231,13 @@ public com.google.protobuf.Struct getResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder setResponse(com.google.protobuf.Struct value) { if (responseBuilder_ == null) { @@ -1174,13 +1257,13 @@ public Builder setResponse(com.google.protobuf.Struct value) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { if (responseBuilder_ == null) { @@ -1197,13 +1280,13 @@ public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder mergeResponse(com.google.protobuf.Struct value) { if (responseBuilder_ == null) { @@ -1228,13 +1311,13 @@ public Builder mergeResponse(com.google.protobuf.Struct value) { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public Builder clearResponse() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1251,13 +1334,13 @@ public Builder clearResponse() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public com.google.protobuf.Struct.Builder getResponseBuilder() { bitField0_ |= 0x00000004; @@ -1269,13 +1352,13 @@ public com.google.protobuf.Struct.Builder getResponseBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { @@ -1289,13 +1372,13 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { * * *
            -     * Required. The tool execution result in JSON object format.
            +     * The tool execution result in JSON object format.
                  * Use "output" key to specify tool response and "error" key to specify
                  * error details (if any). If "output" and "error" keys are not specified,
                  * then whole "response" is treated as tool execution result.
                  * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, @@ -1314,6 +1397,196 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { return responseBuilder_; } + private com.google.protobuf.Struct variables_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + public boolean hasVariables() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } else { + return variablesBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variables_ = value; + } else { + variablesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + variables_ = builderForValue.build(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && variables_ != null + && variables_ != com.google.protobuf.Struct.getDefaultInstance()) { + getVariablesBuilder().mergeFrom(value); + } else { + variables_ = value; + } + } else { + variablesBuilder_.mergeFrom(value); + } + if (variables_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000008); + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + } + + /** + * + * + *
            +     * The variable values at the end of the tool execution.
            +     * 
            + * + * .google.protobuf.Struct variables = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getVariables(), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolResponse) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java index 5d2f81877f1d..69cea8c22ec8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java @@ -109,13 +109,13 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return Whether the response field is set. */ @@ -125,13 +125,13 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; * * @return The response. */ @@ -141,15 +141,52 @@ public interface ExecuteToolResponseOrBuilder * * *
            -   * Required. The tool execution result in JSON object format.
            +   * The tool execution result in JSON object format.
                * Use "output" key to specify tool response and "error" key to specify
                * error details (if any). If "output" and "error" keys are not specified,
                * then whole "response" is treated as tool execution result.
                * 
            * - * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Struct response = 2; */ com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
            +   * The variable values at the end of the tool execution.
            +   * 
            + * + * .google.protobuf.Struct variables = 4; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + com.google.cloud.ces.v1.ExecuteToolResponse.ToolIdentifierCase getToolIdentifierCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java index 1c3fc4ce260e..896730999b3a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java @@ -56,6 +56,7 @@ private ExportAppRequest() { name_ = ""; exportFormat_ = 0; gcsUri_ = ""; + appVersion_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -401,6 +402,67 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } } + public static final int APP_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersion_ = ""; + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -426,6 +488,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, appVersion_); + } getUnknownFields().writeTo(output); } @@ -446,6 +511,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, appVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -464,6 +532,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (exportFormat_ != other.exportFormat_) return false; if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getAppVersion().equals(other.getAppVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -481,6 +550,8 @@ public int hashCode() { hash = (53 * hash) + exportFormat_; hash = (37 * hash) + GCS_URI_FIELD_NUMBER; hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -625,6 +696,7 @@ public Builder clear() { name_ = ""; exportFormat_ = 0; gcsUri_ = ""; + appVersion_ = ""; return this; } @@ -670,6 +742,9 @@ private void buildPartial0(com.google.cloud.ces.v1.ExportAppRequest result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.gcsUri_ = gcsUri_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.appVersion_ = appVersion_; + } } @java.lang.Override @@ -697,6 +772,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.ExportAppRequest other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -741,6 +821,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + appVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1114,6 +1200,137 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object appVersion_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + appVersion_ = getDefaultInstance().getAppVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The resource name of the app version to export.
            +     * Format:
            +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +     * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExportAppRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java index b771d020aee7..ae847adcc262 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java @@ -117,4 +117,38 @@ public interface ExportAppRequestOrBuilder * @return The bytes for gcsUri. */ com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + java.lang.String getAppVersion(); + + /** + * + * + *
            +   * Optional. The resource name of the app version to export.
            +   * Format:
            +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`.
            +   * 
            + * + * + * string app_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString getAppVersionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java index f568a91089d7..06f7e42cc905 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java @@ -248,6 +248,25 @@ public com.google.protobuf.ByteString getRecaptchaTokenBytes() { } } + public static final int LIVE_HANDOFF_ENABLED_FIELD_NUMBER = 4; + private boolean liveHandoffEnabled_ = false; + + /** + * + * + *
            +   * Optional. Indicates if live handoff is enabled for the session.
            +   * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + @java.lang.Override + public boolean getLiveHandoffEnabled() { + return liveHandoffEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -271,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, recaptchaToken_); } + if (liveHandoffEnabled_ != false) { + output.writeBool(4, liveHandoffEnabled_); + } getUnknownFields().writeTo(output); } @@ -289,6 +311,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, recaptchaToken_); } + if (liveHandoffEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, liveHandoffEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -308,6 +333,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDeployment().equals(other.getDeployment())) return false; if (!getRecaptchaToken().equals(other.getRecaptchaToken())) return false; + if (getLiveHandoffEnabled() != other.getLiveHandoffEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,6 +351,8 @@ public int hashCode() { hash = (53 * hash) + getDeployment().hashCode(); hash = (37 * hash) + RECAPTCHA_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getRecaptchaToken().hashCode(); + hash = (37 * hash) + LIVE_HANDOFF_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveHandoffEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -469,6 +497,7 @@ public Builder clear() { name_ = ""; deployment_ = ""; recaptchaToken_ = ""; + liveHandoffEnabled_ = false; return this; } @@ -514,6 +543,9 @@ private void buildPartial0(com.google.cloud.ces.v1.GenerateChatTokenRequest resu if (((from_bitField0_ & 0x00000004) != 0)) { result.recaptchaToken_ = recaptchaToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.liveHandoffEnabled_ = liveHandoffEnabled_; + } } @java.lang.Override @@ -544,6 +576,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1.GenerateChatTokenRequest other) bitField0_ |= 0x00000004; onChanged(); } + if (other.getLiveHandoffEnabled() != false) { + setLiveHandoffEnabled(other.getLiveHandoffEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -588,6 +623,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + liveHandoffEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -980,6 +1021,62 @@ public Builder setRecaptchaTokenBytes(com.google.protobuf.ByteString value) { return this; } + private boolean liveHandoffEnabled_; + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + @java.lang.Override + public boolean getLiveHandoffEnabled() { + return liveHandoffEnabled_; + } + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The liveHandoffEnabled to set. + * @return This builder for chaining. + */ + public Builder setLiveHandoffEnabled(boolean value) { + + liveHandoffEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates if live handoff is enabled for the session.
            +     * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLiveHandoffEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + liveHandoffEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GenerateChatTokenRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java index 61f2208bd1a1..e1705ca7522d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java @@ -119,4 +119,17 @@ public interface GenerateChatTokenRequestOrBuilder * @return The bytes for recaptchaToken. */ com.google.protobuf.ByteString getRecaptchaTokenBytes(); + + /** + * + * + *
            +   * Optional. Indicates if live handoff is enabled for the session.
            +   * 
            + * + * bool live_handoff_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The liveHandoffEnabled. + */ + boolean getLiveHandoffEnabled(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java index 5bf4f86418b7..72223c135539 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -668,7 +668,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -693,7 +693,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Override @@ -717,7 +717,7 @@ public com.google.cloud.ces.v1.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @param value The source to set. * @return This builder for chaining. */ @@ -745,7 +745,7 @@ public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java index ca56322d747c..cc91ba6382d0 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1/agent_service.proto;l=1141 + * google/cloud/ces/v1/agent_service.proto;l=1149 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java index 1cb0bf940bc5..7fcc39165207 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java @@ -230,8 +230,11 @@ public boolean getEnableMultilingualSupport() { * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -242,11 +245,15 @@ public boolean getEnableMultilingualSupport() {
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getFallbackAction() { java.lang.Object ref = fallbackAction_; if (ref instanceof java.lang.String) { @@ -263,8 +270,11 @@ public java.lang.String getFallbackAction() { * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -275,11 +285,15 @@ public java.lang.String getFallbackAction() {
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getFallbackActionBytes() { java.lang.Object ref = fallbackAction_; if (ref instanceof java.lang.String) { @@ -1064,8 +1078,11 @@ public Builder clearEnableMultilingualSupport() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1076,10 +1093,15 @@ public Builder clearEnableMultilingualSupport() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ + @java.lang.Deprecated public java.lang.String getFallbackAction() { java.lang.Object ref = fallbackAction_; if (!(ref instanceof java.lang.String)) { @@ -1096,8 +1118,11 @@ public java.lang.String getFallbackAction() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1108,10 +1133,15 @@ public java.lang.String getFallbackAction() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getFallbackActionBytes() { java.lang.Object ref = fallbackAction_; if (ref instanceof String) { @@ -1128,8 +1158,11 @@ public com.google.protobuf.ByteString getFallbackActionBytes() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1140,11 +1173,16 @@ public com.google.protobuf.ByteString getFallbackActionBytes() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @param value The fallbackAction to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFallbackAction(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1159,8 +1197,11 @@ public Builder setFallbackAction(java.lang.String value) { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1171,10 +1212,15 @@ public Builder setFallbackAction(java.lang.String value) {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearFallbackAction() { fallbackAction_ = getDefaultInstance().getFallbackAction(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1186,8 +1232,11 @@ public Builder clearFallbackAction() { * * *
            -     * Optional. The action to perform when an agent receives input in an
            -     * unsupported language.
            +     * Optional. Deprecated: This feature is no longer supported. Use
            +     * `enable_multilingual_support` instead to improve handling of multilingual
            +     * input.
            +     * The action to perform when an agent receives input in an unsupported
            +     * language.
                  *
                  * This can be a predefined action or a custom tool call.
                  * Valid values are:
            @@ -1198,11 +1247,16 @@ public Builder clearFallbackAction() {
                  * conversation.
                  * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @param value The bytes for fallbackAction to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFallbackActionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java index 6a1731f88dee..dd6947bebbcf 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java @@ -132,8 +132,11 @@ public interface LanguageSettingsOrBuilder * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -144,18 +147,25 @@ public interface LanguageSettingsOrBuilder
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The fallbackAction. */ + @java.lang.Deprecated java.lang.String getFallbackAction(); /** * * *
            -   * Optional. The action to perform when an agent receives input in an
            -   * unsupported language.
            +   * Optional. Deprecated: This feature is no longer supported. Use
            +   * `enable_multilingual_support` instead to improve handling of multilingual
            +   * input.
            +   * The action to perform when an agent receives input in an unsupported
            +   * language.
                *
                * This can be a predefined action or a custom tool call.
                * Valid values are:
            @@ -166,9 +176,13 @@ public interface LanguageSettingsOrBuilder
                * conversation.
                * 
            * - * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string fallback_action = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.ces.v1.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1/app.proto;l=235 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated com.google.protobuf.ByteString getFallbackActionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java index 3a2e0fef2770..c041acb02676 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java @@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpTool_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -543,6 +555,135 @@ public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig( : serviceDirectoryConfig_; } + public static final int CUSTOM_HEADERS_FIELD_NUMBER = 9; + + private static final class CustomHeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -581,6 +722,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getServiceDirectoryConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 9); getUnknownFields().writeTo(output); } @@ -615,6 +758,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getServiceDirectoryConfig()); } + for (java.util.Map.Entry entry : + internalGetCustomHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry customHeaders__ = + CustomHeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, customHeaders__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +806,7 @@ public boolean equals(final java.lang.Object obj) { if (hasServiceDirectoryConfig()) { if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; } + if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -690,6 +844,10 @@ public int hashCode() { hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); } + if (!internalGetCustomHeaders().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomHeaders().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -810,6 +968,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpTool_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -871,6 +1051,7 @@ public Builder clear() { serviceDirectoryConfigBuilder_.dispose(); serviceDirectoryConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -944,6 +1125,10 @@ private void buildPartial0(com.google.cloud.ces.v1.McpTool result) { : serviceDirectoryConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customHeaders_ = internalGetCustomHeaders(); + result.customHeaders_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -989,6 +1174,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { if (other.hasServiceDirectoryConfig()) { mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000100; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1069,6 +1256,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + com.google.protobuf.MapEntry customHeaders__ = + input.readMessage( + CustomHeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCustomHeaders() + .getMutableMap() + .put(customHeaders__.getKey(), customHeaders__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2554,6 +2753,216 @@ public Builder clearServiceDirectoryConfig() { return serviceDirectoryConfigBuilder_; } + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomHeaders() { + if (customHeaders_ == null) { + customHeaders_ = + com.google.protobuf.MapField.newMapField(CustomHeadersDefaultEntryHolder.defaultEntry); + } + if (!customHeaders_.isMutable()) { + customHeaders_ = customHeaders_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomHeaders() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableCustomHeaders().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomHeaders().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomHeaders() { + bitField0_ |= 0x00000100; + return internalGetMutableCustomHeaders().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomHeaders(java.util.Map values) { + internalGetMutableCustomHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpTool) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java index 4af83056c35d..2506d5c6caf8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java @@ -336,4 +336,92 @@ public interface McpToolOrBuilder * */ com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomHeadersCount(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomHeaders(java.lang.String key); + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomHeaders(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomHeadersMap(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomHeadersOrThrow(java.lang.String key); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java index 5288becd8d77..bb1a2478065c 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_McpTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -57,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"google/cloud/ces/v1/mcp_tool.proto\022\023go" + "ogle.cloud.ces.v1\032\037google/api/field_beha" + "vior.proto\032\036google/cloud/ces/v1/auth.proto\032" - + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\232\003\n" + + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\236\004\n" + "\007McpTool\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\0226\n" @@ -70,9 +74,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + "tls_config\030\007 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" + "\030service_directory_config\030\010 \001(\0132+.goog" - + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001BT\n" - + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/ces/apiv1/ce" - + "spb;cespbb\006proto3" + + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022L\n" + + "\016custom_headers\030\t \003(\0132/.google.clo" + + "ud.ces.v1.McpTool.CustomHeadersEntryB\003\340A\001\0324\n" + + "\022CustomHeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001BT\n" + + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/" + + "ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -96,6 +105,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiAuthentication", "TlsConfig", "ServiceDirectoryConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1_McpTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpTool_CustomHeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java index 4062c419a957..9faa759576ba 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java @@ -61,6 +61,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpToolset_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -321,6 +333,135 @@ public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; } + public static final int CUSTOM_HEADERS_FIELD_NUMBER = 5; + + private static final class CustomHeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -347,6 +488,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getTlsConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetCustomHeaders(), CustomHeadersDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -369,6 +512,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTlsConfig()); } + for (java.util.Map.Entry entry : + internalGetCustomHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry customHeaders__ = + CustomHeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customHeaders__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -397,6 +550,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTlsConfig()) { if (!getTlsConfig().equals(other.getTlsConfig())) return false; } + if (!internalGetCustomHeaders().equals(other.internalGetCustomHeaders())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,6 +576,10 @@ public int hashCode() { hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTlsConfig().hashCode(); } + if (!internalGetCustomHeaders().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomHeaders().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -541,6 +699,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1_McpToolset_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableCustomHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -589,6 +769,7 @@ public Builder clear() { tlsConfigBuilder_.dispose(); tlsConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -646,6 +827,10 @@ private void buildPartial0(com.google.cloud.ces.v1.McpToolset result) { result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customHeaders_ = internalGetCustomHeaders(); + result.customHeaders_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -675,6 +860,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1.McpToolset other) { if (other.hasTlsConfig()) { mergeTlsConfig(other.getTlsConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -729,6 +916,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + com.google.protobuf.MapEntry customHeaders__ = + input.readMessage( + CustomHeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCustomHeaders() + .getMutableMap() + .put(customHeaders__.getKey(), customHeaders__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1572,6 +1771,216 @@ public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { return tlsConfigBuilder_; } + private com.google.protobuf.MapField customHeaders_; + + private com.google.protobuf.MapField + internalGetCustomHeaders() { + if (customHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomHeadersDefaultEntryHolder.defaultEntry); + } + return customHeaders_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomHeaders() { + if (customHeaders_ == null) { + customHeaders_ = + com.google.protobuf.MapField.newMapField(CustomHeadersDefaultEntryHolder.defaultEntry); + } + if (!customHeaders_.isMutable()) { + customHeaders_ = customHeaders_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return customHeaders_; + } + + public int getCustomHeadersCount() { + return internalGetCustomHeaders().getMap().size(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomHeaders().getMap().containsKey(key); + } + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomHeaders() { + return getCustomHeadersMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomHeadersMap() { + return internalGetCustomHeaders().getMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCustomHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomHeaders() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableCustomHeaders().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomHeaders().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomHeaders() { + bitField0_ |= 0x00000010; + return internalGetMutableCustomHeaders().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
            +     * Optional. The custom headers to send in the request to the MCP server. The
            +     * values must be in the format `$context.variables.<name_of_variable>` and
            +     * can be set in the session variables. See
            +     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +     * for more details.
            +     * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomHeaders(java.util.Map values) { + internalGetMutableCustomHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolset) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java index 29a4e311548f..4587df97f0a4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java @@ -202,4 +202,92 @@ public interface McpToolsetOrBuilder * */ com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomHeadersCount(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomHeaders(java.lang.String key); + + /** Use {@link #getCustomHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomHeaders(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomHeadersMap(); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. The custom headers to send in the request to the MCP server. The
            +   * values must be in the format `$context.variables.<name_of_variable>` and
            +   * can be set in the session variables. See
            +   * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
            +   * for more details.
            +   * 
            + * + * map<string, string> custom_headers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomHeadersOrThrow(java.lang.String key); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java index 8a30cb88bd69..03c34accbdc7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_McpToolset_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,19 +57,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n%google/cloud/ces/v1/mcp_toolset.proto\022" + "\n" + + "%google/cloud/ces/v1/mcp_toolset.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" - + "ehavior.proto\032\036google/cloud/ces/v1/auth." - + "proto\032 google/cloud/ces/v1/common.proto\"" - + "\377\001\n\nMcpToolset\022\033\n\016server_address\030\001 \001(\tB\003" - + "\340A\002\022G\n\022api_authentication\030\002 \001(\0132&.google" - + ".cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n\030" - + "service_directory_config\030\003 \001(\0132+.google." - + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001" - + "\0227\n\ntls_config\030\004 \001(\0132\036.google.cloud.ces." - + "v1.TlsConfigB\003\340A\001BW\n\027com.google.cloud.ce" - + "s.v1B\017McpToolsetProtoP\001Z)cloud.google.co" - + "m/go/ces/apiv1/cespb;cespbb\006proto3" + + "ehavior.proto\032\036google/cloud/ces/v1/auth.proto\032" + + " google/cloud/ces/v1/common.proto\"\206\003\n\n" + + "McpToolset\022\033\n" + + "\016server_address\030\001 \001(\tB\003\340A\002\022G\n" + + "\022api_authentication\030\002" + + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n" + + "\030service_directory_config\030\003 \001(\0132+.google." + + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\0227\n\n" + + "tls_config\030\004 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022O\n" + + "\016custom_headers\030\005 \003(" + + "\01322.google.cloud.ces.v1.McpToolset.CustomHeadersEntryB\003\340A\001\0324\n" + + "\022CustomHeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001BW\n" + + "\027com.google.cloud.ces.v1B\017McpToolsetProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,7 +90,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_McpToolset_descriptor, new java.lang.String[] { - "ServerAddress", "ApiAuthentication", "ServiceDirectoryConfig", "TlsConfig", + "ServerAddress", + "ApiAuthentication", + "ServiceDirectoryConfig", + "TlsConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1_McpToolset_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpToolset_CustomHeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java index 2730c970e430..8182e77b9758 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java @@ -257,11 +257,10 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -274,11 +273,10 @@ public boolean hasInputSchema() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -293,11 +291,10 @@ public com.google.cloud.ces.v1.Schema getInputSchema() { * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ @java.lang.Override public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { @@ -313,11 +310,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -330,11 +326,10 @@ public boolean hasOutputSchema() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -349,11 +344,10 @@ public com.google.cloud.ces.v1.Schema getOutputSchema() { * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ @java.lang.Override public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { @@ -1199,11 +1193,10 @@ public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -1215,11 +1208,10 @@ public boolean hasInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -1237,11 +1229,10 @@ public com.google.cloud.ces.v1.Schema getInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { if (inputSchemaBuilder_ == null) { @@ -1261,11 +1252,10 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { if (inputSchemaBuilder_ == null) { @@ -1282,11 +1272,10 @@ public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForV * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { if (inputSchemaBuilder_ == null) { @@ -1311,11 +1300,10 @@ public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public Builder clearInputSchema() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1332,11 +1320,10 @@ public Builder clearInputSchema() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { bitField0_ |= 0x00000004; @@ -1348,11 +1335,10 @@ public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { if (inputSchemaBuilder_ != null) { @@ -1368,11 +1354,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool input parameters.
            +     * The schema of the tool input parameters.
                  * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.Schema, @@ -1402,12 +1387,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -1419,12 +1402,10 @@ public boolean hasOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -1442,12 +1423,10 @@ public com.google.cloud.ces.v1.Schema getOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { if (outputSchemaBuilder_ == null) { @@ -1467,12 +1446,10 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { if (outputSchemaBuilder_ == null) { @@ -1489,12 +1466,10 @@ public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderFor * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { if (outputSchemaBuilder_ == null) { @@ -1519,12 +1494,10 @@ public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public Builder clearOutputSchema() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1541,12 +1514,10 @@ public Builder clearOutputSchema() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { bitField0_ |= 0x00000008; @@ -1558,12 +1529,10 @@ public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { if (outputSchemaBuilder_ != null) { @@ -1579,12 +1548,10 @@ public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { * * *
            -     * Required. The schema of the tool output parameters.
            +     * The schema of the tool output parameters.
                  * 
            * - * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.Schema, diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java index 04dd255917ac..b46547317ebe 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java @@ -109,11 +109,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return Whether the inputSchema field is set. */ @@ -123,11 +122,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; * * @return The inputSchema. */ @@ -137,11 +135,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool input parameters.
            +   * The schema of the tool input parameters.
                * 
            * - * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema input_schema = 3; */ com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder(); @@ -149,11 +146,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return Whether the outputSchema field is set. */ @@ -163,11 +159,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; * * @return The outputSchema. */ @@ -177,11 +172,10 @@ public interface RetrieveToolSchemaResponseOrBuilder * * *
            -   * Required. The schema of the tool output parameters.
            +   * The schema of the tool output parameters.
                * 
            * - * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.ces.v1.Schema output_schema = 4; */ com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java index 3a88143fbc08..8a69121bbfe8 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java @@ -80,11 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public java.util.List getToolsList() { @@ -95,11 +94,10 @@ public java.util.List getToolsList() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public java.util.List getToolsOrBuilderList() { @@ -110,11 +108,10 @@ public java.util.List getToolsO * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public int getToolsCount() { @@ -125,11 +122,10 @@ public int getToolsCount() { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public com.google.cloud.ces.v1.Tool getTools(int index) { @@ -140,11 +136,10 @@ public com.google.cloud.ces.v1.Tool getTools(int index) { * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ @java.lang.Override public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { @@ -526,11 +521,10 @@ private void ensureToolsIsMutable() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsList() { if (toolsBuilder_ == null) { @@ -544,11 +538,10 @@ public java.util.List getToolsList() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public int getToolsCount() { if (toolsBuilder_ == null) { @@ -562,11 +555,10 @@ public int getToolsCount() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool getTools(int index) { if (toolsBuilder_ == null) { @@ -580,11 +572,10 @@ public com.google.cloud.ces.v1.Tool getTools(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -604,11 +595,10 @@ public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -625,11 +615,10 @@ public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderF * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -649,11 +638,10 @@ public Builder addTools(com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { if (toolsBuilder_ == null) { @@ -673,11 +661,10 @@ public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -694,11 +681,10 @@ public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { if (toolsBuilder_ == null) { @@ -715,11 +701,10 @@ public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderF * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder addAllTools(java.lang.Iterable values) { if (toolsBuilder_ == null) { @@ -736,11 +721,10 @@ public Builder addAllTools(java.lang.Iterable - * Required. The list of tools that are included in the specified toolset. + * The list of tools that are included in the specified toolset. *
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder clearTools() { if (toolsBuilder_ == null) { @@ -757,11 +741,10 @@ public Builder clearTools() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public Builder removeTools(int index) { if (toolsBuilder_ == null) { @@ -778,11 +761,10 @@ public Builder removeTools(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { return internalGetToolsFieldBuilder().getBuilder(index); @@ -792,11 +774,10 @@ public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { if (toolsBuilder_ == null) { @@ -810,11 +791,10 @@ public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsOrBuilderList() { if (toolsBuilder_ != null) { @@ -828,11 +808,10 @@ public java.util.List getToolsO * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { return internalGetToolsFieldBuilder() @@ -843,11 +822,10 @@ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { return internalGetToolsFieldBuilder() @@ -858,11 +836,10 @@ public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { * * *
            -     * Required. The list of tools that are included in the specified toolset.
            +     * The list of tools that are included in the specified toolset.
                  * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ public java.util.List getToolsBuilderList() { return internalGetToolsFieldBuilder().getBuilderList(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java index 498a2b8b5827..06a71142abb9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java @@ -30,11 +30,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ java.util.List getToolsList(); @@ -42,11 +41,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ com.google.cloud.ces.v1.Tool getTools(int index); @@ -54,11 +52,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ int getToolsCount(); @@ -66,11 +63,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ java.util.List getToolsOrBuilderList(); @@ -78,11 +74,10 @@ public interface RetrieveToolsResponseOrBuilder * * *
            -   * Required. The list of tools that are included in the specified toolset.
            +   * The list of tools that are included in the specified toolset.
                * 
            * - * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.ces.v1.Tool tools = 1; */ com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java new file mode 100644 index 000000000000..a9db2454ad5c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettings.java @@ -0,0 +1,1710 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
            + * Project/Location level security settings for CES.
            + * 
            + * + * Protobuf type {@code google.cloud.ces.v1.SecuritySettings} + */ +@com.google.protobuf.Generated +public final class SecuritySettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SecuritySettings) + SecuritySettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecuritySettings"); + } + + // Use SecuritySettings.newBuilder() to construct. + private SecuritySettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecuritySettings() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SecuritySettings.class, + com.google.cloud.ces.v1.SecuritySettings.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_CONTROL_POLICY_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.EndpointControlPolicy endpointControlPolicy_; + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + @java.lang.Override + public boolean hasEndpointControlPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy() { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder + getEndpointControlPolicyOrBuilder() { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEndpointControlPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndpointControlPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SecuritySettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SecuritySettings other = (com.google.cloud.ces.v1.SecuritySettings) obj; + + if (!getName().equals(other.getName())) return false; + if (hasEndpointControlPolicy() != other.hasEndpointControlPolicy()) return false; + if (hasEndpointControlPolicy()) { + if (!getEndpointControlPolicy().equals(other.getEndpointControlPolicy())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasEndpointControlPolicy()) { + hash = (37 * hash) + ENDPOINT_CONTROL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getEndpointControlPolicy().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SecuritySettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SecuritySettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Project/Location level security settings for CES.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.SecuritySettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SecuritySettings) + com.google.cloud.ces.v1.SecuritySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SecuritySettings.class, + com.google.cloud.ces.v1.SecuritySettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SecuritySettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEndpointControlPolicyFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + endpointControlPolicy_ = null; + if (endpointControlPolicyBuilder_ != null) { + endpointControlPolicyBuilder_.dispose(); + endpointControlPolicyBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SecuritySettingsProto + .internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SecuritySettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings build() { + com.google.cloud.ces.v1.SecuritySettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings buildPartial() { + com.google.cloud.ces.v1.SecuritySettings result = + new com.google.cloud.ces.v1.SecuritySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endpointControlPolicy_ = + endpointControlPolicyBuilder_ == null + ? endpointControlPolicy_ + : endpointControlPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SecuritySettings) { + return mergeFrom((com.google.cloud.ces.v1.SecuritySettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SecuritySettings other) { + if (other == com.google.cloud.ces.v1.SecuritySettings.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEndpointControlPolicy()) { + mergeEndpointControlPolicy(other.getEndpointControlPolicy()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEndpointControlPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The unique identifier of the security settings.
            +     * Format: `projects/{project}/locations/{location}/securitySettings`
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.EndpointControlPolicy endpointControlPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder> + endpointControlPolicyBuilder_; + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + public boolean hasEndpointControlPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + public com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy() { + if (endpointControlPolicyBuilder_ == null) { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } else { + return endpointControlPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointControlPolicy(com.google.cloud.ces.v1.EndpointControlPolicy value) { + if (endpointControlPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointControlPolicy_ = value; + } else { + endpointControlPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointControlPolicy( + com.google.cloud.ces.v1.EndpointControlPolicy.Builder builderForValue) { + if (endpointControlPolicyBuilder_ == null) { + endpointControlPolicy_ = builderForValue.build(); + } else { + endpointControlPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndpointControlPolicy(com.google.cloud.ces.v1.EndpointControlPolicy value) { + if (endpointControlPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endpointControlPolicy_ != null + && endpointControlPolicy_ + != com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance()) { + getEndpointControlPolicyBuilder().mergeFrom(value); + } else { + endpointControlPolicy_ = value; + } + } else { + endpointControlPolicyBuilder_.mergeFrom(value); + } + if (endpointControlPolicy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndpointControlPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + endpointControlPolicy_ = null; + if (endpointControlPolicyBuilder_ != null) { + endpointControlPolicyBuilder_.dispose(); + endpointControlPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndpointControlPolicy.Builder getEndpointControlPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndpointControlPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder + getEndpointControlPolicyOrBuilder() { + if (endpointControlPolicyBuilder_ != null) { + return endpointControlPolicyBuilder_.getMessageOrBuilder(); + } else { + return endpointControlPolicy_ == null + ? com.google.cloud.ces.v1.EndpointControlPolicy.getDefaultInstance() + : endpointControlPolicy_; + } + } + + /** + * + * + *
            +     * Optional. Endpoint control related settings.
            +     * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder> + internalGetEndpointControlPolicyFieldBuilder() { + if (endpointControlPolicyBuilder_ == null) { + endpointControlPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndpointControlPolicy, + com.google.cloud.ces.v1.EndpointControlPolicy.Builder, + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder>( + getEndpointControlPolicy(), getParentForChildren(), isClean()); + endpointControlPolicy_ = null; + } + return endpointControlPolicyBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. Create time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Last update time of the security settings.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Etag of the security settings.
            +     * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SecuritySettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SecuritySettings) + private static final com.google.cloud.ces.v1.SecuritySettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SecuritySettings(); + } + + public static com.google.cloud.ces.v1.SecuritySettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecuritySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SecuritySettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java new file mode 100644 index 000000000000..0464bb781406 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SecuritySettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SecuritySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The unique identifier of the security settings.
            +   * Format: `projects/{project}/locations/{location}/securitySettings`
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointControlPolicy field is set. + */ + boolean hasEndpointControlPolicy(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointControlPolicy. + */ + com.google.cloud.ces.v1.EndpointControlPolicy getEndpointControlPolicy(); + + /** + * + * + *
            +   * Optional. Endpoint control related settings.
            +   * 
            + * + * + * .google.cloud.ces.v1.EndpointControlPolicy endpoint_control_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EndpointControlPolicyOrBuilder getEndpointControlPolicyOrBuilder(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Last update time of the security settings.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
            +   * Output only. Etag of the security settings.
            +   * 
            + * + * string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java new file mode 100644 index 000000000000..172caa176945 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SecuritySettingsProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/security_settings.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SecuritySettingsProto extends com.google.protobuf.GeneratedFile { + private SecuritySettingsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecuritySettingsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/ces/v1/security_settings." + + "proto\022\023google.cloud.ces.v1\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\200\003\n\020SecuritySettings\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "P\n\027endpoint_control_policy\030\002 \001(\0132*.googl" + + "e.cloud.ces.v1.EndpointControlPolicyB\003\340A" + + "\001\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 " + + "\001(\tB\003\340A\003:\207\001\352A\203\001\n#ces.googleapis.com/Secu" + + "ritySettings\0228projects/{project}/locatio" + + "ns/{location}/securitySettings*\020security" + + "Settings2\020securitySettings\"\345\001\n\025EndpointC" + + "ontrolPolicy\022[\n\021enforcement_scope\030\001 \001(\0162" + + ";.google.cloud.ces.v1.EndpointControlPol" + + "icy.EnforcementScopeB\003\340A\001\022\034\n\017allowed_ori" + + "gins\030\002 \003(\tB\003\340A\001\"Q\n\020EnforcementScope\022!\n\035E" + + "NFORCEMENT_SCOPE_UNSPECIFIED\020\000\022\016\n\nVPCSC_" + + "ONLY\020\001\022\n\n\006ALWAYS\020\002B]\n\027com.google.cloud.c" + + "es.v1B\025SecuritySettingsProtoP\001Z)cloud.go" + + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_SecuritySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SecuritySettings_descriptor, + new java.lang.String[] { + "Name", "EndpointControlPolicy", "CreateTime", "UpdateTime", "Etag", + }); + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_EndpointControlPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndpointControlPolicy_descriptor, + new java.lang.String[] { + "EnforcementScope", "AllowedOrigins", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java index ab1a08f23e5c..5f781436a5c3 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java @@ -1957,7 +1957,7 @@ public com.google.cloud.ces.v1.MessageOrBuilder getHistoricalContextsOrBuilder(i * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -1986,7 +1986,7 @@ public java.lang.String getEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -2128,6 +2128,27 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } + public static final int USE_TOOL_FAKES_FIELD_NUMBER = 14; + private boolean useToolFakes_ = false; + + /** + * + * + *
            +   * Optional. Whether to use tool fakes for the session.
            +   * If this field is set, the agent will attempt use tool fakes instead of
            +   * calling the real tools.
            +   * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + @java.lang.Override + public boolean getUseToolFakes() { + return useToolFakes_; + } + public static final int REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER = 15; private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remoteDialogflowQueryParameters_; @@ -2202,6 +2223,30 @@ public boolean hasRemoteDialogflowQueryParameters() { : remoteDialogflowQueryParameters_; } + public static final int ENABLE_TEXT_STREAMING_FIELD_NUMBER = 18; + private boolean enableTextStreaming_ = false; + + /** + * + * + *
            +   * Optional. Whether to enable streaming text outputs from the model.
            +   * By default, text outputs from the model are collected before sending to the
            +   * client.
            +   * NOTE: This is only supported for text (non-voice) sessions via
            +   * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +   * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +   * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + @java.lang.Override + public boolean getEnableTextStreaming() { + return enableTextStreaming_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2237,9 +2282,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, entryAgent_); } + if (useToolFakes_ != false) { + output.writeBool(14, useToolFakes_); + } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getRemoteDialogflowQueryParameters()); } + if (enableTextStreaming_ != false) { + output.writeBool(18, enableTextStreaming_); + } getUnknownFields().writeTo(output); } @@ -2271,11 +2322,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, entryAgent_); } + if (useToolFakes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useToolFakes_); + } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getRemoteDialogflowQueryParameters()); } + if (enableTextStreaming_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableTextStreaming_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2304,12 +2361,14 @@ public boolean equals(final java.lang.Object obj) { if (!getEntryAgent().equals(other.getEntryAgent())) return false; if (!getDeployment().equals(other.getDeployment())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; + if (getUseToolFakes() != other.getUseToolFakes()) return false; if (hasRemoteDialogflowQueryParameters() != other.hasRemoteDialogflowQueryParameters()) return false; if (hasRemoteDialogflowQueryParameters()) { if (!getRemoteDialogflowQueryParameters().equals(other.getRemoteDialogflowQueryParameters())) return false; } + if (getEnableTextStreaming() != other.getEnableTextStreaming()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2341,10 +2400,14 @@ public int hashCode() { hash = (53 * hash) + getDeployment().hashCode(); hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + USE_TOOL_FAKES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseToolFakes()); if (hasRemoteDialogflowQueryParameters()) { hash = (37 * hash) + REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getRemoteDialogflowQueryParameters().hashCode(); } + hash = (37 * hash) + ENABLE_TEXT_STREAMING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTextStreaming()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2517,11 +2580,13 @@ public Builder clear() { entryAgent_ = ""; deployment_ = ""; timeZone_ = ""; + useToolFakes_ = false; remoteDialogflowQueryParameters_ = null; if (remoteDialogflowQueryParametersBuilder_ != null) { remoteDialogflowQueryParametersBuilder_.dispose(); remoteDialogflowQueryParametersBuilder_ = null; } + enableTextStreaming_ = false; return this; } @@ -2597,12 +2662,18 @@ private void buildPartial0(com.google.cloud.ces.v1.SessionConfig result) { result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.useToolFakes_ = useToolFakes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.remoteDialogflowQueryParameters_ = remoteDialogflowQueryParametersBuilder_ == null ? remoteDialogflowQueryParameters_ : remoteDialogflowQueryParametersBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableTextStreaming_ = enableTextStreaming_; + } result.bitField0_ |= to_bitField0_; } @@ -2671,9 +2742,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1.SessionConfig other) { bitField0_ |= 0x00000040; onChanged(); } + if (other.getUseToolFakes() != false) { + setUseToolFakes(other.getUseToolFakes()); + } if (other.hasRemoteDialogflowQueryParameters()) { mergeRemoteDialogflowQueryParameters(other.getRemoteDialogflowQueryParameters()); } + if (other.getEnableTextStreaming() != false) { + setEnableTextStreaming(other.getEnableTextStreaming()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2750,14 +2827,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 98 + case 112: + { + useToolFakes_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 case 122: { input.readMessage( internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 122 + case 144: + { + enableTextStreaming_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3822,7 +3911,7 @@ public com.google.cloud.ces.v1.Message.Builder addHistoricalContextsBuilder(int * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3850,7 +3939,7 @@ public java.lang.String getEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3878,7 +3967,7 @@ public com.google.protobuf.ByteString getEntryAgentBytes() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3905,7 +3994,7 @@ public Builder setEntryAgent(java.lang.String value) { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -3928,7 +4017,7 @@ public Builder clearEntryAgent() { * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -4206,6 +4295,68 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { return this; } + private boolean useToolFakes_; + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + @java.lang.Override + public boolean getUseToolFakes() { + return useToolFakes_; + } + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useToolFakes to set. + * @return This builder for chaining. + */ + public Builder setUseToolFakes(boolean value) { + + useToolFakes_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to use tool fakes for the session.
            +     * If this field is set, the agent will attempt use tool fakes instead of
            +     * calling the real tools.
            +     * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseToolFakes() { + bitField0_ = (bitField0_ & ~0x00000080); + useToolFakes_ = false; + onChanged(); + return this; + } + private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remoteDialogflowQueryParameters_; private com.google.protobuf.SingleFieldBuilder< @@ -4232,7 +4383,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * @return Whether the remoteDialogflowQueryParameters field is set. */ public boolean hasRemoteDialogflowQueryParameters() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4289,7 +4440,7 @@ public Builder setRemoteDialogflowQueryParameters( } else { remoteDialogflowQueryParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4317,7 +4468,7 @@ public Builder setRemoteDialogflowQueryParameters( } else { remoteDialogflowQueryParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4340,7 +4491,7 @@ public Builder setRemoteDialogflowQueryParameters( public Builder mergeRemoteDialogflowQueryParameters( com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters value) { if (remoteDialogflowQueryParametersBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && remoteDialogflowQueryParameters_ != null && remoteDialogflowQueryParameters_ != com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters @@ -4353,7 +4504,7 @@ public Builder mergeRemoteDialogflowQueryParameters( remoteDialogflowQueryParametersBuilder_.mergeFrom(value); } if (remoteDialogflowQueryParameters_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -4375,7 +4526,7 @@ public Builder mergeRemoteDialogflowQueryParameters( *
            */ public Builder clearRemoteDialogflowQueryParameters() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); remoteDialogflowQueryParameters_ = null; if (remoteDialogflowQueryParametersBuilder_ != null) { remoteDialogflowQueryParametersBuilder_.dispose(); @@ -4402,7 +4553,7 @@ public Builder clearRemoteDialogflowQueryParameters() { */ public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder getRemoteDialogflowQueryParametersBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(); } @@ -4466,6 +4617,77 @@ public Builder clearRemoteDialogflowQueryParameters() { return remoteDialogflowQueryParametersBuilder_; } + private boolean enableTextStreaming_; + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + @java.lang.Override + public boolean getEnableTextStreaming() { + return enableTextStreaming_; + } + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableTextStreaming to set. + * @return This builder for chaining. + */ + public Builder setEnableTextStreaming(boolean value) { + + enableTextStreaming_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to enable streaming text outputs from the model.
            +     * By default, text outputs from the model are collected before sending to the
            +     * client.
            +     * NOTE: This is only supported for text (non-voice) sessions via
            +     * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +     * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +     * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableTextStreaming() { + bitField0_ = (bitField0_ & ~0x00000200); + enableTextStreaming_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java index af56698547db..cf15fb949278 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java @@ -239,7 +239,7 @@ public interface SessionConfigOrBuilder * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` *
            * * @@ -257,7 +257,7 @@ public interface SessionConfigOrBuilder * Optional. The entry agent to handle the session. If not specified, the * session will be handled by the [root * agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - * `projects/{project}/locations/{location}/agents/{agent}` + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` * * * @@ -334,6 +334,21 @@ public interface SessionConfigOrBuilder */ com.google.protobuf.ByteString getTimeZoneBytes(); + /** + * + * + *
            +   * Optional. Whether to use tool fakes for the session.
            +   * If this field is set, the agent will attempt use tool fakes instead of
            +   * calling the real tools.
            +   * 
            + * + * bool use_tool_fakes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useToolFakes. + */ + boolean getUseToolFakes(); + /** * * @@ -390,4 +405,22 @@ public interface SessionConfigOrBuilder */ com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder getRemoteDialogflowQueryParametersOrBuilder(); + + /** + * + * + *
            +   * Optional. Whether to enable streaming text outputs from the model.
            +   * By default, text outputs from the model are collected before sending to the
            +   * client.
            +   * NOTE: This is only supported for text (non-voice) sessions via
            +   * [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or
            +   * [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession].
            +   * 
            + * + * bool enable_text_streaming = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTextStreaming. + */ + boolean getEnableTextStreaming(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java index ca68163e178e..cdab8c45dfb9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java @@ -615,12 +615,14 @@ public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { * *
                * Optional. A flag to indicate if the current message is a fragment of a
            -   * larger input in the bidi streaming session. When `true`, the agent will
            -   * defer processing until a subsequent message with `will_continue` set to
            -   * `false` is received.
            +   * larger input in the bidi streaming session.
                *
            -   * Note: This flag has no effect on audio and DTMF inputs, which are always
            -   * processed in real-time.
            +   * When set to `true`, the agent defers processing until it receives a
            +   * subsequent message where `will_continue` is `false`, or until the system
            +   * detects an endpoint in the audio input.
            +   *
            +   * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +   * always processed automatically based on the endpointing signal.
                * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2701,12 +2703,14 @@ public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
            +     *
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2723,12 +2727,14 @@ public boolean getWillContinue() { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
            +     *
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2749,12 +2755,14 @@ public Builder setWillContinue(boolean value) { * *
                  * Optional. A flag to indicate if the current message is a fragment of a
            -     * larger input in the bidi streaming session. When `true`, the agent will
            -     * defer processing until a subsequent message with `will_continue` set to
            -     * `false` is received.
            +     * larger input in the bidi streaming session.
            +     *
            +     * When set to `true`, the agent defers processing until it receives a
            +     * subsequent message where `will_continue` is `false`, or until the system
            +     * detects an endpoint in the audio input.
                  *
            -     * Note: This flag has no effect on audio and DTMF inputs, which are always
            -     * processed in real-time.
            +     * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +     * always processed automatically based on the endpointing signal.
                  * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java index fc8113f2f89a..31e660a4a7c7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java @@ -338,12 +338,14 @@ public interface SessionInputOrBuilder * *
                * Optional. A flag to indicate if the current message is a fragment of a
            -   * larger input in the bidi streaming session. When `true`, the agent will
            -   * defer processing until a subsequent message with `will_continue` set to
            -   * `false` is received.
            +   * larger input in the bidi streaming session.
                *
            -   * Note: This flag has no effect on audio and DTMF inputs, which are always
            -   * processed in real-time.
            +   * When set to `true`, the agent defers processing until it receives a
            +   * subsequent message where `will_continue` is `false`, or until the system
            +   * detects an endpoint in the audio input.
            +   *
            +   * NOTE: This field does not apply to audio and DTMF inputs, as they are
            +   * always processed automatically based on the endpointing signal.
                * 
            * * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java index c9da874c93a5..316375f6318b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java @@ -149,7 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021OutputAudioConfig\022?\n" + "\016audio_encoding\030\001" + " \001(\0162\".google.cloud.ces.v1.AudioEncodingB\003\340A\002\022\036\n" - + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\254\006\n\r" + + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\355\006\n\r" + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022F\n" @@ -162,12 +162,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" + "\030ces.googleapis.com/Agent\022\027\n\n" + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" - + "\ttime_zone\030\013 \001(\tB\003\340A\001\022s\n" - + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google.clo" - + "ud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\032\266\002\n" + + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022s\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google.cloud.ces.v1.S" + + "essionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\266\002\n" + "\037RemoteDialogflowQueryParameters\022t\n" - + "\017webhook_headers\030\001 \003(\0132V.google.cloud.ces.v1.SessionConfig.Re" - + "moteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132V.google.clou" + + "d.ces.v1.SessionConfig.RemoteDialogflowQ" + + "ueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + "\021end_user_metadata\030\003" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" @@ -177,8 +180,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tToolCalls\0226\n\n" + "tool_calls\030\001 \003(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001\"O\n\r" + "ToolResponses\022>\n" - + "\016tool_responses\030\001 " - + "\003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + + "\016tool_responses\030\001" + + " \003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + "\tCitations\022?\n" + "\014cited_chunks\030\001 \003(\0132).google.cloud.ces.v1.Citations.CitedChunk\0326\n\n" + "CitedChunk\022\013\n" @@ -199,8 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005event\030\t" + " \001(\0132\032.google.cloud.ces.v1.EventB\003\340A\001H\000\022\032\n\r" + "will_continue\030\010 \001(\010B\003\340A\001B\014\n\n" - + "input_type\"\316\004\n" - + "\r" + + "input_type\"\316\004\n\r" + "SessionOutput\022\016\n" + "\004text\030\001 \001(\tH\000\022\017\n" + "\005audio\030\002 \001(\014H\000\0224\n\n" @@ -212,8 +214,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022O\n" - + "\017diagnostic_info\030\007" - + " \001(\01321.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + + "\017diagnostic_info\030\007 \001(\01321.google" + + ".cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + "\016DiagnosticInfo\022.\n" + "\010messages\030\001 \003(\0132\034.google.cloud.ces.v1.Message\022,\n" + "\troot_span\030\003 \001(\0132\031.google.cloud.ces.v1.SpanB\r\n" @@ -231,18 +233,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022RunSessionResponse\0223\n" + "\007outputs\030\001 \003(\0132\".google.cloud.ces.v1.SessionOutput\"\247\001\n" + "\030BidiSessionClientMessage\0229\n" - + "\006config\030\001 \001" - + "(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" + + "\006config\030\001" + + " \001(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" + "\016realtime_input\030\002" + " \001(\0132!.google.cloud.ces.v1.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\367\002\n" + "\030BidiSessionServerMessage\022A\n" + "\016session_output\030\001" + " \001(\0132\".google.cloud.ces.v1.SessionOutputB\003\340A\001H\000\022I\n" - + "\022recognition_result\030\002" - + " \001(\0132&.google.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" - + "\023interruption_signal\030\003" - + " \001(\0132\'.google.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + + "\022recognition_result\030\002 \001(\0132&.g" + + "oogle.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" + + "\023interruption_signal\030\003 \001(\0132\'.googl" + + "e.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + "\013end_session\030\005" + " \001(\0132\037.google.cloud.ces.v1.EndSessionB\003\340A\001H\000\0223\n" + "\007go_away\030\006" @@ -252,20 +254,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n" + "\010LINEAR16\020\001\022\t\n" + "\005MULAW\020\002\022\010\n" - + "\004ALAW\020\0032\247\003\n" + + "\004ALAW\020\0032\352\004\n" + "\016SessionService\022\262\001\n\n" - + "RunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.google.cloud.c" - + "es.v1.RunSessionResponse\"S\202\323\344\223\002M\"H/v1/{c" - + "onfig.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022t\n" - + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessio" - + "nClientMessage\032-.google.cloud.ces.v1.Bid" - + "iSessionServerMessage\"\000(\0010\001\032j\312A\022ces.goog" - + "leapis.com\322ARhttps://www.googleapis.com/" - + "auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" - + "\027com.google.cloud.ces" - + ".v1B\023SessionServiceProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{project}" - + "/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022&.google.cloud.ces.v1.RunSessio" + + "nRequest\032\'.google.cloud.ces.v1.RunSessio" + + "nResponse\"S\202\323\344\223\002M\"H/v1/{config.session=p" + + "rojects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\300\001\n" + + "\020StreamRunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.go" + + "ogle.cloud.ces.v1.RunSessionResponse\"Y\202\323" + + "\344\223\002S\"N/v1/{config.session=projects/*/loc" + + "ations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022t\n" + + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessionClientMessage\032-.goo" + + "gle.cloud.ces.v1.BidiSessionServerMessag" + + "e\"\000(\0010\001\032j\312A\022ces.googleapis.com\322ARhttps:/" + + "/www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" + + "\027com.google.cloud.ces.v1B\023SessionServiceP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location" + + "}/apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -309,7 +315,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntryAgent", "Deployment", "TimeZone", + "UseToolFakes", "RemoteDialogflowQueryParameters", + "EnableTextStreaming", }); internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor = internal_static_google_cloud_ces_v1_SessionConfig_descriptor.getNestedType(0); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java index 32dc335a87a2..bbac033c5bfb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java @@ -112,11 +112,14 @@ public interface CaCertOrBuilder * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -243,11 +246,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -717,11 +723,14 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -742,11 +751,14 @@ public com.google.protobuf.ByteString getCert() { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -773,11 +785,14 @@ public Builder setCert(com.google.protobuf.ByteString value) { * is empty or unspecified, CES will use Google's default trust * store to verify certificates. N.B. Make sure the HTTPS server * certificates are signed with "subject alt name". For instance a - * certificate can be self-signed using the following command, + * certificate can be self-signed using the following command: + * + * ``` * openssl x509 -req -days 200 -in example.com.csr \ * -signkey example.com.key \ * -out example.com.crt \ * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * ``` * * * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java index 857b1a1ab353..e9a23a744f01 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java @@ -92,6 +92,7 @@ public enum ToolTypeCase MCP_TOOL(16), FILE_SEARCH_TOOL(17), SYSTEM_TOOL(18), + AGENT_TOOL(23), WIDGET_TOOL(24), TOOLTYPE_NOT_SET(0); private final int value; @@ -130,6 +131,8 @@ public static ToolTypeCase forNumber(int value) { return FILE_SEARCH_TOOL; case 18: return SYSTEM_TOOL; + case 23: + return AGENT_TOOL; case 24: return WIDGET_TOOL; case 0: @@ -688,6 +691,63 @@ public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); } + public static final int AGENT_TOOL_FIELD_NUMBER = 23; + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + @java.lang.Override + public boolean hasAgentTool() { + return toolTypeCase_ == 23; + } + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getAgentTool() { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder() { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + public static final int WIDGET_TOOL_FIELD_NUMBER = 24; /** @@ -757,14 +817,15 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            -   *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
            +   *
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -788,14 +849,15 @@ public java.lang.String getName() { * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            -   *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
            +   *
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1254,6 +1316,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(20, getToolFakeConfig()); } + if (toolTypeCase_ == 23) { + output.writeMessage(23, (com.google.cloud.ces.v1.AgentTool) toolType_); + } if (toolTypeCase_ == 24) { output.writeMessage(24, (com.google.cloud.ces.v1.WidgetTool) toolType_); } @@ -1336,6 +1401,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getToolFakeConfig()); } + if (toolTypeCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.ces.v1.AgentTool) toolType_); + } if (toolTypeCase_ == 24) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1402,6 +1472,9 @@ public boolean equals(final java.lang.Object obj) { case 18: if (!getSystemTool().equals(other.getSystemTool())) return false; break; + case 23: + if (!getAgentTool().equals(other.getAgentTool())) return false; + break; case 24: if (!getWidgetTool().equals(other.getWidgetTool())) return false; break; @@ -1478,6 +1551,10 @@ public int hashCode() { hash = (37 * hash) + SYSTEM_TOOL_FIELD_NUMBER; hash = (53 * hash) + getSystemTool().hashCode(); break; + case 23: + hash = (37 * hash) + AGENT_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getAgentTool().hashCode(); + break; case 24: hash = (37 * hash) + WIDGET_TOOL_FIELD_NUMBER; hash = (53 * hash) + getWidgetTool().hashCode(); @@ -1661,6 +1738,9 @@ public Builder clear() { if (systemToolBuilder_ != null) { systemToolBuilder_.clear(); } + if (agentToolBuilder_ != null) { + agentToolBuilder_.clear(); + } if (widgetToolBuilder_ != null) { widgetToolBuilder_.clear(); } @@ -1721,31 +1801,31 @@ public com.google.cloud.ces.v1.Tool buildPartial() { private void buildPartial0(com.google.cloud.ces.v1.Tool result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.executionType_ = executionType_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.generatedSummary_ = generatedSummary_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.toolFakeConfig_ = toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); to_bitField0_ |= 0x00000004; @@ -1783,6 +1863,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1.Tool result) { if (toolTypeCase_ == 18 && systemToolBuilder_ != null) { result.toolType_ = systemToolBuilder_.build(); } + if (toolTypeCase_ == 23 && agentToolBuilder_ != null) { + result.toolType_ = agentToolBuilder_.build(); + } if (toolTypeCase_ == 24 && widgetToolBuilder_ != null) { result.toolType_ = widgetToolBuilder_.build(); } @@ -1802,12 +1885,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { if (other == com.google.cloud.ces.v1.Tool.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.executionType_ != 0) { @@ -1821,12 +1904,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (!other.getGeneratedSummary().isEmpty()) { generatedSummary_ = other.generatedSummary_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasToolFakeConfig()) { @@ -1878,6 +1961,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { mergeSystemTool(other.getSystemTool()); break; } + case AGENT_TOOL: + { + mergeAgentTool(other.getAgentTool()); + break; + } case WIDGET_TOOL: { mergeWidgetTool(other.getWidgetTool()); @@ -1917,7 +2005,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 10 case 18: @@ -1945,14 +2033,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 50 case 58: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 58 case 66: @@ -1979,25 +2067,25 @@ public Builder mergeFrom( case 96: { executionType_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 96 case 106: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 106 case 114: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 114 case 122: { generatedSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 130: @@ -2024,9 +2112,16 @@ public Builder mergeFrom( { input.readMessage( internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 162 + case 186: + { + input.readMessage( + internalGetAgentToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 23; + break; + } // case 186 case 194: { input.readMessage( @@ -4180,6 +4275,239 @@ public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { return systemToolBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder> + agentToolBuilder_; + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + @java.lang.Override + public boolean hasAgentTool() { + return toolTypeCase_ == 23; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTool getAgentTool() { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 23) { + return agentToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTool(com.google.cloud.ces.v1.AgentTool value) { + if (agentToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + agentToolBuilder_.setMessage(value); + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTool(com.google.cloud.ces.v1.AgentTool.Builder builderForValue) { + if (agentToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + agentToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentTool(com.google.cloud.ces.v1.AgentTool value) { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23 + && toolType_ != com.google.cloud.ces.v1.AgentTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.AgentTool.newBuilder( + (com.google.cloud.ces.v1.AgentTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 23) { + agentToolBuilder_.mergeFrom(value); + } else { + agentToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 23; + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentTool() { + if (agentToolBuilder_ == null) { + if (toolTypeCase_ == 23) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 23) { + toolTypeCase_ = 0; + toolType_ = null; + } + agentToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AgentTool.Builder getAgentToolBuilder() { + return internalGetAgentToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder() { + if ((toolTypeCase_ == 23) && (agentToolBuilder_ != null)) { + return agentToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 23) { + return (com.google.cloud.ces.v1.AgentTool) toolType_; + } + return com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The agent tool.
            +     * 
            + * + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder> + internalGetAgentToolFieldBuilder() { + if (agentToolBuilder_ == null) { + if (!(toolTypeCase_ == 23)) { + toolType_ = com.google.cloud.ces.v1.AgentTool.getDefaultInstance(); + } + agentToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTool, + com.google.cloud.ces.v1.AgentTool.Builder, + com.google.cloud.ces.v1.AgentToolOrBuilder>( + (com.google.cloud.ces.v1.AgentTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 23; + onChanged(); + return agentToolBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1.WidgetTool, com.google.cloud.ces.v1.WidgetTool.Builder, @@ -4419,14 +4747,15 @@ public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4449,14 +4778,15 @@ public java.lang.String getName() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
            +     *
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4479,14 +4809,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4499,7 +4830,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4508,14 +4839,15 @@ public Builder setName(java.lang.String value) { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4524,7 +4856,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4533,14 +4865,15 @@ public Builder clearName() { * * *
            -     * Identifier. The unique identifier of the tool.
            -     * Format:
            -     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -     * ## standalone tools.
            +     * Identifier. The resource name of the tool. Format:
                  *
            -     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -     * for tools retrieved from a toolset. These tools are dynamic and
            -     * output-only, they cannot be referenced directly where a tool is expected.
            +     * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +     * for standalone tools.
            +     * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +     * for tools retrieved from a toolset.
            +     *
            +     * These tools are dynamic and output-only; they cannot be referenced directly
            +     * where a tool is expected.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4554,7 +4887,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4630,7 +4963,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4650,7 +4983,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4675,7 +5008,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4716,7 +5049,7 @@ public int getExecutionTypeValue() { */ public Builder setExecutionTypeValue(int value) { executionType_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4759,7 +5092,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; executionType_ = value.getNumber(); onChanged(); return this; @@ -4779,7 +5112,7 @@ public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { * @return This builder for chaining. */ public Builder clearExecutionType() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); executionType_ = 0; onChanged(); return this; @@ -4806,7 +5139,7 @@ public Builder clearExecutionType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4852,7 +5185,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4874,7 +5207,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4892,7 +5225,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4903,7 +5236,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4921,7 +5254,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
            */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4943,7 +5276,7 @@ public Builder clearCreateTime() { *
            */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5018,7 +5351,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5064,7 +5397,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5086,7 +5419,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5104,7 +5437,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -5115,7 +5448,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5133,7 +5466,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
            */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -5155,7 +5488,7 @@ public Builder clearUpdateTime() { *
            */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -5280,7 +5613,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5300,7 +5633,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -5325,7 +5658,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5398,7 +5731,7 @@ public Builder setGeneratedSummary(java.lang.String value) { throw new NullPointerException(); } generatedSummary_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5417,7 +5750,7 @@ public Builder setGeneratedSummary(java.lang.String value) { */ public Builder clearGeneratedSummary() { generatedSummary_ = getDefaultInstance().getGeneratedSummary(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5441,7 +5774,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); generatedSummary_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5467,7 +5800,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { * @return Whether the toolFakeConfig field is set. */ public boolean hasToolFakeConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -5513,7 +5846,7 @@ public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { } else { toolFakeConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5536,7 +5869,7 @@ public Builder setToolFakeConfig( } else { toolFakeConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5554,7 +5887,7 @@ public Builder setToolFakeConfig( */ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { if (toolFakeConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && toolFakeConfig_ != null && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { getToolFakeConfigBuilder().mergeFrom(value); @@ -5565,7 +5898,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) toolFakeConfigBuilder_.mergeFrom(value); } if (toolFakeConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -5583,7 +5916,7 @@ public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) *
            */ public Builder clearToolFakeConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); toolFakeConfig_ = null; if (toolFakeConfigBuilder_ != null) { toolFakeConfigBuilder_.dispose(); @@ -5605,7 +5938,7 @@ public Builder clearToolFakeConfig() { *
            */ public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return internalGetToolFakeConfigFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java index 7a4df3054f00..fef461c5ed2b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java @@ -413,6 +413,46 @@ public interface ToolOrBuilder */ com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder(); + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTool field is set. + */ + boolean hasAgentTool(); + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTool. + */ + com.google.cloud.ces.v1.AgentTool getAgentTool(); + + /** + * + * + *
            +   * Optional. The agent tool.
            +   * 
            + * + * .google.cloud.ces.v1.AgentTool agent_tool = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AgentToolOrBuilder getAgentToolOrBuilder(); + /** * * @@ -460,14 +500,15 @@ public interface ToolOrBuilder * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
                *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -480,14 +521,15 @@ public interface ToolOrBuilder * * *
            -   * Identifier. The unique identifier of the tool.
            -   * Format:
            -   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
            -   * ## standalone tools.
            +   * Identifier. The resource name of the tool. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
            +   * for standalone tools.
            +   * * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            +   * for tools retrieved from a toolset.
                *
            -   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
            -   * for tools retrieved from a toolset. These tools are dynamic and
            -   * output-only, they cannot be referenced directly where a tool is expected.
            +   * These tools are dynamic and output-only; they cannot be referenced directly
            +   * where a tool is expected.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java index 8a214a6056e2..2fcba61593bd 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java @@ -56,35 +56,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "\036google/cloud/ces/v1/tool.proto\022\023google" + ".cloud.ces.v1\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/client_function.proto\032" - + " google/cloud/ces/v1/common.proto\032(google/c" - + "loud/ces/v1/connector_tool.proto\032)google" - + "/cloud/ces/v1/data_store_tool.proto\032\037goo" - + "gle/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google" - + "/cloud/ces/v1/google_search_tool.proto\032\"" - + "google/cloud/ces/v1/mcp_tool.proto\032\'goog" - + "le/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%" - + "google/cloud/ces/v1/system_tool.proto\032%g" - + "oogle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\336\010\n" + + ".proto\032\031google/api/resource.proto\032$googl" + + "e/cloud/ces/v1/agent_tool.proto\032)google/cloud/ces/v1/client_function.proto\032 goog" + + "le/cloud/ces/v1/common.proto\032(google/cloud/ces/v1/connector_tool.proto\032)google/c" + + "loud/ces/v1/data_store_tool.proto\032\037googl" + + "e/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google/c" + + "loud/ces/v1/google_search_tool.proto\032\"go" + + "ogle/cloud/ces/v1/mcp_tool.proto\032\'google" + + "/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%go" + + "ogle/cloud/ces/v1/system_tool.proto\032%goo" + + "gle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\231\t\n" + "\004Tool\022C\n" + "\017client_function\030\002" + " \001(\0132#.google.cloud.ces.v1.ClientFunctionB\003\340A\001H\000\022>\n\r" + "open_api_tool\030\003 \001(\0132" + " .google.cloud.ces.v1.OpenApiToolB\003\340A\001H\000\022H\n" - + "\022google_search_tool\030\005 \001(\0132" - + "%.google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + + "\022google_search_tool\030\005 \001(\0132%." + + "google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + "\016connector_tool\030\010" + " \001(\0132\".google.cloud.ces.v1.ConnectorToolB\003\340A\001H\000\022B\n" + "\017data_store_tool\030\n" + " \001(\0132\".google.cloud.ces.v1.DataStoreToolB\003\340A\001H\000\022C\n" - + "\017python_function\030\013" - + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + + "\017python_function\030\013 " + + "\001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + "\010mcp_tool\030\020" + " \001(\0132\034.google.cloud.ces.v1.McpToolB\003\340A\001H\000\022D\n" + "\020file_search_tool\030\021" + " \001(\0132#.google.cloud.ces.v1.FileSearchToolB\003\340A\001H\000\022;\n" + "\013system_tool\030\022" - + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\022;\n" + + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\0229\n\n" + + "agent_tool\030\027" + + " \001(\0132\036.google.cloud.ces.v1.AgentToolB\003\340A\001H\000\022;\n" + "\013widget_tool\030\030" + " \001(\0132\037.google.cloud.ces.v1.WidgetToolB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -99,11 +101,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021generated_summary\030\017 \001(\tB\003\340A\003\022B\n" + "\020tool_fake_config\030\024" + " \001(\0132#.google.cloud.ces.v1.ToolFakeConfigB\003\340A\001:j\352Ag\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/" - + "locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + + "\027ces.googleapis.com/Tool\022?pr" + + "ojects/{project}/locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + "\ttool_typeBQ\n" - + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.go" - + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.google.com/go/ces/apiv1/c" + + "espb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentToolProto.getDescriptor(), com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(), com.google.cloud.ces.v1.CommonProto.getDescriptor(), com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(), @@ -139,6 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "McpTool", "FileSearchTool", "SystemTool", + "AgentTool", "WidgetTool", "Name", "DisplayName", @@ -153,6 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentToolProto.getDescriptor(); com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(); com.google.cloud.ces.v1.CommonProto.getDescriptor(); com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java index c0db1460e5bb..676b2dc0aec9 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java @@ -73,66 +73,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "&google/cloud/ces/v1/tool_service.proto" + "\n&google/cloud/ces/v1/tool_service.proto" + "\022\023google.cloud.ces.v1\032\034google/api/annota" + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/cloud/ces/v1/schema.proto\032\036google/cloud/ces/v1/tool.pro" - + "to\032&google/cloud/ces/v1/toolset_tool.proto\032\034google/protobuf/struct.proto\"\363\001\n" - + "\022ExecuteToolRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022=\n" - + "\014toolset_tool\030\003 \001(\0132" - + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\004 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/App\022*\n" - + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" - + "\017tool_identifier\"\300\001\n" - + "\023ExecuteToolResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\0228\n" - + "\014toolset_tool\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\022.\n" - + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002B\021\n" - + "\017tool_identifier\"\316\001\n" - + "\031RetrieveToolSchemaRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022=\n" - + "\014toolset_tool\030\002 \001(\0132" - + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\003 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/AppB\021\n" - + "\017tool_identifier\"\210\002\n" - + "\032RetrieveToolSchemaResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\0228\n" - + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\0226\n" - + "\014input_schema\030\003" - + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002\0227\n\r" - + "output_schema\030\004 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002B\021\n" - + "\017tool_identifier\"b\n" - + "\024RetrieveToolsRequest\0223\n" - + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" - + "\032ces.googleapis.com/Toolset\022\025\n" - + "\010tool_ids\030\003 \003(\tB\003\340A\001\"F\n" - + "\025RetrieveToolsResponse\022-\n" - + "\005tools\030\001 \003(\0132\031.google.cloud.ces.v1.ToolB\003\340A\0022\233\005\n" - + "\013ToolService\022\243\001\n" - + "\013ExecuteTool\022\'.google.cloud.ces.v1.ExecuteToolRequest\032(.goo" - + "gle.cloud.ces.v1.ExecuteToolResponse\"A\202\323" - + "\344\223\002;\"6/v1/{parent=projects/*/locations/*/apps/*}:executeTool:\001*\022\277\001\n" - + "\022RetrieveToolSchema\022..google.cloud.ces.v1.RetrieveToo" - + "lSchemaRequest\032/.google.cloud.ces.v1.Ret" - + "rieveToolSchemaResponse\"H\202\323\344\223\002B\"=/v1/{pa" - + "rent=projects/*/locations/*/apps/*}:retrieveToolSchema:\001*\022\267\001\n\r" - + "RetrieveTools\022).google.cloud.ces.v1.RetrieveToolsRequest\032*" - + ".google.cloud.ces.v1.RetrieveToolsRespon" - + "se\"O\202\323\344\223\002I\"D/v1/{toolset=projects/*/loca" - + "tions/*/apps/*/toolsets/*}:retrieveTools" - + ":\001*\032j\312A\022ces.googleapis.com\322ARhttps://www" - + ".googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformBX\n" - + "\027com.google.cloud.ces.v1B\020ToolServiceProtoP\001Z)" - + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032 google/cloud/ces/v1/sc" + + "hema.proto\032\036google/cloud/ces/v1/tool.pro" + + "to\032&google/cloud/ces/v1/toolset_tool.pro" + + "to\032\034google/protobuf/struct.proto\"\361\002\n\022Exe" + + "cuteToolRequest\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027c" + + "es.googleapis.com/ToolH\000\022=\n\014toolset_tool" + + "\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetTool" + + "B\003\340A\001H\000\0221\n\tvariables\030\005 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\001H\001\022/\n\007context\030\006 \001(\0132\027.go" + + "ogle.protobuf.StructB\003\340A\001H\001\022.\n\006parent\030\004 " + + "\001(\tB\036\340A\002\372A\030\n\026ces.googleapis.com/App\022*\n\004a" + + "rgs\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B" + + "\021\n\017tool_identifierB\030\n\026tool_execution_con" + + "text\"\347\001\n\023ExecuteToolResponse\022,\n\004tool\030\001 \001" + + "(\tB\034\372A\031\n\027ces.googleapis.com/ToolH\000\0228\n\014to" + + "olset_tool\030\003 \001(\0132 .google.cloud.ces.v1.T" + + "oolsetToolH\000\022)\n\010response\030\002 \001(\0132\027.google." + + "protobuf.Struct\022*\n\tvariables\030\004 \001(\0132\027.goo" + + "gle.protobuf.StructB\021\n\017tool_identifier\"\316" + + "\001\n\031RetrieveToolSchemaRequest\022/\n\004tool\030\001 \001" + + "(\tB\037\340A\001\372A\031\n\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v" + + "1.ToolsetToolB\003\340A\001H\000\022.\n\006parent\030\003 \001(\tB\036\340A" + + "\002\372A\030\n\026ces.googleapis.com/AppB\021\n\017tool_ide" + + "ntifier\"\376\001\n\032RetrieveToolSchemaResponse\022," + + "\n\004tool\030\001 \001(\tB\034\372A\031\n\027ces.googleapis.com/To" + + "olH\000\0228\n\014toolset_tool\030\002 \001(\0132 .google.clou" + + "d.ces.v1.ToolsetToolH\000\0221\n\014input_schema\030\003" + + " \001(\0132\033.google.cloud.ces.v1.Schema\0222\n\rout" + + "put_schema\030\004 \001(\0132\033.google.cloud.ces.v1.S" + + "chemaB\021\n\017tool_identifier\"b\n\024RetrieveTool" + + "sRequest\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.g" + + "oogleapis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\tB" + + "\003\340A\001\"A\n\025RetrieveToolsResponse\022(\n\005tools\030\001" + + " \003(\0132\031.google.cloud.ces.v1.Tool2\233\005\n\013Tool" + + "Service\022\243\001\n\013ExecuteTool\022\'.google.cloud.c" + + "es.v1.ExecuteToolRequest\032(.google.cloud." + + "ces.v1.ExecuteToolResponse\"A\202\323\344\223\002;\"6/v1/" + + "{parent=projects/*/locations/*/apps/*}:e" + + "xecuteTool:\001*\022\277\001\n\022RetrieveToolSchema\022..g" + + "oogle.cloud.ces.v1.RetrieveToolSchemaReq" + + "uest\032/.google.cloud.ces.v1.RetrieveToolS" + + "chemaResponse\"H\202\323\344\223\002B\"=/v1/{parent=proje" + + "cts/*/locations/*/apps/*}:retrieveToolSc" + + "hema:\001*\022\267\001\n\rRetrieveTools\022).google.cloud" + + ".ces.v1.RetrieveToolsRequest\032*.google.cl" + + "oud.ces.v1.RetrieveToolsResponse\"O\202\323\344\223\002I" + + "\"D/v1/{toolset=projects/*/locations/*/ap" + + "ps/*/toolsets/*}:retrieveTools:\001*\032j\312A\022ce" + + "s.googleapis.com\322ARhttps://www.googleapi" + + "s.com/auth/ces,https://www.googleapis.co" + + "m/auth/cloud-platformBX\n\027com.google.clou" + + "d.ces.v1B\020ToolServiceProtoP\001Z)cloud.goog" + + "le.com/go/ces/apiv1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,7 +151,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Parent", "Args", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Variables", + "Context", + "Parent", + "Args", + "ToolIdentifier", + "ToolExecutionContext", }); internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor = getDescriptor().getMessageType(1); @@ -161,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Response", "ToolIdentifier", + "Tool", "ToolsetTool", "Response", "Variables", "ToolIdentifier", }); internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor = getDescriptor().getMessageType(2); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java index 23ae2c9aaa33..5b0e3308f230 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java @@ -62,24 +62,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tations.proto\032\027google/api/client.proto\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\245\001\n\030GenerateChatTokenRequest" + + "stamp.proto\"\310\001\n\030GenerateChatTokenRequest" + "\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googleapis.c" + "om/Session\0229\n\ndeployment\030\002 \001(\tB%\340A\002\372A\037\n\035" + "ces.googleapis.com/Deployment\022\034\n\017recaptc" - + "ha_token\030\003 \001(\tB\003\340A\001\"`\n\031GenerateChatToken" - + "Response\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expire_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp2\302\002" - + "\n\rWidgetService\022\304\001\n\021GenerateChatToken\022-." - + "google.cloud.ces.v1.GenerateChatTokenReq" - + "uest\032..google.cloud.ces.v1.GenerateChatT" - + "okenResponse\"P\202\323\344\223\002J\"E/v1/{name=projects" - + "/*/locations/*/apps/*/sessions/*}:genera" - + "teChatToken:\001*\032j\312A\022ces.googleapis.com\322AR" - + "https://www.googleapis.com/auth/ces,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmBZ\n\027com.google.cloud.ces.v1B\022WidgetSer" - + "viceProtoP\001Z)cloud.google.com/go/ces/api" - + "v1/cespb;cespbb\006proto3" + + "ha_token\030\003 \001(\tB\003\340A\001\022!\n\024live_handoff_enab" + + "led\030\004 \001(\010B\003\340A\001\"`\n\031GenerateChatTokenRespo" + + "nse\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expire_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp2\302\002\n\rWid" + + "getService\022\304\001\n\021GenerateChatToken\022-.googl" + + "e.cloud.ces.v1.GenerateChatTokenRequest\032" + + "..google.cloud.ces.v1.GenerateChatTokenR" + + "esponse\"P\202\323\344\223\002J\"E/v1/{name=projects/*/lo" + + "cations/*/apps/*/sessions/*}:generateCha" + + "tToken:\001*\032j\312A\022ces.googleapis.com\322ARhttps" + + "://www.googleapis.com/auth/ces,https://w" + + "ww.googleapis.com/auth/cloud-platformBZ\n" + + "\027com.google.cloud.ces.v1B\022WidgetServiceP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/ce" + + "spb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -97,7 +98,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor, new java.lang.String[] { - "Name", "Deployment", "RecaptchaToken", + "Name", "Deployment", "RecaptchaToken", "LiveHandoffEnabled", }); internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor = getDescriptor().getMessageType(1); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java index 72e57048d7e5..bc909442a981 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java @@ -196,6 +196,26 @@ public enum WidgetType implements com.google.protobuf.ProtocolMessageEnum { * APPOINTMENT_DETAILS = 10; */ APPOINTMENT_DETAILS(10), + /** + * + * + *
            +     * Appointment scheduler widget.
            +     * 
            + * + * APPOINTMENT_SCHEDULER = 11; + */ + APPOINTMENT_SCHEDULER(11), + /** + * + * + *
            +     * Contact form widget.
            +     * 
            + * + * CONTACT_FORM = 12; + */ + CONTACT_FORM(12), UNRECOGNIZED(-1), ; @@ -275,160 +295,2263 @@ public enum WidgetType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRODUCT_COMPARISON_VALUE = 5; - /** - * - * - *
            -     * Advanced product details widget.
            -     * 
            - * - * ADVANCED_PRODUCT_DETAILS = 6; - */ - public static final int ADVANCED_PRODUCT_DETAILS_VALUE = 6; + /** + * + * + *
            +     * Advanced product details widget.
            +     * 
            + * + * ADVANCED_PRODUCT_DETAILS = 6; + */ + public static final int ADVANCED_PRODUCT_DETAILS_VALUE = 6; + + /** + * + * + *
            +     * Short form widget.
            +     * 
            + * + * SHORT_FORM = 7; + */ + public static final int SHORT_FORM_VALUE = 7; + + /** + * + * + *
            +     * Overall satisfaction widget.
            +     * 
            + * + * OVERALL_SATISFACTION = 8; + */ + public static final int OVERALL_SATISFACTION_VALUE = 8; + + /** + * + * + *
            +     * Order summary widget.
            +     * 
            + * + * ORDER_SUMMARY = 9; + */ + public static final int ORDER_SUMMARY_VALUE = 9; + + /** + * + * + *
            +     * Appointment details widget.
            +     * 
            + * + * APPOINTMENT_DETAILS = 10; + */ + public static final int APPOINTMENT_DETAILS_VALUE = 10; + + /** + * + * + *
            +     * Appointment scheduler widget.
            +     * 
            + * + * APPOINTMENT_SCHEDULER = 11; + */ + public static final int APPOINTMENT_SCHEDULER_VALUE = 11; + + /** + * + * + *
            +     * Contact form widget.
            +     * 
            + * + * CONTACT_FORM = 12; + */ + public static final int CONTACT_FORM_VALUE = 12; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WidgetType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WidgetType forNumber(int value) { + switch (value) { + case 0: + return WIDGET_TYPE_UNSPECIFIED; + case 1: + return CUSTOM; + case 2: + return PRODUCT_CAROUSEL; + case 3: + return PRODUCT_DETAILS; + case 4: + return QUICK_ACTIONS; + case 5: + return PRODUCT_COMPARISON; + case 6: + return ADVANCED_PRODUCT_DETAILS; + case 7: + return SHORT_FORM; + case 8: + return OVERALL_SATISFACTION; + case 9: + return ORDER_SUMMARY; + case 10: + return APPOINTMENT_DETAILS; + case 11: + return APPOINTMENT_SCHEDULER; + case 12: + return CONTACT_FORM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WidgetType findValueByNumber(int number) { + return WidgetType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.getDescriptor().getEnumTypes().get(0); + } + + private static final WidgetType[] VALUES = values(); + + public static WidgetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WidgetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) + } + + public interface DataMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WidgetTool.DataMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + java.lang.String getSourceToolName(); + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + com.google.protobuf.ByteString getSourceToolNameBytes(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFieldMappingsCount(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsFieldMappings(java.lang.String key); + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFieldMappings(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getFieldMappingsMap(); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getFieldMappingsOrThrow(java.lang.String key); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + boolean hasPythonFunction(); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + com.google.cloud.ces.v1.PythonFunction getPythonFunction(); + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder(); + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode(); + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Deprecated + java.lang.String getPythonScript(); + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getPythonScriptBytes(); + } + + /** + * + * + *
            +   * Configuration for mapping data from a source tool to the widget's input
            +   * parameters.
            +   * 
            + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.DataMapping} + */ + public static final class DataMapping extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.WidgetTool.DataMapping) + DataMappingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataMapping"); + } + + // Use DataMapping.newBuilder() to construct. + private DataMapping(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataMapping() { + sourceToolName_ = ""; + mode_ = 0; + pythonScript_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder.class); + } + + /** + * + * + *
            +     * The strategy used to map data from the source tool to the widget.
            +     * 
            + * + * Protobuf enum {@code google.cloud.ces.v1.WidgetTool.DataMapping.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified mode.
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +       * Use the `field_mappings` map for data transformation.
            +       * 
            + * + * FIELD_MAPPING = 1; + */ + FIELD_MAPPING(1), + /** + * + * + *
            +       * Use the `python_script` for data transformation.
            +       * 
            + * + * PYTHON_SCRIPT = 2; + */ + PYTHON_SCRIPT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
            +       * Unspecified mode.
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Use the `field_mappings` map for data transformation.
            +       * 
            + * + * FIELD_MAPPING = 1; + */ + public static final int FIELD_MAPPING_VALUE = 1; + + /** + * + * + *
            +       * Use the `python_script` for data transformation.
            +       * 
            + * + * PYTHON_SCRIPT = 2; + */ + public static final int PYTHON_SCRIPT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return FIELD_MAPPING; + case 2: + return PYTHON_SCRIPT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.DataMapping.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.DataMapping.Mode) + } + + private int bitField0_; + public static final int SOURCE_TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceToolName_ = ""; + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + @java.lang.Override + public java.lang.String getSourceToolName() { + java.lang.Object ref = sourceToolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceToolName_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The resource name of the tool that provides the data for the
            +     * widget (e.g., a search tool or a custom function). Format:
            +     * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +     * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceToolNameBytes() { + java.lang.Object ref = sourceToolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceToolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MAPPINGS_FIELD_NUMBER = 2; + + private static final class FieldMappingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField fieldMappings_; + + private com.google.protobuf.MapField + internalGetFieldMappings() { + if (fieldMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + return fieldMappings_; + } + + public int getFieldMappingsCount() { + return internalGetFieldMappings().getMap().size(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldMappings().getMap().containsKey(key); + } + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFieldMappings() { + return getFieldMappingsMap(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFieldMappingsMap() { + return internalGetFieldMappings().getMap(); + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. A map of widget input parameter fields to the corresponding
            +     * output fields of the source tool.
            +     * 
            + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFieldMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PYTHON_FUNCTION_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.PythonFunction pythonFunction_; + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + @java.lang.Override + public boolean hasPythonFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + + /** + * + * + *
            +     * Optional. Configuration for a Python function used to transform the
            +     * source tool's output into the widget's input format.
            +     * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + + public static final int MODE_FIELD_NUMBER = 4; + private int mode_ = 0; + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +     * Optional. The mode of the data mapping.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.UNRECOGNIZED + : result; + } + + public static final int PYTHON_SCRIPT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonScript_ = ""; + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getPythonScript() { + java.lang.Object ref = pythonScript_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonScript_ = s; + return s; + } + } + + /** + * + * + *
            +     * Deprecated: Use `python_function` instead.
            +     * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getPythonScriptBytes() { + java.lang.Object ref = pythonScript_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonScript_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceToolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sourceToolName_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetFieldMappings(), FieldMappingsDefaultEntryHolder.defaultEntry, 2); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonScript_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pythonScript_); + } + if (mode_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getPythonFunction()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceToolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sourceToolName_); + } + for (java.util.Map.Entry entry : + internalGetFieldMappings().getMap().entrySet()) { + com.google.protobuf.MapEntry fieldMappings__ = + FieldMappingsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fieldMappings__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonScript_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pythonScript_); + } + if (mode_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPythonFunction()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.WidgetTool.DataMapping)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WidgetTool.DataMapping other = + (com.google.cloud.ces.v1.WidgetTool.DataMapping) obj; + + if (!getSourceToolName().equals(other.getSourceToolName())) return false; + if (!internalGetFieldMappings().equals(other.internalGetFieldMappings())) return false; + if (hasPythonFunction() != other.hasPythonFunction()) return false; + if (hasPythonFunction()) { + if (!getPythonFunction().equals(other.getPythonFunction())) return false; + } + if (mode_ != other.mode_) return false; + if (!getPythonScript().equals(other.getPythonScript())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSourceToolName().hashCode(); + if (!internalGetFieldMappings().getMap().isEmpty()) { + hash = (37 * hash) + FIELD_MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFieldMappings().hashCode(); + } + if (hasPythonFunction()) { + hash = (37 * hash) + PYTHON_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getPythonFunction().hashCode(); + } + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PYTHON_SCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getPythonScript().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool.DataMapping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.WidgetTool.DataMapping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for mapping data from a source tool to the widget's input
            +     * parameters.
            +     * 
            + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool.DataMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WidgetTool.DataMapping) + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableFieldMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.WidgetTool.DataMapping.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPythonFunctionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceToolName_ = ""; + internalGetMutableFieldMappings().clear(); + pythonFunction_ = null; + if (pythonFunctionBuilder_ != null) { + pythonFunctionBuilder_.dispose(); + pythonFunctionBuilder_ = null; + } + mode_ = 0; + pythonScript_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping build() { + com.google.cloud.ces.v1.WidgetTool.DataMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping buildPartial() { + com.google.cloud.ces.v1.WidgetTool.DataMapping result = + new com.google.cloud.ces.v1.WidgetTool.DataMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.WidgetTool.DataMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceToolName_ = sourceToolName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldMappings_ = internalGetFieldMappings(); + result.fieldMappings_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pythonFunction_ = + pythonFunctionBuilder_ == null ? pythonFunction_ : pythonFunctionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pythonScript_ = pythonScript_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.WidgetTool.DataMapping) { + return mergeFrom((com.google.cloud.ces.v1.WidgetTool.DataMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool.DataMapping other) { + if (other == com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance()) + return this; + if (!other.getSourceToolName().isEmpty()) { + sourceToolName_ = other.sourceToolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableFieldMappings().mergeFrom(other.internalGetFieldMappings()); + bitField0_ |= 0x00000002; + if (other.hasPythonFunction()) { + mergePythonFunction(other.getPythonFunction()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPythonScript().isEmpty()) { + pythonScript_ = other.pythonScript_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceToolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry fieldMappings__ = + input.readMessage( + FieldMappingsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFieldMappings() + .getMutableMap() + .put(fieldMappings__.getKey(), fieldMappings__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pythonScript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 32: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetPythonFunctionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sourceToolName_ = ""; + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceToolName. + */ + public java.lang.String getSourceToolName() { + java.lang.Object ref = sourceToolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceToolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceToolName. + */ + public com.google.protobuf.ByteString getSourceToolNameBytes() { + java.lang.Object ref = sourceToolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceToolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceToolName to set. + * @return This builder for chaining. + */ + public Builder setSourceToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceToolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceToolName() { + sourceToolName_ = getDefaultInstance().getSourceToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The resource name of the tool that provides the data for the
            +       * widget (e.g., a search tool or a custom function). Format:
            +       * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
            +       * 
            + * + * string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceToolName to set. + * @return This builder for chaining. + */ + public Builder setSourceToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField fieldMappings_; + + private com.google.protobuf.MapField + internalGetFieldMappings() { + if (fieldMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + return fieldMappings_; + } + + private com.google.protobuf.MapField + internalGetMutableFieldMappings() { + if (fieldMappings_ == null) { + fieldMappings_ = + com.google.protobuf.MapField.newMapField( + FieldMappingsDefaultEntryHolder.defaultEntry); + } + if (!fieldMappings_.isMutable()) { + fieldMappings_ = fieldMappings_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return fieldMappings_; + } + + public int getFieldMappingsCount() { + return internalGetFieldMappings().getMap().size(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldMappings().getMap().containsKey(key); + } + + /** Use {@link #getFieldMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFieldMappings() { + return getFieldMappingsMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFieldMappingsMap() { + return internalGetFieldMappings().getMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFieldMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getFieldMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFieldMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFieldMappings() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableFieldMappings().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFieldMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFieldMappings().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFieldMappings() { + bitField0_ |= 0x00000002; + return internalGetMutableFieldMappings().getMutableMap(); + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putFieldMappings(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFieldMappings().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
            +       * Optional. A map of widget input parameter fields to the corresponding
            +       * output fields of the source tool.
            +       * 
            + * + * + * map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllFieldMappings(java.util.Map values) { + internalGetMutableFieldMappings().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private com.google.cloud.ces.v1.PythonFunction pythonFunction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + pythonFunctionBuilder_; + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + public boolean hasPythonFunction() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + if (pythonFunctionBuilder_ == null) { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } else { + return pythonFunctionBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pythonFunction_ = value; + } else { + pythonFunctionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction( + com.google.cloud.ces.v1.PythonFunction.Builder builderForValue) { + if (pythonFunctionBuilder_ == null) { + pythonFunction_ = builderForValue.build(); + } else { + pythonFunctionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pythonFunction_ != null + && pythonFunction_ != com.google.cloud.ces.v1.PythonFunction.getDefaultInstance()) { + getPythonFunctionBuilder().mergeFrom(value); + } else { + pythonFunction_ = value; + } + } else { + pythonFunctionBuilder_.mergeFrom(value); + } + if (pythonFunction_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPythonFunction() { + bitField0_ = (bitField0_ & ~0x00000004); + pythonFunction_ = null; + if (pythonFunctionBuilder_ != null) { + pythonFunctionBuilder_.dispose(); + pythonFunctionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonFunction.Builder getPythonFunctionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPythonFunctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + if (pythonFunctionBuilder_ != null) { + return pythonFunctionBuilder_.getMessageOrBuilder(); + } else { + return pythonFunction_ == null + ? com.google.cloud.ces.v1.PythonFunction.getDefaultInstance() + : pythonFunction_; + } + } + + /** + * + * + *
            +       * Optional. Configuration for a Python function used to transform the
            +       * source tool's output into the widget's input format.
            +       * 
            + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + internalGetPythonFunctionFieldBuilder() { + if (pythonFunctionBuilder_ == null) { + pythonFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder>( + getPythonFunction(), getParentForChildren(), isClean()); + pythonFunction_ = null; + } + return pythonFunctionBuilder_; + } - /** - * - * - *
            -     * Short form widget.
            -     * 
            - * - * SHORT_FORM = 7; - */ - public static final int SHORT_FORM_VALUE = 7; + private int mode_ = 0; + + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } - /** - * - * - *
            -     * Overall satisfaction widget.
            -     * 
            - * - * OVERALL_SATISFACTION = 8; - */ - public static final int OVERALL_SATISFACTION_VALUE = 8; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - * - * - *
            -     * Order summary widget.
            -     * 
            - * - * ORDER_SUMMARY = 9; - */ - public static final int ORDER_SUMMARY_VALUE = 9; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode.UNRECOGNIZED + : result; + } - /** - * - * - *
            -     * Appointment details widget.
            -     * 
            - * - * APPOINTMENT_DETAILS = 10; - */ - public static final int APPOINTMENT_DETAILS_VALUE = 10; + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.ces.v1.WidgetTool.DataMapping.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + mode_ = value.getNumber(); + onChanged(); + return this; + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + /** + * + * + *
            +       * Optional. The mode of the data mapping.
            +       * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000008); + mode_ = 0; + onChanged(); + return this; } - return value; - } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WidgetType valueOf(int value) { - return forNumber(value); - } + private java.lang.Object pythonScript_ = ""; + + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The pythonScript. + */ + @java.lang.Deprecated + public java.lang.String getPythonScript() { + java.lang.Object ref = pythonScript_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonScript_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WidgetType forNumber(int value) { - switch (value) { - case 0: - return WIDGET_TYPE_UNSPECIFIED; - case 1: - return CUSTOM; - case 2: - return PRODUCT_CAROUSEL; - case 3: - return PRODUCT_DETAILS; - case 4: - return QUICK_ACTIONS; - case 5: - return PRODUCT_COMPARISON; - case 6: - return ADVANCED_PRODUCT_DETAILS; - case 7: - return SHORT_FORM; - case 8: - return OVERALL_SATISFACTION; - case 9: - return ORDER_SUMMARY; - case 10: - return APPOINTMENT_DETAILS; - default: - return null; + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return The bytes for pythonScript. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getPythonScriptBytes() { + java.lang.Object ref = pythonScript_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonScript_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @param value The pythonScript to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPythonScript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonScript_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WidgetType findValueByNumber(int number) { - return WidgetType.forNumber(number); - } - }; + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPythonScript() { + pythonScript_ = getDefaultInstance().getPythonScript(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); + /** + * + * + *
            +       * Deprecated: Use `python_function` instead.
            +       * 
            + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1/widget_tool.proto;l=66 + * @param value The bytes for pythonScript to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPythonScriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonScript_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - return getDescriptor().getValues().get(ordinal()); + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool.DataMapping) } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WidgetTool.DataMapping) + private static final com.google.cloud.ces.v1.WidgetTool.DataMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WidgetTool.DataMapping(); } - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.ces.v1.WidgetTool.getDescriptor().getEnumTypes().get(0); + public static com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstance() { + return DEFAULT_INSTANCE; } - private static final WidgetType[] VALUES = values(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static WidgetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; - - private WidgetType(int value) { - this.value = value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + private int bitField0_; private int inputCase_ = 0; @SuppressWarnings("serial") @@ -682,6 +2805,117 @@ public com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType() { return result == null ? com.google.cloud.ces.v1.WidgetTool.WidgetType.UNRECOGNIZED : result; } + public static final int UI_CONFIG_FIELD_NUMBER = 5; + private com.google.protobuf.Struct uiConfig_; + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + @java.lang.Override + public boolean hasUiConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + @java.lang.Override + public com.google.protobuf.Struct getUiConfig() { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getUiConfigOrBuilder() { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + + public static final int DATA_MAPPING_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.WidgetTool.DataMapping dataMapping_; + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + @java.lang.Override + public boolean hasDataMapping() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping() { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -709,6 +2943,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 4) { output.writeMessage(4, (com.google.cloud.ces.v1.Schema) input_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUiConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getDataMapping()); + } getUnknownFields().writeTo(output); } @@ -733,6 +2973,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.ces.v1.Schema) input_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUiConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDataMapping()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -751,6 +2997,14 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (widgetType_ != other.widgetType_) return false; + if (hasUiConfig() != other.hasUiConfig()) return false; + if (hasUiConfig()) { + if (!getUiConfig().equals(other.getUiConfig())) return false; + } + if (hasDataMapping() != other.hasDataMapping()) return false; + if (hasDataMapping()) { + if (!getDataMapping().equals(other.getDataMapping())) return false; + } if (!getInputCase().equals(other.getInputCase())) return false; switch (inputCase_) { case 4: @@ -776,6 +3030,14 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + WIDGET_TYPE_FIELD_NUMBER; hash = (53 * hash) + widgetType_; + if (hasUiConfig()) { + hash = (37 * hash) + UI_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUiConfig().hashCode(); + } + if (hasDataMapping()) { + hash = (37 * hash) + DATA_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getDataMapping().hashCode(); + } switch (inputCase_) { case 4: hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; @@ -916,10 +3178,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1.WidgetTool.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUiConfigFieldBuilder(); + internalGetDataMappingFieldBuilder(); + } } @java.lang.Override @@ -932,6 +3204,16 @@ public Builder clear() { name_ = ""; description_ = ""; widgetType_ = 0; + uiConfig_ = null; + if (uiConfigBuilder_ != null) { + uiConfigBuilder_.dispose(); + uiConfigBuilder_ = null; + } + dataMapping_ = null; + if (dataMappingBuilder_ != null) { + dataMappingBuilder_.dispose(); + dataMappingBuilder_ = null; + } inputCase_ = 0; input_ = null; return this; @@ -979,6 +3261,17 @@ private void buildPartial0(com.google.cloud.ces.v1.WidgetTool result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.widgetType_ = widgetType_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uiConfig_ = uiConfigBuilder_ == null ? uiConfig_ : uiConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataMapping_ = + dataMappingBuilder_ == null ? dataMapping_ : dataMappingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.ces.v1.WidgetTool result) { @@ -1014,6 +3307,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool other) { if (other.widgetType_ != 0) { setWidgetTypeValue(other.getWidgetTypeValue()); } + if (other.hasUiConfig()) { + mergeUiConfig(other.getUiConfig()); + } + if (other.hasDataMapping()) { + mergeDataMapping(other.getDataMapping()); + } switch (other.getInputCase()) { case PARAMETERS: { @@ -1076,6 +3375,20 @@ public Builder mergeFrom( inputCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + internalGetUiConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetDataMappingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1663,6 +3976,419 @@ public Builder clearWidgetType() { return this; } + private com.google.protobuf.Struct uiConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + uiConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + public boolean hasUiConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + public com.google.protobuf.Struct getUiConfig() { + if (uiConfigBuilder_ == null) { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } else { + return uiConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUiConfig(com.google.protobuf.Struct value) { + if (uiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiConfig_ = value; + } else { + uiConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUiConfig(com.google.protobuf.Struct.Builder builderForValue) { + if (uiConfigBuilder_ == null) { + uiConfig_ = builderForValue.build(); + } else { + uiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeUiConfig(com.google.protobuf.Struct value) { + if (uiConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && uiConfig_ != null + && uiConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + getUiConfigBuilder().mergeFrom(value); + } else { + uiConfig_ = value; + } + } else { + uiConfigBuilder_.mergeFrom(value); + } + if (uiConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearUiConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + uiConfig_ = null; + if (uiConfigBuilder_ != null) { + uiConfigBuilder_.dispose(); + uiConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getUiConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUiConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getUiConfigOrBuilder() { + if (uiConfigBuilder_ != null) { + return uiConfigBuilder_.getMessageOrBuilder(); + } else { + return uiConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : uiConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration for rendering the widget.
            +     * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetUiConfigFieldBuilder() { + if (uiConfigBuilder_ == null) { + uiConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getUiConfig(), getParentForChildren(), isClean()); + uiConfig_ = null; + } + return uiConfigBuilder_; + } + + private com.google.cloud.ces.v1.WidgetTool.DataMapping dataMapping_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder> + dataMappingBuilder_; + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + public boolean hasDataMapping() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + public com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping() { + if (dataMappingBuilder_ == null) { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } else { + return dataMappingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping(com.google.cloud.ces.v1.WidgetTool.DataMapping value) { + if (dataMappingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataMapping_ = value; + } else { + dataMappingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping( + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder builderForValue) { + if (dataMappingBuilder_ == null) { + dataMapping_ = builderForValue.build(); + } else { + dataMappingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataMapping(com.google.cloud.ces.v1.WidgetTool.DataMapping value) { + if (dataMappingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && dataMapping_ != null + && dataMapping_ + != com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance()) { + getDataMappingBuilder().mergeFrom(value); + } else { + dataMapping_ = value; + } + } else { + dataMappingBuilder_.mergeFrom(value); + } + if (dataMapping_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataMapping() { + bitField0_ = (bitField0_ & ~0x00000020); + dataMapping_ = null; + if (dataMappingBuilder_ != null) { + dataMappingBuilder_.dispose(); + dataMappingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder getDataMappingBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDataMappingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + if (dataMappingBuilder_ != null) { + return dataMappingBuilder_.getMessageOrBuilder(); + } else { + return dataMapping_ == null + ? com.google.cloud.ces.v1.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + } + + /** + * + * + *
            +     * Optional. The mapping that defines how data from a source tool is mapped to
            +     * the widget's input parameters.
            +     * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder> + internalGetDataMappingFieldBuilder() { + if (dataMappingBuilder_ == null) { + dataMappingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool.DataMapping, + com.google.cloud.ces.v1.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder>( + getDataMapping(), getParentForChildren(), isClean()); + dataMapping_ = null; + } + return dataMappingBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool) } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java index c47e8c364992..de79d65c1798 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java @@ -150,5 +150,88 @@ public interface WidgetToolOrBuilder */ com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType(); + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the uiConfig field is set. + */ + boolean hasUiConfig(); + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uiConfig. + */ + com.google.protobuf.Struct getUiConfig(); + + /** + * + * + *
            +   * Optional. Configuration for rendering the widget.
            +   * 
            + * + * .google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getUiConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMapping field is set. + */ + boolean hasDataMapping(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + com.google.cloud.ces.v1.WidgetTool.DataMapping getDataMapping(); + + /** + * + * + *
            +   * Optional. The mapping that defines how data from a source tool is mapped to
            +   * the widget's input parameters.
            +   * 
            + * + * + * .google.cloud.ces.v1.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder(); + com.google.cloud.ces.v1.WidgetTool.InputCase getInputCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java index f16f0cb91413..7b6816531d2a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1_WidgetTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,41 +61,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n%google/cloud/ces/v1/widget_tool.proto\022" + "\n" + + "%google/cloud/ces/v1/widget_tool.proto\022" + "\023google.cloud.ces.v1\032\037google/api/field_b" - + "ehavior.proto\032 google/cloud/ces/v1/schem" - + "a.proto\"\302\003\n\nWidgetTool\0226\n\nparameters\030\004 \001" - + "(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003" - + "\340A\001\022D\n\013widget_type\030\003 \001(\0162*.google.cloud." - + "ces.v1.WidgetTool.WidgetTypeB\003\340A\001\"\377\001\n\nWi" - + "dgetType\022\033\n\027WIDGET_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006CUSTOM\020\001\022\024\n\020PRODUCT_CAROUSEL\020\002\022\023\n\017PRODU" - + "CT_DETAILS\020\003\022\021\n\rQUICK_ACTIONS\020\004\022\026\n\022PRODU" - + "CT_COMPARISON\020\005\022\034\n\030ADVANCED_PRODUCT_DETA" - + "ILS\020\006\022\016\n\nSHORT_FORM\020\007\022\030\n\024OVERALL_SATISFA" - + "CTION\020\010\022\021\n\rORDER_SUMMARY\020\t\022\027\n\023APPOINTMEN" - + "T_DETAILS\020\nB\007\n\005inputBW\n\027com.google.cloud" - + ".ces.v1B\017WidgetToolProtoP\001Z)cloud.google" - + ".com/go/ces/apiv1/cespb;cespbb\006proto3" + + "ehavior.proto\032)google/cloud/ces/v1/python_function.proto\032 google/cloud/ces/v1/sc" + + "hema.proto\032\034google/protobuf/struct.proto\"\221\010\n\n" + + "WidgetTool\0226\n\n" + + "parameters\030\004" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\022D\n" + + "\013widget_type\030\003" + + " \001(\0162*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\003\340A\001\022/\n" + + "\tui_config\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001\022F\n" + + "\014data_mapping\030\006" + + " \001(\0132+.google.cloud.ces.v1.WidgetTool.DataMappingB\003\340A\001\032\246\003\n" + + "\013DataMapping\022\035\n" + + "\020source_tool_name\030\001 \001(\tB\003\340A\001\022[\n" + + "\016field_mappings\030\002 \003(\0132>.google.cloud.ces.v1" + + ".WidgetTool.DataMapping.FieldMappingsEntryB\003\340A\001\022A\n" + + "\017python_function\030\005" + + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001\022C\n" + + "\004mode\030\004" + + " \001(\01620.google.cloud.ces.v1.WidgetTool.DataMapping.ModeB\003\340A\001\022\031\n\r" + + "python_script\030\003 \001(\tB\002\030\001\0324\n" + + "\022FieldMappingsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"B\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\021\n\r" + + "FIELD_MAPPING\020\001\022\021\n\r" + + "PYTHON_SCRIPT\020\002\"\254\002\n\n" + + "WidgetType\022\033\n" + + "\027WIDGET_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CUSTOM\020\001\022\024\n" + + "\020PRODUCT_CAROUSEL\020\002\022\023\n" + + "\017PRODUCT_DETAILS\020\003\022\021\n\r" + + "QUICK_ACTIONS\020\004\022\026\n" + + "\022PRODUCT_COMPARISON\020\005\022\034\n" + + "\030ADVANCED_PRODUCT_DETAILS\020\006\022\016\n\n" + + "SHORT_FORM\020\007\022\030\n" + + "\024OVERALL_SATISFACTION\020\010\022\021\n\r" + + "ORDER_SUMMARY\020\t\022\027\n" + + "\023APPOINTMENT_DETAILS\020\n" + + "\022\031\n" + + "\025APPOINTMENT_SCHEDULER\020\013\022\020\n" + + "\014CONTACT_FORM\020\014B\007\n" + + "\005inputBW\n" + + "\027com.google.cloud.ces.v1B\017WidgetToolProtoP\001Z)cloud.google.com/go/ces/apiv" + + "1/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(), com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_ces_v1_WidgetTool_descriptor = getDescriptor().getMessageType(0); internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1_WidgetTool_descriptor, new java.lang.String[] { - "Parameters", "Name", "Description", "WidgetType", "Input", + "Parameters", "Name", "Description", "WidgetType", "UiConfig", "DataMapping", "Input", + }); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor, + new java.lang.String[] { + "SourceToolName", "FieldMappings", "PythonFunction", "Mode", "PythonScript", + }); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor = + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_DataMapping_FieldMappingsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(); com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto index 71912ad23804..1543fbd2169b 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto @@ -628,6 +628,14 @@ message ExportAppRequest { // app. The format of this URI must be `gs:///`. The // exported app archive will be written directly to the specified GCS object. string gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name of the app version to export. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}`. + string app_version = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; } // Response message for diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto new file mode 100644 index 000000000000..48cd124397f3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_tool.proto @@ -0,0 +1,41 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a tool that allows the agent to call another agent. +message AgentTool { + // Required. The name of the agent tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description of the tool's purpose. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name of the root agent that is the entry point of + // the tool. Format: `projects/{project}/locations/{location}/agents/{agent}` + string root_agent = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto index c62fd0194a7e..6f76428e5179 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto @@ -122,6 +122,10 @@ message App { // Optional. Logging settings of the app. LoggingSettings logging_settings = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Error handling settings of the app. + ErrorHandlingSettings error_handling_settings = 34 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The default LLM model settings for the app. // Individual resources (e.g. agents, guardrails) can override these // configurations as needed. @@ -216,8 +220,11 @@ message LanguageSettings { // pre-built instructions to improve handling of multilingual input. bool enable_multilingual_support = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The action to perform when an agent receives input in an - // unsupported language. + // Optional. Deprecated: This feature is no longer supported. Use + // `enable_multilingual_support` instead to improve handling of multilingual + // input. + // The action to perform when an agent receives input in an unsupported + // language. // // This can be a predefined action or a custom tool call. // Valid values are: @@ -226,7 +233,8 @@ message LanguageSettings { // an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding // [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the // conversation. - string fallback_action = 4 [(google.api.field_behavior) = OPTIONAL]; + string fallback_action = 4 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Configuration for how the input and output audio should be processed and @@ -402,6 +410,30 @@ message LoggingSettings { [(google.api.field_behavior) = OPTIONAL]; } +// Settings to describe how errors should be handled in the app. +message ErrorHandlingSettings { + // Defines the strategy for handling errors. + enum ErrorHandlingStrategy { + // Unspecified error handling strategy. + ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; + + // No specific handling is enabled. + NONE = 1; + + // A fallback message will be returned to the user in case of + // system errors (e.g. LLM errors). + FALLBACK_RESPONSE = 2; + + // An [EndSession][google.cloud.ces.v1.EndSession] signal will be emitted in + // case of system errors (e.g. LLM errors). + END_SESSION = 3; + } + + // Optional. The strategy to use for error handling. + ErrorHandlingStrategy error_handling_strategy = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + // Threshold settings for metrics in an Evaluation. message EvaluationMetricsThresholds { // Settings for golden evaluations. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto index dd9e7cc1f715..982d87226682 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto @@ -28,13 +28,13 @@ message BigQueryExportSettings { // Optional. Indicates whether the BigQuery export is enabled. bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The project ID of the BigQuery dataset to export the data to. + // Optional. The **project ID** of the BigQuery dataset to export the data to. // // Note: If the BigQuery dataset is in a different project from the app, // you should grant `roles/bigquery.admin` role to the CES service agent // `service-@gcp-sa-ces.iam.gserviceaccount.com`. string project = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The BigQuery dataset to export the data to. + // Optional. The BigQuery **dataset ID** to export the data to. string dataset = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto index c5e638848cd8..c4c28e1d4083 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto @@ -148,11 +148,14 @@ message TlsConfig { // is empty or unspecified, CES will use Google's default trust // store to verify certificates. N.B. Make sure the HTTPS server // certificates are signed with "subject alt name". For instance a - // certificate can be self-signed using the following command, + // certificate can be self-signed using the following command: + // + // ``` // openssl x509 -req -days 200 -in example.com.csr \ // -signkey example.com.key \ // -out example.com.crt \ // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + // ``` bytes cert = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -239,6 +242,9 @@ message ChannelProfile { // Widget supports only chat input. CHAT_ONLY = 3; + + // Widget supports chat, voice, and video input. + CHAT_VOICE_AND_VIDEO = 4; } // Theme of the web widget. @@ -289,6 +295,9 @@ message ChannelProfile { // Five9 channel. FIVE9 = 7; + + // Third party contact center integration channel. + CONTACT_CENTER_INTEGRATION = 8; } // Optional. The unique identifier of the channel profile. diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto index 0edb8ebdb685..61d238e175d6 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto @@ -38,17 +38,19 @@ message Deployment { // Identifier. The resource name of the deployment. // Format: - // projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Display name of the deployment. string display_name = 8 [(google.api.field_behavior) = REQUIRED]; - // Required. The resource name of the app version to deploy. + // Optional. The resource name of the app version to deploy. // Format: - // projects/{project}/locations/{location}/apps/{app}/versions/{version} + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + // Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use + // the draft app. string app_version = 2 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } ]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto index 8f5097320f5e..c658081ab052 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto @@ -102,6 +102,9 @@ message Chunk { // Optional. Transcript associated with the audio. string transcript = 9 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Blob data. + Blob blob = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Custom payload data. google.protobuf.Struct payload = 11 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto index fddc46e157e7..03560357395d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto @@ -66,4 +66,12 @@ message McpTool { // service names within a perimeter. ServiceDirectoryConfig service_directory_config = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The custom headers to send in the request to the MCP server. The + // values must be in the format `$context.variables.` and + // can be set in the session variables. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection + // for more details. + map custom_headers = 9 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto index 4f3e3ab8a524..77cec758d712 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto @@ -51,4 +51,12 @@ message McpToolset { // Optional. The TLS configuration. Includes the custom server certificates // that the client should trust. TlsConfig tls_config = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The custom headers to send in the request to the MCP server. The + // values must be in the format `$context.variables.` and + // can be set in the session variables. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection + // for more details. + map custom_headers = 5 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto new file mode 100644 index 000000000000..c535d97dbbe5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/security_settings.proto @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SecuritySettingsProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Project/Location level security settings for CES. +message SecuritySettings { + option (google.api.resource) = { + type: "ces.googleapis.com/SecuritySettings" + pattern: "projects/{project}/locations/{location}/securitySettings" + plural: "securitySettings" + singular: "securitySettings" + }; + + // Identifier. The unique identifier of the security settings. + // Format: `projects/{project}/locations/{location}/securitySettings` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Endpoint control related settings. + EndpointControlPolicy endpoint_control_policy = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Create time of the security settings. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of the security settings. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag of the security settings. + string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Defines project/location level endpoint control policy. +message EndpointControlPolicy { + // Defines the scope in which this policy's allowed_origins list is + // enforced. + enum EnforcementScope { + // Unspecified. This policy will be treated as VPCSC_ONLY. + ENFORCEMENT_SCOPE_UNSPECIFIED = 0; + + // This policy applies only when VPC-SC is active. + VPCSC_ONLY = 1; + + // This policy ALWAYS applies, regardless of VPC-SC status. + ALWAYS = 2; + } + + // Optional. The scope in which this policy's allowed_origins list is + // enforced. + EnforcementScope enforcement_scope = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The allowed HTTP(s) origins that tools in the App are able to + // directly call. The enforcement depends on the value of + // enforcement_scope and the VPC-SC status of the project. + // If a port number is not provided, all ports will be allowed. Otherwise, + // the port number must match exactly. For example, "https://example.com" + // will match "https://example.com:443" and any other port. + // "https://example.com:443" will only match "https://example.com:443". + repeated string allowed_origins = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto index 7804515b178f..93e33a197f44 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto @@ -41,8 +41,7 @@ service SessionService { "https://www.googleapis.com/auth/ces," "https://www.googleapis.com/auth/cloud-platform"; - // Initiates a single turn interaction with the CES agent within a - // session. + // Initiates a single-turn interaction with the CES agent within a session. rpc RunSession(RunSessionRequest) returns (RunSessionResponse) { option (google.api.http) = { post: "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession" @@ -50,6 +49,22 @@ service SessionService { }; } + // Initiates a single-turn interaction with the CES agent. Uses server-side + // streaming to deliver incremental results and partial responses as they are + // generated. + // + // By default, complete responses (e.g., messages from callbacks or full LLM + // responses) are sent to the client as soon as they are available. To enable + // streaming individual text chunks directly from the model, set + // [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] + // to true. + rpc StreamRunSession(RunSessionRequest) returns (stream RunSessionResponse) { + option (google.api.http) = { + post: "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession" + body: "*" + }; + } + // Establishes a bidirectional streaming connection with the CES agent. // The agent processes continuous multimodal inputs (e.g., text, audio) and // generates real-time multimodal output streams. @@ -205,7 +220,7 @@ message SessionConfig { // Optional. The entry agent to handle the session. If not specified, the // session will be handled by the [root // agent][google.cloud.ces.v1.App.root_agent] of the app. Format: - // `projects/{project}/locations/{location}/agents/{agent}` + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` string entry_agent = 12 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } @@ -224,6 +239,11 @@ message SessionConfig { // "America/Los_Angeles". string time_zone = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether to use tool fakes for the session. + // If this field is set, the agent will attempt use tool fakes instead of + // calling the real tools. + bool use_tool_fakes = 14 [(google.api.field_behavior) = OPTIONAL]; + // Optional. // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters) // to send to the remote @@ -231,6 +251,14 @@ message SessionConfig { // agent when the session control is transferred to the remote agent. RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to enable streaming text outputs from the model. + // By default, text outputs from the model are collected before sending to the + // client. + // NOTE: This is only supported for text (non-voice) sessions via + // [StreamRunSession][google.cloud.ces.v1.SessionService.StreamRunSession] or + // [BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]. + bool enable_text_streaming = 18 [(google.api.field_behavior) = OPTIONAL]; } // Request for the client to execute the tools and return the execution results @@ -306,12 +334,14 @@ message SessionInput { } // Optional. A flag to indicate if the current message is a fragment of a - // larger input in the bidi streaming session. When `true`, the agent will - // defer processing until a subsequent message with `will_continue` set to - // `false` is received. + // larger input in the bidi streaming session. + // + // When set to `true`, the agent defers processing until it receives a + // subsequent message where `will_continue` is `false`, or until the system + // detects an endpoint in the audio input. // - // Note: This flag has no effect on audio and DTMF inputs, which are always - // processed in real-time. + // NOTE: This field does not apply to audio and DTMF inputs, as they are + // always processed automatically based on the endpointing signal. bool will_continue = 8 [(google.api.field_behavior) = OPTIONAL]; } @@ -442,7 +472,7 @@ message BidiSessionServerMessage { RecognitionResult recognition_result = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Interruption signal detected from the audio input. + // Optional. Indicates the agent's audio response has been interrupted. InterruptionSignal interruption_signal = 3 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto index 6b30a6d92633..5bb4821b91fb 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto @@ -18,6 +18,7 @@ package google.cloud.ces.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent_tool.proto"; import "google/cloud/ces/v1/client_function.proto"; import "google/cloud/ces/v1/common.proto"; import "google/cloud/ces/v1/connector_tool.proto"; @@ -80,18 +81,22 @@ message Tool { // Optional. The system tool. SystemTool system_tool = 18 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The agent tool. + AgentTool agent_tool = 23 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The widget tool. WidgetTool widget_tool = 24 [(google.api.field_behavior) = OPTIONAL]; } - // Identifier. The unique identifier of the tool. - // Format: - // - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for - // ## standalone tools. + // Identifier. The resource name of the tool. Format: + // + // * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + // for standalone tools. + // * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + // for tools retrieved from a toolset. // - // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` - // for tools retrieved from a toolset. These tools are dynamic and - // output-only, they cannot be referenced directly where a tool is expected. + // These tools are dynamic and output-only; they cannot be referenced directly + // where a tool is expected. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The display name of the tool, derived based on the tool's diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto index 650c8f50cb4b..b14807418ec4 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto @@ -83,6 +83,18 @@ message ExecuteToolRequest { ToolsetTool toolset_tool = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Additional context to be provided for the tool execution + oneof tool_execution_context { + // Optional. The variables that are available for the tool execution. + google.protobuf.Struct variables = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment + // for details) to be passed to the Python tool. + google.protobuf.Struct context = 6 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The resource name of the app which the tool/toolset belongs to. // Format: `projects/{project}/locations/{location}/apps/{app}` string parent = 4 [ @@ -109,11 +121,14 @@ message ExecuteToolResponse { ToolsetTool toolset_tool = 3; } - // Required. The tool execution result in JSON object format. + // The tool execution result in JSON object format. // Use "output" key to specify tool response and "error" key to specify // error details (if any). If "output" and "error" keys are not specified, // then whole "response" is treated as tool execution result. - google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Struct response = 2; + + // The variable values at the end of the tool execution. + google.protobuf.Struct variables = 4; } // Request message for @@ -158,11 +173,11 @@ message RetrieveToolSchemaResponse { ToolsetTool toolset_tool = 2; } - // Required. The schema of the tool input parameters. - Schema input_schema = 3 [(google.api.field_behavior) = REQUIRED]; + // The schema of the tool input parameters. + Schema input_schema = 3; - // Required. The schema of the tool output parameters. - Schema output_schema = 4 [(google.api.field_behavior) = REQUIRED]; + // The schema of the tool output parameters. + Schema output_schema = 4; } // Request message for @@ -184,6 +199,6 @@ message RetrieveToolsRequest { // Response message for // [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools]. message RetrieveToolsResponse { - // Required. The list of tools that are included in the specified toolset. - repeated Tool tools = 1 [(google.api.field_behavior) = REQUIRED]; + // The list of tools that are included in the specified toolset. + repeated Tool tools = 1; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto index 2aba89531152..d4047c009074 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto @@ -66,6 +66,9 @@ message GenerateChatTokenRequest { // Optional. The reCAPTCHA token generated by the client-side chat widget. string recaptcha_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if live handoff is enabled for the session. + bool live_handoff_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto index dff7057ab73b..eaa4cfb384d3 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto @@ -17,7 +17,9 @@ syntax = "proto3"; package google.cloud.ces.v1; import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/python_function.proto"; import "google/cloud/ces/v1/schema.proto"; +import "google/protobuf/struct.proto"; option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; option java_multiple_files = true; @@ -29,6 +31,42 @@ option java_package = "com.google.cloud.ces.v1"; // responsible for processing the widget and generating the next user query to // continue the interaction with the agent. message WidgetTool { + // Configuration for mapping data from a source tool to the widget's input + // parameters. + message DataMapping { + // The strategy used to map data from the source tool to the widget. + enum Mode { + // Unspecified mode. + MODE_UNSPECIFIED = 0; + + // Use the `field_mappings` map for data transformation. + FIELD_MAPPING = 1; + + // Use the `python_script` for data transformation. + PYTHON_SCRIPT = 2; + } + + // Optional. The resource name of the tool that provides the data for the + // widget (e.g., a search tool or a custom function). Format: + // `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}` + string source_tool_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A map of widget input parameter fields to the corresponding + // output fields of the source tool. + map field_mappings = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for a Python function used to transform the + // source tool's output into the widget's input format. + PythonFunction python_function = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mode of the data mapping. + Mode mode = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Deprecated: Use `python_function` instead. + string python_script = 3 [deprecated = true]; + } + // All available widget types. // New values may be added to this enum in the future. enum WidgetType { @@ -64,6 +102,12 @@ message WidgetTool { // Appointment details widget. APPOINTMENT_DETAILS = 10; + + // Appointment scheduler widget. + APPOINTMENT_SCHEDULER = 11; + + // Contact form widget. + CONTACT_FORM = 12; } // The input of the widget tool. @@ -81,4 +125,11 @@ message WidgetTool { // Optional. The type of the widget tool. If not specified, the default type // will be CUSTOMIZED. WidgetType widget_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for rendering the widget. + google.protobuf.Struct ui_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mapping that defines how data from a source tool is mapped to + // the widget's input parameters. + DataMapping data_mapping = 6 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java index e85a10be687d..41a99acaa110 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.longrunning.Operation; @@ -40,6 +41,8 @@ public static void asyncExportApp() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); ApiFuture future = agentServiceClient.exportAppCallable().futureCall(request); // Do something. diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java index 88374e0a923f..7247f5417da8 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java @@ -20,6 +20,7 @@ import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.cloud.ces.v1.ExportAppResponse; import com.google.cloud.ces.v1.OperationMetadata; @@ -41,6 +42,8 @@ public static void asyncExportAppLRO() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); OperationFuture future = agentServiceClient.exportAppOperationCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java index 76c3f9db4e1b..d27c618b16a5 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java @@ -19,6 +19,7 @@ // [START ces_v1_generated_AgentService_ExportApp_sync] import com.google.cloud.ces.v1.AgentServiceClient; import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersionName; import com.google.cloud.ces.v1.ExportAppRequest; import com.google.cloud.ces.v1.ExportAppResponse; @@ -39,6 +40,8 @@ public static void syncExportApp() throws Exception { ExportAppRequest.newBuilder() .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setGcsUri("gcsUri-1251224875") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) .build(); ExportAppResponse response = agentServiceClient.exportAppAsync(request).get(); } diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java new file mode 100644 index 000000000000..05e56de2c531 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/streamrunsession/AsyncStreamRunSession.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_StreamRunSession_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.ces.v1.SessionConfig; +import com.google.cloud.ces.v1.SessionInput; +import com.google.cloud.ces.v1.SessionServiceClient; +import java.util.ArrayList; + +public class AsyncStreamRunSession { + + public static void main(String[] args) throws Exception { + asyncStreamRunSession(); + } + + public static void asyncStreamRunSession() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + ServerStream stream = + sessionServiceClient.streamRunSessionCallable().call(request); + for (RunSessionResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END ces_v1_generated_SessionService_StreamRunSession_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java index 22b175123a80..858f9e8f96b5 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java @@ -43,6 +43,7 @@ public static void asyncGenerateChatToken() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); ApiFuture future = widgetServiceClient.generateChatTokenCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java index 05a87ab7944b..3329de0d5c31 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java @@ -42,6 +42,7 @@ public static void syncGenerateChatToken() throws Exception { .setDeployment( DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) .setRecaptchaToken("recaptchaToken1978277202") + .setLiveHandoffEnabled(true) .build(); GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); } diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 868036e9ea0c..0c1ddbec413f 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.8.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.9.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java index c3d7cd71b430..63cbb67c0e1e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java @@ -539,6 +539,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-databasecenter") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java new file mode 100644 index 000000000000..d53b9d6cde05 --- /dev/null +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.databasecenter.v1beta.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-databasecenter:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json index 3068f91cfec4..8889be9c9c3b 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json +++ b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java index 72f2504caf48..e92b911a5b1a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/Edition.java @@ -24,8 +24,7 @@ * * *
            - * Proto representing the edition of the instance.
            - * NextId: 4.
            + * Represents the edition of a database resource.
              * 
            * * Protobuf enum {@code google.cloud.databasecenter.v1beta.Edition} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java index a6b3cfd3dd63..e6b875bf4f65 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java @@ -340,43 +340,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023EDITION_UNSPECIFIED\020\000\022\026\n" + "\022EDITION_ENTERPRISE\020\001\022\033\n" + "\027EDITION_ENTERPRISE_PLUS\020\002\022\024\n" - + "\020EDITION_STANDARD\020\003*\335\001\n" + + "\020EDITION_STANDARD\020\003*\300\002\n" + "\017SubResourceType\022!\n" + "\035SUB_RESOURCE_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031SUB_RESOURCE_TYPE_PRIMARY\020\001\022\037\n" + "\033SUB_RESOURCE_TYPE_SECONDARY\020\002\022\"\n" + "\036SUB_RESOURCE_TYPE_READ_REPLICA\020\003\022&\n" - + "\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\020\005\022\033\n" + + "\"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY\020\005\022\037\n" + + "\033SUB_RESOURCE_TYPE_READ_POOL\020\006\022!\n" + + "\035SUB_RESOURCE_TYPE_RESERVATION\020\007\022\035\n" + + "\031SUB_RESOURCE_TYPE_DATASET\020\010\022\033\n" + "\027SUB_RESOURCE_TYPE_OTHER\020\004*t\n" + "\016ManagementType\022\037\n" + "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\037\n" + "\033MANAGEMENT_TYPE_GCP_MANAGED\020\001\022 \n" + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\377\007\n" - + "\016DatabaseCenter\022\243\001\n" - + "\r" - + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProductsRequest\0329.googl" - + "e.cloud.databasecenter.v1beta.QueryProdu" - + "ctsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" - + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.AggregateFleetRequest" - + "\032:.google.cloud.databasecenter.v1beta.Ag" - + "gregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" - + "\033QueryDatabaseResourceGroups\022F.google.cloud.databasecenter.v1bet" - + "a.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasecenter.v1beta.QueryD" - + "atabaseResourceGroupsResponse\".\202\323\344\223\002(\"#/" - + "v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" - + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRe" - + "quest\032?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" + + "\016DatabaseCenter\022\243\001\n\r" + + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProd" + + "uctsRequest\0329.google.cloud.databasecente" + + "r.v1beta.QueryProductsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" + + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.Ag" + + "gregateFleetRequest\032:.google.cloud.datab" + + "asecenter.v1beta.AggregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" + + "\033QueryDatabaseResourceGroups\022F.google.cloud.d" + + "atabasecenter.v1beta.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasec" + + "enter.v1beta.QueryDatabaseResourceGroups" + + "Response\".\202\323\344\223\002(\"#/v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" + + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.Ag" + + "gregateIssueStatsRequest\032?.google.cloud." + + "databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" + " \"\033/v1beta:aggregateIssueStats:\001*\022\247\001\n" - + "\013QueryIssues\0226.google.cloud.databasecenter.v1b" - + "eta.QueryIssuesRequest\0327.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"" - + "\'\332A\006parent\202\323\344\223\002\030\"\023/v1beta:queryIssues:\001*" - + "\032Q\312A\035databasecenter.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformB\372\001\n" - + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP\001ZNcloud.google.com" - + "/go/databasecenter/apiv1beta/databasecen" - + "terpb;databasecenterpb\252\002\"Google.Cloud.Da" - + "tabaseCenter.V1Beta\312\002\"Google\\Cloud\\Datab" - + "aseCenter\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" + + "\013QueryIssues\0226.google.cloud.databasecenter.v1beta.QueryIssuesReques" + + "t\0327.google.cloud.databasecenter.v1beta.Q" + + "ueryIssuesResponse\"\'\332A\006parent\202\323\344\223\002\030\"\023/v1" + + "beta:queryIssues:\001*\032Q\312A\035databasecenter.g" + + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\372\001\n" + + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP" + + "\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterp" + + "b\252\002\"Google.Cloud.DatabaseCenter.V1Beta\312\002" + + "\"Google\\Cloud\\DatabaseCenter\\V1beta\352\002%Go" + + "ogle::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java index 368eca9a55a2..331c7a042e1d 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalType.java @@ -1063,6 +1063,16 @@ public enum SignalType implements com.google.protobuf.ProtocolMessageEnum { * SIGNAL_TYPE_EXTENDED_SUPPORT = 102; */ SIGNAL_TYPE_EXTENDED_SUPPORT(102), + /** + * + * + *
            +   * Represents a database version nearing end of life.
            +   * 
            + * + * SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; + */ + SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE(104), UNRECOGNIZED(-1), ; @@ -2206,6 +2216,17 @@ public enum SignalType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SIGNAL_TYPE_EXTENDED_SUPPORT_VALUE = 102; + /** + * + * + *
            +   * Represents a database version nearing end of life.
            +   * 
            + * + * SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; + */ + public static final int SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE_VALUE = 104; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2428,6 +2449,8 @@ public static SignalType forNumber(int value) { return SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES; case 102: return SIGNAL_TYPE_EXTENDED_SUPPORT; + case 104: + return SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE; default: return null; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java index a8884fd4cdc6..d4b11f95313a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalsProto.java @@ -268,7 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ISSUE_SEVERITY_MEDIUM\020\002\022\027\n" + "\023ISSUE_SEVERITY_HIGH\020\003\022\033\n" + "\027ISSUE_SEVERITY_CRITICAL\020\004\022\035\n" - + "\031ISSUE_SEVERITY_IRRELEVANT\020\005*\337 \n\n" + + "\031ISSUE_SEVERITY_IRRELEVANT\020\005*\214!\n\n" + "SignalType\022\033\n" + "\027SIGNAL_TYPE_UNSPECIFIED\020\000\022+\n" + "\'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED\020\001\022#\n" @@ -370,13 +370,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033SIGNAL_TYPE_OUTDATED_CLIENT\020c\022\"\n" + "\036SIGNAL_TYPE_DATABOOST_DISABLED\020d\0220\n" + ",SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES\020e\022 \n" - + "\034SIGNAL_TYPE_EXTENDED_SUPPORT\020fB\372\001\n" - + "&com.google.cloud.databasecenter.v1betaB\014SignalsProtoP\001ZNcl" - + "oud.google.com/go/databasecenter/apiv1be" - + "ta/databasecenterpb;databasecenterpb\252\002\"G" - + "oogle.Cloud.DatabaseCenter.V1Beta\312\002\"Goog" - + "le\\Cloud\\DatabaseCenter\\V1beta\352\002%Google:" - + ":Cloud::DatabaseCenter::V1betab\006proto3" + + "\034SIGNAL_TYPE_EXTENDED_SUPPORT\020f\022+\n" + + "\'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE\020hB\372\001\n" + + "&com.google.cloud.databasecenter.v1betaB\014SignalsProtoP" + + "\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterp" + + "b\252\002\"Google.Cloud.DatabaseCenter.V1Beta\312\002" + + "\"Google\\Cloud\\DatabaseCenter\\V1beta\352\002%Go" + + "ogle::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java index a3c21efdec75..88e6eaf0f32a 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SubResourceType.java @@ -81,6 +81,36 @@ public enum SubResourceType implements com.google.protobuf.ProtocolMessageEnum { * SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; */ SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY(5), + /** + * + * + *
            +   * A resource acting as a read pool.
            +   * 
            + * + * SUB_RESOURCE_TYPE_READ_POOL = 6; + */ + SUB_RESOURCE_TYPE_READ_POOL(6), + /** + * + * + *
            +   * Represents a reservation resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_RESERVATION = 7; + */ + SUB_RESOURCE_TYPE_RESERVATION(7), + /** + * + * + *
            +   * Represents a dataset resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_DATASET = 8; + */ + SUB_RESOURCE_TYPE_DATASET(8), /** * * @@ -159,6 +189,39 @@ public enum SubResourceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY_VALUE = 5; + /** + * + * + *
            +   * A resource acting as a read pool.
            +   * 
            + * + * SUB_RESOURCE_TYPE_READ_POOL = 6; + */ + public static final int SUB_RESOURCE_TYPE_READ_POOL_VALUE = 6; + + /** + * + * + *
            +   * Represents a reservation resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_RESERVATION = 7; + */ + public static final int SUB_RESOURCE_TYPE_RESERVATION_VALUE = 7; + + /** + * + * + *
            +   * Represents a dataset resource.
            +   * 
            + * + * SUB_RESOURCE_TYPE_DATASET = 8; + */ + public static final int SUB_RESOURCE_TYPE_DATASET_VALUE = 8; + /** * * @@ -204,6 +267,12 @@ public static SubResourceType forNumber(int value) { return SUB_RESOURCE_TYPE_READ_REPLICA; case 5: return SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY; + case 6: + return SUB_RESOURCE_TYPE_READ_POOL; + case 7: + return SUB_RESOURCE_TYPE_RESERVATION; + case 8: + return SUB_RESOURCE_TYPE_DATASET; case 4: return SUB_RESOURCE_TYPE_OTHER; default: diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto index db4411c824af..a19d7c09ced9 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto @@ -100,8 +100,7 @@ enum ResourceCategory { DATABASE = 3; } -// Proto representing the edition of the instance. -// NextId: 4. +// Represents the edition of a database resource. enum Edition { // Default, to make it consistent with instance edition enum. EDITION_UNSPECIFIED = 0; @@ -133,6 +132,15 @@ enum SubResourceType { // A resource acting as an external primary. SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; + // A resource acting as a read pool. + SUB_RESOURCE_TYPE_READ_POOL = 6; + + // Represents a reservation resource. + SUB_RESOURCE_TYPE_RESERVATION = 7; + + // Represents a dataset resource. + SUB_RESOURCE_TYPE_DATASET = 8; + // For the rest of the categories. SUB_RESOURCE_TYPE_OTHER = 4; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto index ce3b767a6e7a..01c2f9ad1973 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto @@ -432,6 +432,9 @@ enum SignalType { // Resource version is in extended support. SIGNAL_TYPE_EXTENDED_SUPPORT = 102; + + // Represents a database version nearing end of life. + SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE = 104; } // A group of signal types that specifies what the user is interested in. diff --git a/java-dataform/README.md b/java-dataform/README.md index e8ffc1b43931..561c5d8b1900 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.86.0' +implementation 'com.google.cloud:google-cloud-dataform:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java index bf1cc1517024..1bb4f2d48332 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java @@ -18,12 +18,17 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1.stub.DataformStub; import com.google.cloud.dataform.v1.stub.DataformStubSettings; import com.google.cloud.location.GetLocationRequest; @@ -36,6 +41,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -58,8 +64,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * @@ -74,6 +80,291 @@ * Method Variants * * + *

            GetTeamFolder + *

            Fetches a single TeamFolder. + * + *

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

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

            + *

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

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

            • getTeamFolder(String name) + *

            + *

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

            + *
              + *
            • getTeamFolderCallable() + *

            + * + * + * + *

            CreateTeamFolder + *

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

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

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

            + *

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

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

            • createTeamFolder(String parent, TeamFolder teamFolder) + *

            + *

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

            + *
              + *
            • createTeamFolderCallable() + *

            + * + * + * + *

            UpdateTeamFolder + *

            Updates a single TeamFolder. + * + *

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

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

            + *

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

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

            + *

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

            + *
              + *
            • updateTeamFolderCallable() + *

            + * + * + * + *

            DeleteTeamFolder + *

            Deletes a single TeamFolder. + * + *

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

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

            + *

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

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

            • deleteTeamFolder(String name) + *

            + *

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

            + *
              + *
            • deleteTeamFolderCallable() + *

            + * + * + * + *

            DeleteTeamFolderTree + *

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

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

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

            + *

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

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

            • deleteTeamFolderTreeAsync(String name, boolean force) + *

            + *

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

            + *
              + *
            • deleteTeamFolderTreeOperationCallable() + *

            • deleteTeamFolderTreeCallable() + *

            + * + * + * + *

            QueryTeamFolderContents + *

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

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

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

            + *

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

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

            • queryTeamFolderContents(String teamFolder) + *

            + *

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

            + *
              + *
            • queryTeamFolderContentsPagedCallable() + *

            • queryTeamFolderContentsCallable() + *

            + * + * + * + *

            SearchTeamFolders + *

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

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

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

            + *

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

            + *
              + *
            • searchTeamFoldersPagedCallable() + *

            • searchTeamFoldersCallable() + *

            + * + * + * + *

            GetFolder + *

            Fetches a single Folder. + * + *

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

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

            + *

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

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

            • getFolder(String name) + *

            + *

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

            + *
              + *
            • getFolderCallable() + *

            + * + * + * + *

            CreateFolder + *

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

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

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

            + *

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

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

            • createFolder(String parent, Folder folder) + *

            + *

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

            + *
              + *
            • createFolderCallable() + *

            + * + * + * + *

            UpdateFolder + *

            Updates a single Folder. + * + *

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

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

            + *

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

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

            + *

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

            + *
              + *
            • updateFolderCallable() + *

            + * + * + * + *

            DeleteFolder + *

            Deletes a single Folder. + * + *

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

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

            + *

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

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

            • deleteFolder(String name) + *

            + *

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

            + *
              + *
            • deleteFolderCallable() + *

            + * + * + * + *

            DeleteFolderTree + *

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

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

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

            + *

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

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

            • deleteFolderTreeAsync(String name, boolean force) + *

            + *

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

            + *
              + *
            • deleteFolderTreeOperationCallable() + *

            • deleteFolderTreeCallable() + *

            + * + * + * + *

            QueryFolderContents + *

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

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

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

            + *

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

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

            • queryFolderContents(String folder) + *

            + *

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

            + *
              + *
            • queryFolderContentsPagedCallable() + *

            • queryFolderContentsCallable() + *

            + * + * + * + *

            QueryUserRootContents + *

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

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

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

            + *

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

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

            • queryUserRootContents(String location) + *

            + *

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

            + *
              + *
            • queryUserRootContentsPagedCallable() + *

            • queryUserRootContentsCallable() + *

            + * + * + * + *

            MoveFolder + *

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

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

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

            + *

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

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

            • moveFolderAsync(String name, String destinationContainingFolder) + *

            + *

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

            + *
              + *
            • moveFolderOperationCallable() + *

            • moveFolderCallable() + *

            + * + * + * *

            ListRepositories *

            Lists Repositories in a given project and location. *

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

            MoveRepository + *

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

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

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

            + *

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

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

            • moveRepositoryAsync(String name, String destinationContainingFolder) + *

            + *

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

            + *
              + *
            • moveRepositoryOperationCallable() + *

            • moveRepositoryCallable() + *

            + * + * + * *

            CommitRepositoryChanges *

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

            ListLocations - *

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

            GetIamPolicy + *

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

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

            *
              - *
            • listLocations(ListLocationsRequest request) + *

            • getIamPolicy(GetIamPolicyRequest request) + *

            + *

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

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

            • getIamPolicy(String resource) *

            *

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

            *
              - *
            • listLocationsPagedCallable() - *

            • listLocationsCallable() + *

            • getIamPolicyCallable() *

            * * * - *

            GetLocation - *

            Gets information about a location. + *

            SetIamPolicy + *

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

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

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

            *
              - *
            • getLocation(GetLocationRequest request) + *

            • setIamPolicy(SetIamPolicyRequest request) *

            *

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

            *
              - *
            • getLocationCallable() + *

            • setIamPolicyCallable() *

            * * * - *

            SetIamPolicy - *

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

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

            TestIamPermissions + *

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

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

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

            *
              - *
            • setIamPolicy(SetIamPolicyRequest request) + *

            • testIamPermissions(TestIamPermissionsRequest request) *

            *

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

            *
              - *
            • setIamPolicyCallable() + *

            • testIamPermissionsCallable() *

            * * * - *

            GetIamPolicy - *

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

            ListLocations + *

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

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

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

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

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

            *
              - *
            • getIamPolicy(GetIamPolicyRequest request) + *

            • listLocations(ListLocationsRequest request) *

            *

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

            *
              - *
            • getIamPolicyCallable() + *

            • listLocationsPagedCallable() + *

            • listLocationsCallable() *

            * * * - *

            TestIamPermissions - *

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

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

            GetLocation + *

            Gets information about a location. * *

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

            *
              - *
            • testIamPermissions(TestIamPermissionsRequest request) + *

            • getLocation(GetLocationRequest request) *

            *

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

            *
              - *
            • testIamPermissionsCallable() + *

            • getLocationCallable() *

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

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

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

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

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

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

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

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

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

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

            Sample code: - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Sample code: - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Sample code: - * - *

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

            Sample code: - * - *

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

            Sample code: - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Sample code: - * - *

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

            Sample code: - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Sample code: + * + *

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

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

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

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

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

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

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

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

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

            Sample code: + * + *

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

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

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

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

            Sample code: + * + *

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

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

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

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

            Sample code: + * + *

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

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

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

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

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

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

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

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

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

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

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * dataformSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") @@ -232,6 +292,40 @@ public class DataformStubSettings extends StubSettings { .add("https://www.googleapis.com/auth/cloud-platform") .build(); + private final UnaryCallSettings getTeamFolderSettings; + private final UnaryCallSettings createTeamFolderSettings; + private final UnaryCallSettings updateTeamFolderSettings; + private final UnaryCallSettings deleteTeamFolderSettings; + private final UnaryCallSettings + deleteTeamFolderTreeSettings; + private final OperationCallSettings + deleteTeamFolderTreeOperationSettings; + private final PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings getFolderSettings; + private final UnaryCallSettings createFolderSettings; + private final UnaryCallSettings updateFolderSettings; + private final UnaryCallSettings deleteFolderSettings; + private final UnaryCallSettings deleteFolderTreeSettings; + private final OperationCallSettings + deleteFolderTreeOperationSettings; + private final PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings moveFolderSettings; + private final OperationCallSettings + moveFolderOperationSettings; private final PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -239,6 +333,9 @@ public class DataformStubSettings extends StubSettings { private final UnaryCallSettings createRepositorySettings; private final UnaryCallSettings updateRepositorySettings; private final UnaryCallSettings deleteRepositorySettings; + private final UnaryCallSettings moveRepositorySettings; + private final OperationCallSettings + moveRepositoryOperationSettings; private final UnaryCallSettings commitRepositoryChangesSettings; private final UnaryCallSettings @@ -350,14 +447,188 @@ public class DataformStubSettings extends StubSettings { queryWorkflowInvocationActionsSettings; private final UnaryCallSettings getConfigSettings; private final UnaryCallSettings updateConfigSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; + + private static final PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryTeamFolderContentsRequest injectToken( + QueryTeamFolderContentsRequest payload, String token) { + return QueryTeamFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryTeamFolderContentsRequest injectPageSize( + QueryTeamFolderContentsRequest payload, int pageSize) { + return QueryTeamFolderContentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryTeamFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryTeamFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable + extractResources(QueryTeamFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + SEARCH_TEAM_FOLDERS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchTeamFoldersRequest injectToken( + SearchTeamFoldersRequest payload, String token) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchTeamFoldersRequest injectPageSize( + SearchTeamFoldersRequest payload, int pageSize) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchTeamFoldersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchTeamFoldersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchTeamFoldersResponse payload) { + return payload.getResultsList(); + } + }; + + private static final PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + QUERY_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryFolderContentsRequest injectToken( + QueryFolderContentsRequest payload, String token) { + return QueryFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryFolderContentsRequest injectPageSize( + QueryFolderContentsRequest payload, int pageSize) { + return QueryFolderContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryUserRootContentsRequest injectToken( + QueryUserRootContentsRequest payload, String token) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryUserRootContentsRequest injectPageSize( + QueryUserRootContentsRequest payload, int pageSize) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryUserRootContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryUserRootContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryUserRootContentsResponse payload) { + return payload.getEntriesList(); + } + }; private static final PagedListDescriptor< ListRepositoriesRequest, ListRepositoriesResponse, Repository> @@ -882,6 +1153,107 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + QueryTeamFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryTeamFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + SEARCH_TEAM_FOLDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchTeamFoldersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + pageContext = + PageContext.create( + callable, SEARCH_TEAM_FOLDERS_PAGE_STR_DESC, request, context); + return SearchTeamFoldersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + QUERY_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryUserRootContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC, request, context); + return QueryUserRootContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> LIST_REPOSITORIES_PAGE_STR_FACT = @@ -1196,6 +1568,111 @@ public ApiFuture getFuturePagedResponse( } }; + /** Returns the object with the settings used for calls to getTeamFolder. */ + public UnaryCallSettings getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to createTeamFolder. */ + public UnaryCallSettings createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings deleteTeamFolderTreeSettings() { + return deleteTeamFolderTreeSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings + deleteTeamFolderTreeOperationSettings() { + return deleteTeamFolderTreeOperationSettings; + } + + /** Returns the object with the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to searchTeamFolders. */ + public PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the object with the settings used for calls to getFolder. */ + public UnaryCallSettings getFolderSettings() { + return getFolderSettings; + } + + /** Returns the object with the settings used for calls to createFolder. */ + public UnaryCallSettings createFolderSettings() { + return createFolderSettings; + } + + /** Returns the object with the settings used for calls to updateFolder. */ + public UnaryCallSettings updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteFolder. */ + public UnaryCallSettings deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings deleteFolderTreeSettings() { + return deleteFolderTreeSettings; + } + + /** Returns the object with the settings used for calls to deleteFolderTree. */ + public OperationCallSettings + deleteFolderTreeOperationSettings() { + return deleteFolderTreeOperationSettings; + } + + /** Returns the object with the settings used for calls to queryFolderContents. */ + public PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to queryUserRootContents. */ + public PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public UnaryCallSettings moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public OperationCallSettings + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the object with the settings used for calls to listRepositories. */ public PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -1223,6 +1700,17 @@ public UnaryCallSettings deleteRepositorySetting return deleteRepositorySettings; } + /** Returns the object with the settings used for calls to moveRepository. */ + public UnaryCallSettings moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the object with the settings used for calls to moveRepository. */ + public OperationCallSettings + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings commitRepositoryChangesSettings() { @@ -1524,15 +2012,9 @@ public UnaryCallSettings updateConfigSettings() { return updateConfigSettings; } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return getLocationSettings; + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the object with the settings used for calls to setIamPolicy. */ @@ -1540,17 +2022,23 @@ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; } - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + public DataformStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -1660,11 +2148,32 @@ public Builder toBuilder() { protected DataformStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + getTeamFolderSettings = settingsBuilder.getTeamFolderSettings().build(); + createTeamFolderSettings = settingsBuilder.createTeamFolderSettings().build(); + updateTeamFolderSettings = settingsBuilder.updateTeamFolderSettings().build(); + deleteTeamFolderSettings = settingsBuilder.deleteTeamFolderSettings().build(); + deleteTeamFolderTreeSettings = settingsBuilder.deleteTeamFolderTreeSettings().build(); + deleteTeamFolderTreeOperationSettings = + settingsBuilder.deleteTeamFolderTreeOperationSettings().build(); + queryTeamFolderContentsSettings = settingsBuilder.queryTeamFolderContentsSettings().build(); + searchTeamFoldersSettings = settingsBuilder.searchTeamFoldersSettings().build(); + getFolderSettings = settingsBuilder.getFolderSettings().build(); + createFolderSettings = settingsBuilder.createFolderSettings().build(); + updateFolderSettings = settingsBuilder.updateFolderSettings().build(); + deleteFolderSettings = settingsBuilder.deleteFolderSettings().build(); + deleteFolderTreeSettings = settingsBuilder.deleteFolderTreeSettings().build(); + deleteFolderTreeOperationSettings = settingsBuilder.deleteFolderTreeOperationSettings().build(); + queryFolderContentsSettings = settingsBuilder.queryFolderContentsSettings().build(); + queryUserRootContentsSettings = settingsBuilder.queryUserRootContentsSettings().build(); + moveFolderSettings = settingsBuilder.moveFolderSettings().build(); + moveFolderOperationSettings = settingsBuilder.moveFolderOperationSettings().build(); listRepositoriesSettings = settingsBuilder.listRepositoriesSettings().build(); getRepositorySettings = settingsBuilder.getRepositorySettings().build(); createRepositorySettings = settingsBuilder.createRepositorySettings().build(); updateRepositorySettings = settingsBuilder.updateRepositorySettings().build(); deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build(); + moveRepositorySettings = settingsBuilder.moveRepositorySettings().build(); + moveRepositoryOperationSettings = settingsBuilder.moveRepositoryOperationSettings().build(); commitRepositoryChangesSettings = settingsBuilder.commitRepositoryChangesSettings().build(); readRepositoryFileSettings = settingsBuilder.readRepositoryFileSettings().build(); queryRepositoryDirectoryContentsSettings = @@ -1718,11 +2227,11 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.queryWorkflowInvocationActionsSettings().build(); getConfigSettings = settingsBuilder.getConfigSettings().build(); updateConfigSettings = settingsBuilder.updateConfigSettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); } @Override @@ -1730,12 +2239,55 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataform") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } /** Builder for DataformStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getTeamFolderSettings; + private final UnaryCallSettings.Builder + createTeamFolderSettings; + private final UnaryCallSettings.Builder + updateTeamFolderSettings; + private final UnaryCallSettings.Builder + deleteTeamFolderSettings; + private final UnaryCallSettings.Builder + deleteTeamFolderTreeSettings; + private final OperationCallSettings.Builder< + DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteTeamFolderTreeOperationSettings; + private final PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings.Builder getFolderSettings; + private final UnaryCallSettings.Builder createFolderSettings; + private final UnaryCallSettings.Builder updateFolderSettings; + private final UnaryCallSettings.Builder deleteFolderSettings; + private final UnaryCallSettings.Builder + deleteFolderTreeSettings; + private final OperationCallSettings.Builder< + DeleteFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteFolderTreeOperationSettings; + private final PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings.Builder moveFolderSettings; + private final OperationCallSettings.Builder + moveFolderOperationSettings; private final PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -1746,6 +2298,11 @@ public static class Builder extends StubSettings.Builder deleteRepositorySettings; + private final UnaryCallSettings.Builder + moveRepositorySettings; + private final OperationCallSettings.Builder< + MoveRepositoryRequest, Empty, MoveRepositoryMetadata> + moveRepositoryOperationSettings; private final UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesSettings; @@ -1870,14 +2427,14 @@ public static class Builder extends StubSettings.Builder getConfigSettings; private final UnaryCallSettings.Builder updateConfigSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1905,11 +2462,34 @@ protected Builder() { protected Builder(ClientContext clientContext) { super(clientContext); + getTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderTreeOperationSettings = OperationCallSettings.newBuilder(); + queryTeamFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT); + searchTeamFoldersSettings = PagedCallSettings.newBuilder(SEARCH_TEAM_FOLDERS_PAGE_STR_FACT); + getFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderTreeOperationSettings = OperationCallSettings.newBuilder(); + queryFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_FOLDER_CONTENTS_PAGE_STR_FACT); + queryUserRootContentsSettings = + PagedCallSettings.newBuilder(QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT); + moveFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveFolderOperationSettings = OperationCallSettings.newBuilder(); listRepositoriesSettings = PagedCallSettings.newBuilder(LIST_REPOSITORIES_PAGE_STR_FACT); getRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositoryOperationSettings = OperationCallSettings.newBuilder(); commitRepositoryChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); readRepositoryFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryRepositoryDirectoryContentsSettings = @@ -1967,19 +2547,35 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_FACT); getConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + deleteTeamFolderTreeSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + deleteFolderTreeSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2029,22 +2625,43 @@ protected Builder(ClientContext clientContext) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } protected Builder(DataformStubSettings settings) { super(settings); + getTeamFolderSettings = settings.getTeamFolderSettings.toBuilder(); + createTeamFolderSettings = settings.createTeamFolderSettings.toBuilder(); + updateTeamFolderSettings = settings.updateTeamFolderSettings.toBuilder(); + deleteTeamFolderSettings = settings.deleteTeamFolderSettings.toBuilder(); + deleteTeamFolderTreeSettings = settings.deleteTeamFolderTreeSettings.toBuilder(); + deleteTeamFolderTreeOperationSettings = + settings.deleteTeamFolderTreeOperationSettings.toBuilder(); + queryTeamFolderContentsSettings = settings.queryTeamFolderContentsSettings.toBuilder(); + searchTeamFoldersSettings = settings.searchTeamFoldersSettings.toBuilder(); + getFolderSettings = settings.getFolderSettings.toBuilder(); + createFolderSettings = settings.createFolderSettings.toBuilder(); + updateFolderSettings = settings.updateFolderSettings.toBuilder(); + deleteFolderSettings = settings.deleteFolderSettings.toBuilder(); + deleteFolderTreeSettings = settings.deleteFolderTreeSettings.toBuilder(); + deleteFolderTreeOperationSettings = settings.deleteFolderTreeOperationSettings.toBuilder(); + queryFolderContentsSettings = settings.queryFolderContentsSettings.toBuilder(); + queryUserRootContentsSettings = settings.queryUserRootContentsSettings.toBuilder(); + moveFolderSettings = settings.moveFolderSettings.toBuilder(); + moveFolderOperationSettings = settings.moveFolderOperationSettings.toBuilder(); listRepositoriesSettings = settings.listRepositoriesSettings.toBuilder(); getRepositorySettings = settings.getRepositorySettings.toBuilder(); createRepositorySettings = settings.createRepositorySettings.toBuilder(); updateRepositorySettings = settings.updateRepositorySettings.toBuilder(); deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder(); + moveRepositorySettings = settings.moveRepositorySettings.toBuilder(); + moveRepositoryOperationSettings = settings.moveRepositoryOperationSettings.toBuilder(); commitRepositoryChangesSettings = settings.commitRepositoryChangesSettings.toBuilder(); readRepositoryFileSettings = settings.readRepositoryFileSettings.toBuilder(); queryRepositoryDirectoryContentsSettings = @@ -2098,19 +2715,35 @@ protected Builder(DataformStubSettings settings) { settings.queryWorkflowInvocationActionsSettings.toBuilder(); getConfigSettings = settings.getConfigSettings.toBuilder(); updateConfigSettings = settings.updateConfigSettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + deleteTeamFolderTreeSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + deleteFolderTreeSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2160,11 +2793,11 @@ protected Builder(DataformStubSettings settings) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -2192,6 +2825,81 @@ private static Builder createHttpJsonDefault() { } private static Builder initDefaults(Builder builder) { + builder + .getTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTeamFolderTreeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryTeamFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchTeamFoldersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFolderTreeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryUserRootContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .moveFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listRepositoriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2217,6 +2925,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .moveRepositorySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .commitRepositoryChangesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2463,30 +3176,125 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .listLocationsSettings() + .getIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getLocationSettings() + .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .setIamPolicySettings() + .testIamPermissionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getIamPolicySettings() + .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .testIamPermissionsSettings() + .getLocationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .deleteTeamFolderTreeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteFolderTreeMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFolderTreeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteFolderTreeMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .moveFolderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveFolderMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .moveRepositoryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveRepositoryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -2505,6 +3313,118 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to getTeamFolder. */ + public UnaryCallSettings.Builder getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to createTeamFolder. */ + public UnaryCallSettings.Builder + createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings.Builder + updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings.Builder deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public UnaryCallSettings.Builder + deleteTeamFolderTreeSettings() { + return deleteTeamFolderTreeSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */ + public OperationCallSettings.Builder< + DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata> + deleteTeamFolderTreeOperationSettings() { + return deleteTeamFolderTreeOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to searchTeamFolders. */ + public PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the builder for the settings used for calls to getFolder. */ + public UnaryCallSettings.Builder getFolderSettings() { + return getFolderSettings; + } + + /** Returns the builder for the settings used for calls to createFolder. */ + public UnaryCallSettings.Builder createFolderSettings() { + return createFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateFolder. */ + public UnaryCallSettings.Builder updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolder. */ + public UnaryCallSettings.Builder deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public UnaryCallSettings.Builder + deleteFolderTreeSettings() { + return deleteFolderTreeSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolderTree. */ + public OperationCallSettings.Builder + deleteFolderTreeOperationSettings() { + return deleteFolderTreeOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryFolderContents. */ + public PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to queryUserRootContents. */ + public PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public UnaryCallSettings.Builder moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public OperationCallSettings.Builder + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the builder for the settings used for calls to listRepositories. */ public PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -2534,6 +3454,17 @@ public UnaryCallSettings.Builder deleteRepositor return deleteRepositorySettings; } + /** Returns the builder for the settings used for calls to moveRepository. */ + public UnaryCallSettings.Builder moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the builder for the settings used for calls to moveRepository. */ + public OperationCallSettings.Builder + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> @@ -2851,16 +3782,9 @@ public UnaryCallSettings.Builder updateConfigSettin return updateConfigSettings; } - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getLocationSettings; + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the builder for the settings used for calls to setIamPolicy. */ @@ -2868,17 +3792,24 @@ public UnaryCallSettings.Builder setIamPolicySettin return setIamPolicySettings; } - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + @Override public DataformStubSettings build() throws IOException { return new DataformStubSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java index f39a1ecb2700..9cc95b99e6ef 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java @@ -26,15 +26,20 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest; @@ -48,13 +53,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -68,10 +80,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -95,6 +110,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -103,8 +122,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -121,9 +146,14 @@ import com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -139,6 +169,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -155,6 +186,167 @@ */ @Generated("by gapic-generator-java") public class GrpcDataformStub extends DataformStub { + private static final MethodDescriptor + getTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTeamFolderTreeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTeamFolderTreeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryTeamFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchTeamFoldersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/SearchTeamFolders") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetFolder") + .setRequestMarshaller(ProtoUtils.marshaller(GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(CreateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolder") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteFolderTreeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolderTree") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFolderTreeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryFolderContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryUserRootContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryUserRootContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor moveFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveFolder") + .setRequestMarshaller(ProtoUtils.marshaller(MoveFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listRepositoriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -211,6 +403,17 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + moveRepositoryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveRepository") + .setRequestMarshaller( + ProtoUtils.marshaller(MoveRepositoryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -801,50 +1004,29 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setFullMethodName("google.cloud.dataform.v1.Dataform/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setFullMethodName("google.cloud.dataform.v1.Dataform/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( @@ -852,6 +1034,60 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable deleteTeamFolderTreeCallable; + private final OperationCallable + deleteTeamFolderTreeOperationCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable deleteFolderTreeCallable; + private final OperationCallable + deleteFolderTreeOperationCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -860,6 +1096,9 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -967,14 +1206,14 @@ public class GrpcDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1015,6 +1254,176 @@ protected GrpcDataformStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings getTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteTeamFolderTreeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryTeamFolderContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTeamFolder()) + .build(); + GrpcCallSettings + searchTeamFoldersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + GrpcCallSettings getFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteFolderTreeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderTreeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryFolderContentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getFolder()) + .build(); + GrpcCallSettings + queryUserRootContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + GrpcCallSettings moveFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listRepositoriesTransportSettings = GrpcCallSettings.newBuilder() @@ -1025,6 +1434,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1035,6 +1445,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1045,6 +1456,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1065,6 +1477,18 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings moveRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitRepositoryChangesTransportSettings = @@ -1077,6 +1501,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings readRepositoryFileTransportSettings = @@ -1088,6 +1513,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -1102,6 +1528,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRepositoryHistoryTransportSettings = @@ -1114,6 +1541,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -1129,6 +1557,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRemoteBranchesTransportSettings = @@ -1140,6 +1569,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkspacesTransportSettings = @@ -1151,6 +1581,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1161,6 +1592,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1171,6 +1603,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1181,6 +1614,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings installNpmPackagesTransportSettings = @@ -1192,6 +1626,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings pullGitCommitsTransportSettings = @@ -1203,6 +1638,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings pushGitCommitsTransportSettings = @@ -1214,6 +1650,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileGitStatusesTransportSettings = @@ -1225,6 +1662,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchGitAheadBehindTransportSettings = @@ -1236,6 +1674,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitWorkspaceChangesTransportSettings = @@ -1248,6 +1687,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings resetWorkspaceChangesTransportSettings = @@ -1260,6 +1700,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileDiffTransportSettings = GrpcCallSettings.newBuilder() @@ -1270,6 +1711,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings queryDirectoryContentsTransportSettings = @@ -1282,6 +1724,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings searchFilesTransportSettings = GrpcCallSettings.newBuilder() @@ -1292,6 +1735,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings makeDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1302,6 +1746,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeDirectoryTransportSettings = @@ -1313,6 +1758,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1323,6 +1769,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings readFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1333,6 +1780,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1343,6 +1791,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1353,6 +1802,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings writeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1363,6 +1813,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings listReleaseConfigsTransportSettings = @@ -1374,6 +1825,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getReleaseConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1384,6 +1836,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createReleaseConfigTransportSettings = @@ -1395,6 +1848,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateReleaseConfigTransportSettings = @@ -1418,6 +1872,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listCompilationResultsTransportSettings = @@ -1430,6 +1885,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getCompilationResultTransportSettings = @@ -1441,6 +1897,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createCompilationResultTransportSettings = @@ -1452,6 +1909,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings queryCompilationResultActionsTransportSettings = @@ -1465,6 +1923,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowConfigsTransportSettings = @@ -1476,6 +1935,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1486,6 +1946,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowConfigTransportSettings = @@ -1497,6 +1958,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateWorkflowConfigTransportSettings = @@ -1520,6 +1982,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowInvocationsTransportSettings = @@ -1532,6 +1995,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowInvocationTransportSettings = @@ -1543,6 +2007,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowInvocationTransportSettings = @@ -1554,6 +2019,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkflowInvocationTransportSettings = @@ -1565,6 +2031,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelWorkflowInvocationTransportSettings = @@ -1577,6 +2044,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryWorkflowInvocationActionsTransportSettings = @@ -1590,6 +2058,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1600,6 +2069,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1611,25 +2081,16 @@ protected GrpcDataformStub( return builder.build(); }) .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1640,16 +2101,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -1661,8 +2113,122 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.deleteTeamFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeSettings(), + clientContext); + this.deleteTeamFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeOperationSettings(), + clientContext, + operationsStub); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.deleteFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext); + this.deleteFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteFolderTreeTransportSettings, + settings.deleteFolderTreeOperationSettings(), + clientContext, + operationsStub); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + operationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -1681,6 +2247,15 @@ protected GrpcDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + operationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -1941,26 +2516,26 @@ protected GrpcDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1970,6 +2545,127 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderTreeCallable() { + return deleteTeamFolderTreeCallable; + } + + @Override + public OperationCallable + deleteTeamFolderTreeOperationCallable() { + return deleteTeamFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable deleteFolderTreeCallable() { + return deleteFolderTreeCallable; + } + + @Override + public OperationCallable + deleteFolderTreeOperationCallable() { + return deleteFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -2002,6 +2698,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -2342,35 +3049,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java index b303ccf12444..43b09613460f 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java @@ -26,20 +26,28 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; +import com.google.api.HttpRule; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.httpjson.ApiMethodDescriptor; import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest; @@ -53,13 +61,20 @@ import com.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1.Config; import com.google.cloud.dataform.v1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1.CreateFolderRequest; import com.google.cloud.dataform.v1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; import com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1.DeleteWorkspaceRequest; @@ -73,10 +88,13 @@ import com.google.cloud.dataform.v1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1.Folder; import com.google.cloud.dataform.v1.GetCompilationResultRequest; import com.google.cloud.dataform.v1.GetConfigRequest; +import com.google.cloud.dataform.v1.GetFolderRequest; import com.google.cloud.dataform.v1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1.GetRepositoryRequest; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; import com.google.cloud.dataform.v1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1.GetWorkspaceRequest; @@ -100,6 +118,10 @@ import com.google.cloud.dataform.v1.MoveDirectoryResponse; import com.google.cloud.dataform.v1.MoveFileRequest; import com.google.cloud.dataform.v1.MoveFileResponse; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; import com.google.cloud.dataform.v1.PullGitCommitsRequest; import com.google.cloud.dataform.v1.PullGitCommitsResponse; import com.google.cloud.dataform.v1.PushGitCommitsRequest; @@ -108,8 +130,14 @@ import com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1.ReadFileRequest; @@ -126,9 +154,14 @@ import com.google.cloud.dataform.v1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1.SearchFilesRequest; import com.google.cloud.dataform.v1.SearchFilesResponse; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1.TeamFolder; import com.google.cloud.dataform.v1.UpdateConfigRequest; +import com.google.cloud.dataform.v1.UpdateFolderRequest; import com.google.cloud.dataform.v1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1.WorkflowConfig; import com.google.cloud.dataform.v1.WorkflowInvocation; @@ -139,11 +172,13 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -162,7 +197,576 @@ */ @Generated("by gapic-generator-java") public class HttpJsonDataformStub extends DataformStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(MoveFolderMetadata.getDescriptor()) + .add(MoveRepositoryMetadata.getDescriptor()) + .add(DeleteFolderTreeMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetTeamFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateTeamFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/teamFolders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateTeamFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{teamFolder.name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "teamFolder.name", request.getTeamFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTeamFolderTreeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteTeamFolderTreeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryTeamFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{teamFolder=projects/*/locations/*/teamFolders/*}:queryContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "teamFolder", request.getTeamFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTeamFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchTeamFoldersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/SearchTeamFolders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{location=projects/*/locations/*}/teamFolders:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchTeamFoldersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/folders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/UpdateFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{folder.name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "folder.name", request.getFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFolderTreeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/DeleteFolderTree") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}:deleteTree", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFolderTreeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + queryFolderContentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "folder", request.getFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryUserRootContentsRequest, QueryUserRootContentsResponse> + queryUserRootContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/QueryUserRootContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{location=projects/*/locations/*}:queryUserRootContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryUserRootContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + moveFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/folders/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveFolderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); private static final ApiMethodDescriptor listRepositoriesMethodDescriptor = @@ -349,6 +953,46 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + moveRepositoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/MoveRepository") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/repositories/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveRepositoryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -1049,6 +1693,7 @@ public class HttpJsonDataformStub extends DataformStub { serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "path", request.getPath()); + serializer.putQueryParam(fields, "view", request.getViewValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2172,97 +2817,111 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/GetIamPolicy") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*}/locations", + "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/SetIamPolicy") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*}", + "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Location.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/TestIamPermissions") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy") + "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2273,35 +2932,33 @@ public class HttpJsonDataformStub extends DataformStub { .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", + "/v1/{name=projects/*}/locations", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2309,51 +2966,79 @@ public class HttpJsonDataformStub extends DataformStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") - .setHttpMethod("POST") + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", + "/v1/{name=projects/*/locations/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable deleteTeamFolderTreeCallable; + private final OperationCallable + deleteTeamFolderTreeOperationCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable deleteFolderTreeCallable; + private final OperationCallable + deleteFolderTreeOperationCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -2362,6 +3047,9 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -2469,16 +3157,17 @@ public class HttpJsonDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonDataformStub create(DataformStubSettings settings) @@ -2518,7 +3207,221 @@ protected HttpJsonDataformStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings getTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + deleteTeamFolderTreeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryTeamFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getTeamFolder()) + .build(); + HttpJsonCallSettings + searchTeamFoldersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + HttpJsonCallSettings getFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteFolderTreeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderTreeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getFolder()) + .build(); + HttpJsonCallSettings + queryUserRootContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); + HttpJsonCallSettings moveFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listRepositoriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2530,6 +3433,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2541,6 +3445,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2552,6 +3457,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2574,6 +3480,19 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings moveRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitRepositoryChangesTransportSettings = @@ -2587,6 +3506,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings readRepositoryFileTransportSettings = @@ -2599,6 +3519,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -2614,6 +3535,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRepositoryHistoryTransportSettings = @@ -2627,6 +3549,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -2643,6 +3566,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRemoteBranchesTransportSettings = @@ -2656,6 +3580,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkspacesTransportSettings = @@ -2668,6 +3593,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2679,6 +3605,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2690,6 +3617,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2701,6 +3629,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings installNpmPackagesTransportSettings = @@ -2713,6 +3642,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings pullGitCommitsTransportSettings = @@ -2725,6 +3655,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings pushGitCommitsTransportSettings = @@ -2737,6 +3668,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileGitStatusesTransportSettings = @@ -2750,6 +3682,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchGitAheadBehindTransportSettings = @@ -2763,6 +3696,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitWorkspaceChangesTransportSettings = @@ -2776,6 +3710,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings resetWorkspaceChangesTransportSettings = @@ -2789,6 +3724,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileDiffTransportSettings = @@ -2801,6 +3737,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings queryDirectoryContentsTransportSettings = @@ -2814,6 +3751,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings searchFilesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2825,6 +3763,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings makeDirectoryTransportSettings = @@ -2837,6 +3776,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeDirectoryTransportSettings = @@ -2849,6 +3789,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveDirectoryTransportSettings = @@ -2861,6 +3802,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings readFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2872,6 +3814,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2883,6 +3826,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2894,6 +3838,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings writeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2905,6 +3850,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings listReleaseConfigsTransportSettings = @@ -2917,6 +3863,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getReleaseConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2928,6 +3875,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createReleaseConfigTransportSettings = @@ -2940,6 +3888,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateReleaseConfigTransportSettings = @@ -2965,6 +3914,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listCompilationResultsTransportSettings = @@ -2978,6 +3928,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getCompilationResultTransportSettings = @@ -2990,6 +3941,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createCompilationResultTransportSettings = @@ -3002,6 +3954,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> @@ -3017,6 +3970,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowConfigsTransportSettings = @@ -3030,6 +3984,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowConfigTransportSettings = @@ -3042,6 +3997,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowConfigTransportSettings = @@ -3054,6 +4010,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateWorkflowConfigTransportSettings = @@ -3079,6 +4036,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowInvocationsTransportSettings = @@ -3092,6 +4050,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowInvocationTransportSettings = @@ -3104,6 +4063,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowInvocationTransportSettings = @@ -3116,6 +4076,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkflowInvocationTransportSettings = @@ -3128,6 +4089,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelWorkflowInvocationTransportSettings = @@ -3141,6 +4103,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> @@ -3156,6 +4119,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3167,6 +4131,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3179,28 +4144,17 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3212,17 +4166,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -3235,8 +4179,125 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.deleteTeamFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeSettings(), + clientContext); + this.deleteTeamFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteTeamFolderTreeTransportSettings, + settings.deleteTeamFolderTreeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.deleteFolderTreeCallable = + callableFactory.createUnaryCallable( + deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext); + this.deleteFolderTreeOperationCallable = + callableFactory.createOperationCallable( + deleteFolderTreeTransportSettings, + settings.deleteFolderTreeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -3255,6 +4316,15 @@ protected HttpJsonDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + httpJsonOperationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -3515,26 +4585,26 @@ protected HttpJsonDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -3543,11 +4613,27 @@ protected HttpJsonDataformStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getTeamFolderMethodDescriptor); + methodDescriptors.add(createTeamFolderMethodDescriptor); + methodDescriptors.add(updateTeamFolderMethodDescriptor); + methodDescriptors.add(deleteTeamFolderMethodDescriptor); + methodDescriptors.add(deleteTeamFolderTreeMethodDescriptor); + methodDescriptors.add(queryTeamFolderContentsMethodDescriptor); + methodDescriptors.add(searchTeamFoldersMethodDescriptor); + methodDescriptors.add(getFolderMethodDescriptor); + methodDescriptors.add(createFolderMethodDescriptor); + methodDescriptors.add(updateFolderMethodDescriptor); + methodDescriptors.add(deleteFolderMethodDescriptor); + methodDescriptors.add(deleteFolderTreeMethodDescriptor); + methodDescriptors.add(queryFolderContentsMethodDescriptor); + methodDescriptors.add(queryUserRootContentsMethodDescriptor); + methodDescriptors.add(moveFolderMethodDescriptor); methodDescriptors.add(listRepositoriesMethodDescriptor); methodDescriptors.add(getRepositoryMethodDescriptor); methodDescriptors.add(createRepositoryMethodDescriptor); methodDescriptors.add(updateRepositoryMethodDescriptor); methodDescriptors.add(deleteRepositoryMethodDescriptor); + methodDescriptors.add(moveRepositoryMethodDescriptor); methodDescriptors.add(commitRepositoryChangesMethodDescriptor); methodDescriptors.add(readRepositoryFileMethodDescriptor); methodDescriptors.add(queryRepositoryDirectoryContentsMethodDescriptor); @@ -3597,14 +4683,139 @@ public static List getMethodDescriptors() { methodDescriptors.add(queryWorkflowInvocationActionsMethodDescriptor); methodDescriptors.add(getConfigMethodDescriptor); methodDescriptors.add(updateConfigMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; } + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderTreeCallable() { + return deleteTeamFolderTreeCallable; + } + + @Override + public OperationCallable + deleteTeamFolderTreeOperationCallable() { + return deleteTeamFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable deleteFolderTreeCallable() { + return deleteFolderTreeCallable; + } + + @Override + public OperationCallable + deleteFolderTreeOperationCallable() { + return deleteFolderTreeOperationCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -3637,6 +4848,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -3977,35 +5199,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java new file mode 100644 index 000000000000..07c281f382e8 --- /dev/null +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataform:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index 609ace274100..c6f2a230c9a8 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -2203,6 +2203,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataform") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index eeaa0a03de7b..6b38431ce657 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -1236,6 +1236,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createTeamFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1246,6 +1247,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateTeamFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1267,6 +1269,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryTeamFolderContentsTransportSettings = @@ -1279,6 +1282,7 @@ protected GrpcDataformStub( builder.add("team_folder", String.valueOf(request.getTeamFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTeamFolder()) .build(); GrpcCallSettings searchTeamFoldersTransportSettings = @@ -1290,6 +1294,7 @@ protected GrpcDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); GrpcCallSettings getFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1300,6 +1305,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1310,6 +1316,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1330,6 +1337,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryFolderContentsTransportSettings = @@ -1341,6 +1349,7 @@ protected GrpcDataformStub( builder.add("folder", String.valueOf(request.getFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getFolder()) .build(); GrpcCallSettings queryUserRootContentsTransportSettings = @@ -1353,6 +1362,7 @@ protected GrpcDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); GrpcCallSettings moveFolderTransportSettings = GrpcCallSettings.newBuilder() @@ -1363,6 +1373,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listRepositoriesTransportSettings = @@ -1374,6 +1385,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1384,6 +1396,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1394,6 +1407,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1414,6 +1428,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings moveRepositoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1424,6 +1439,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitRepositoryChangesTransportSettings = @@ -1436,6 +1452,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings readRepositoryFileTransportSettings = @@ -1447,6 +1464,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -1461,6 +1479,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRepositoryHistoryTransportSettings = @@ -1473,6 +1492,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -1488,6 +1508,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchRemoteBranchesTransportSettings = @@ -1499,6 +1520,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkspacesTransportSettings = @@ -1510,6 +1532,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1520,6 +1543,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1530,6 +1554,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() @@ -1540,6 +1565,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings installNpmPackagesTransportSettings = @@ -1551,6 +1577,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings pullGitCommitsTransportSettings = @@ -1562,6 +1589,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings pushGitCommitsTransportSettings = @@ -1573,6 +1601,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileGitStatusesTransportSettings = @@ -1584,6 +1613,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchGitAheadBehindTransportSettings = @@ -1595,6 +1625,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings commitWorkspaceChangesTransportSettings = @@ -1607,6 +1638,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings resetWorkspaceChangesTransportSettings = @@ -1619,6 +1651,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings fetchFileDiffTransportSettings = GrpcCallSettings.newBuilder() @@ -1629,6 +1662,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings queryDirectoryContentsTransportSettings = @@ -1641,6 +1675,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings searchFilesTransportSettings = GrpcCallSettings.newBuilder() @@ -1651,6 +1686,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings makeDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1661,6 +1697,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeDirectoryTransportSettings = @@ -1672,6 +1709,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveDirectoryTransportSettings = GrpcCallSettings.newBuilder() @@ -1682,6 +1720,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings readFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1692,6 +1731,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings removeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1702,6 +1742,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings moveFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1712,6 +1753,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings writeFileTransportSettings = GrpcCallSettings.newBuilder() @@ -1722,6 +1764,7 @@ protected GrpcDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); GrpcCallSettings listReleaseConfigsTransportSettings = @@ -1733,6 +1776,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getReleaseConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1743,6 +1787,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createReleaseConfigTransportSettings = @@ -1754,6 +1799,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateReleaseConfigTransportSettings = @@ -1777,6 +1823,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listCompilationResultsTransportSettings = @@ -1789,6 +1836,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getCompilationResultTransportSettings = @@ -1800,6 +1848,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createCompilationResultTransportSettings = @@ -1811,6 +1860,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings queryCompilationResultActionsTransportSettings = @@ -1824,6 +1874,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowConfigsTransportSettings = @@ -1835,6 +1886,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1845,6 +1897,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowConfigTransportSettings = @@ -1856,6 +1909,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateWorkflowConfigTransportSettings = @@ -1879,6 +1933,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listWorkflowInvocationsTransportSettings = @@ -1891,6 +1946,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getWorkflowInvocationTransportSettings = @@ -1902,6 +1958,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createWorkflowInvocationTransportSettings = @@ -1913,6 +1970,7 @@ protected GrpcDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteWorkflowInvocationTransportSettings = @@ -1924,6 +1982,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelWorkflowInvocationTransportSettings = @@ -1936,6 +1995,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings queryWorkflowInvocationActionsTransportSettings = @@ -1949,6 +2009,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1959,6 +2020,7 @@ protected GrpcDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -1979,6 +2041,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1989,6 +2052,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -2000,6 +2064,7 @@ protected GrpcDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index cd546c3392b8..854ccedcfc0c 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -3161,6 +3161,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createTeamFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3172,6 +3173,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateTeamFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3195,6 +3197,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings queryTeamFolderContentsTransportSettings = @@ -3208,6 +3211,7 @@ protected HttpJsonDataformStub( builder.add("team_folder", String.valueOf(request.getTeamFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getTeamFolder()) .build(); HttpJsonCallSettings searchTeamFoldersTransportSettings = @@ -3220,6 +3224,7 @@ protected HttpJsonDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); HttpJsonCallSettings getFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3231,6 +3236,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3242,6 +3248,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3264,6 +3271,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings queryFolderContentsTransportSettings = @@ -3277,6 +3285,7 @@ protected HttpJsonDataformStub( builder.add("folder", String.valueOf(request.getFolder())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getFolder()) .build(); HttpJsonCallSettings queryUserRootContentsTransportSettings = @@ -3290,6 +3299,7 @@ protected HttpJsonDataformStub( builder.add("location", String.valueOf(request.getLocation())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getLocation()) .build(); HttpJsonCallSettings moveFolderTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3301,6 +3311,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listRepositoriesTransportSettings = @@ -3313,6 +3324,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3324,6 +3336,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3335,6 +3348,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3357,6 +3371,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings moveRepositoryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3368,6 +3383,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitRepositoryChangesTransportSettings = @@ -3381,6 +3397,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings readRepositoryFileTransportSettings = @@ -3393,6 +3410,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> @@ -3408,6 +3426,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRepositoryHistoryTransportSettings = @@ -3421,6 +3440,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> @@ -3437,6 +3457,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchRemoteBranchesTransportSettings = @@ -3450,6 +3471,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkspacesTransportSettings = @@ -3462,6 +3484,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3473,6 +3496,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3484,6 +3508,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3495,6 +3520,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings installNpmPackagesTransportSettings = @@ -3507,6 +3533,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings pullGitCommitsTransportSettings = @@ -3519,6 +3546,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings pushGitCommitsTransportSettings = @@ -3531,6 +3559,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileGitStatusesTransportSettings = @@ -3544,6 +3573,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchGitAheadBehindTransportSettings = @@ -3557,6 +3587,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings commitWorkspaceChangesTransportSettings = @@ -3570,6 +3601,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings resetWorkspaceChangesTransportSettings = @@ -3583,6 +3615,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings fetchFileDiffTransportSettings = @@ -3595,6 +3628,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings queryDirectoryContentsTransportSettings = @@ -3608,6 +3642,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings searchFilesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3619,6 +3654,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings makeDirectoryTransportSettings = @@ -3631,6 +3667,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeDirectoryTransportSettings = @@ -3643,6 +3680,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveDirectoryTransportSettings = @@ -3655,6 +3693,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings readFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3666,6 +3705,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings removeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3677,6 +3717,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings moveFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3688,6 +3729,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings writeFileTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3699,6 +3741,7 @@ protected HttpJsonDataformStub( builder.add("workspace", String.valueOf(request.getWorkspace())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getWorkspace()) .build(); HttpJsonCallSettings listReleaseConfigsTransportSettings = @@ -3711,6 +3754,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getReleaseConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3722,6 +3766,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createReleaseConfigTransportSettings = @@ -3734,6 +3779,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateReleaseConfigTransportSettings = @@ -3759,6 +3805,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listCompilationResultsTransportSettings = @@ -3772,6 +3819,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getCompilationResultTransportSettings = @@ -3784,6 +3832,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createCompilationResultTransportSettings = @@ -3796,6 +3845,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> @@ -3811,6 +3861,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowConfigsTransportSettings = @@ -3824,6 +3875,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowConfigTransportSettings = @@ -3836,6 +3888,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowConfigTransportSettings = @@ -3848,6 +3901,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateWorkflowConfigTransportSettings = @@ -3873,6 +3927,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listWorkflowInvocationsTransportSettings = @@ -3886,6 +3941,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getWorkflowInvocationTransportSettings = @@ -3898,6 +3954,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createWorkflowInvocationTransportSettings = @@ -3910,6 +3967,7 @@ protected HttpJsonDataformStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteWorkflowInvocationTransportSettings = @@ -3922,6 +3980,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelWorkflowInvocationTransportSettings = @@ -3935,6 +3994,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> @@ -3950,6 +4010,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3961,6 +4022,7 @@ protected HttpJsonDataformStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3983,6 +4045,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3994,6 +4057,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -4006,6 +4070,7 @@ protected HttpJsonDataformStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings listLocationsTransportSettings = diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java new file mode 100644 index 000000000000..12397ce66a57 --- /dev/null +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataform:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json index 75d7a6fbe5a1..4d1779e6ce59 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -881,6 +944,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$FileFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$IncrementalTableConfig", "queryAllDeclaredConstructors": true, @@ -908,6 +980,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CompilationResultAction$Relation$TableFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CompilationResultAction$SimpleLoadMode", "queryAllDeclaredConstructors": true, @@ -1008,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest", + "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.CreateTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DataEncryptionState", + "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DataEncryptionState$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest", + "name": "com.google.cloud.dataform.v1.DataEncryptionState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.DataEncryptionState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeMetadata$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectoryEntry", + "name": "com.google.cloud.dataform.v1.DeleteFolderTreeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectoryEntry$Builder", + "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectorySearchResult", + "name": "com.google.cloud.dataform.v1.DeleteReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.DirectorySearchResult$Builder", + "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest", + "name": "com.google.cloud.dataform.v1.DeleteRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse$Builder", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest", + "name": "com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange", + "name": "com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", + "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$State", + "name": "com.google.cloud.dataform.v1.DeleteWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest", + "name": "com.google.cloud.dataform.v1.DirectoryContentsView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest$Builder", + "name": "com.google.cloud.dataform.v1.DirectoryEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse", + "name": "com.google.cloud.dataform.v1.DirectoryEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse$Builder", + "name": "com.google.cloud.dataform.v1.DirectorySearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest", + "name": "com.google.cloud.dataform.v1.DirectorySearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse", + "name": "com.google.cloud.dataform.v1.FetchFileDiffRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest", + "name": "com.google.cloud.dataform.v1.FetchFileDiffResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FileSearchResult", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.FileSearchResult$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchFileGitStatusesResponse$UncommittedFileChange$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchGitAheadBehindResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetRepositoryRequest", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetRepositoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRemoteBranchesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest$Builder", + "name": "com.google.cloud.dataform.v1.FetchRepositoryHistoryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest", + "name": "com.google.cloud.dataform.v1.FileSearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest$Builder", + "name": "com.google.cloud.dataform.v1.FileSearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse", + "name": "com.google.cloud.dataform.v1.FilesystemEntryMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse$Builder", + "name": "com.google.cloud.dataform.v1.FilesystemEntryMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InvocationConfig", + "name": "com.google.cloud.dataform.v1.Folder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.InvocationConfig$Builder", + "name": "com.google.cloud.dataform.v1.Folder$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest", + "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetCompilationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse", + "name": "com.google.cloud.dataform.v1.GetConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest", + "name": "com.google.cloud.dataform.v1.GetFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse", + "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest", + "name": "com.google.cloud.dataform.v1.GetRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse", + "name": "com.google.cloud.dataform.v1.GetTeamFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetTeamFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest", + "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkflowConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse", + "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkflowInvocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest", + "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest$Builder", + "name": "com.google.cloud.dataform.v1.GetWorkspaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse$Builder", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest$Builder", + "name": "com.google.cloud.dataform.v1.InstallNpmPackagesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse", + "name": "com.google.cloud.dataform.v1.InvocationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse$Builder", + "name": "com.google.cloud.dataform.v1.InvocationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest", + "name": "com.google.cloud.dataform.v1.InvocationConfig$QueryPriority", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest", + "name": "com.google.cloud.dataform.v1.ListCompilationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileRequest", + "name": "com.google.cloud.dataform.v1.ListReleaseConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2025,502 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileRequest$Builder", + "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListRepositoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.ListWorkspacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MakeDirectoryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveDirectoryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFileResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.MoveRepositoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PrivateResourceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PrivateResourceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileResponse", + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.MoveFileResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.NotebookRuntimeOptions$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$FolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PullGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryFolderContentsResponse$FolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.PushGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$RootContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1.QueryUserRootContentsResponse$RootContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2591,6 +3167,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$TeamFolderSearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.SearchTeamFoldersResponse$TeamFolderSearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.Target", "queryAllDeclaredConstructors": true, @@ -2609,6 +3239,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.TeamFolder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.TeamFolder$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateConfigRequest", "queryAllDeclaredConstructors": true, @@ -2627,6 +3275,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.UpdateFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.UpdateFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateReleaseConfigRequest", "queryAllDeclaredConstructors": true, @@ -2663,6 +3329,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.UpdateTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.UpdateTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -3284,6 +3968,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 35421136b9ca..d6134dd8a489 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -116,6 +170,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java index 38d89748398c..90a541dd25fb 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -39,6 +43,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1.stub.HttpJsonDataformStub; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -47,12 +52,11 @@ import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; @@ -64,6 +68,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -106,6 +111,1377 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + client.deleteTeamFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderTreeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteTeamFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTeamFolderTreeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryTeamFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String teamFolder = "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryTeamFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String teamFolder = + "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchTeamFoldersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + client.deleteFolder(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderTreeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFolderTreeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryUserRootContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String location = "projects/project-7132/locations/location-7132"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryUserRootContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String location = "projects/project-7132/locations/location-7132"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -211,6 +1587,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -268,6 +1646,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -325,6 +1705,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -386,6 +1768,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -447,6 +1831,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -466,6 +1852,8 @@ public void updateRepositoryTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -511,6 +1899,8 @@ public void updateRepositoryExceptionTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -613,6 +2003,100 @@ public void deleteRepositoryExceptionTest2() throws Exception { } } + @Test + public void moveRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveRepositoryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveRepositoryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void commitRepositoryChangesTest() throws Exception { CommitRepositoryChangesResponse expectedResponse = @@ -1053,6 +2537,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1103,6 +2589,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1154,6 +2642,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1207,6 +2697,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1790,6 +3282,7 @@ public void queryDirectoryContentsTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); @@ -1830,6 +3323,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); client.queryDirectoryContents(request); Assert.fail("No exception raised"); @@ -2924,6 +4418,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2981,6 +4476,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3037,6 +4533,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3093,6 +4590,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3852,6 +5350,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3911,6 +5410,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3968,6 +5468,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4025,6 +5526,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4280,6 +5782,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4325,6 +5828,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4370,6 +5874,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4377,6 +5882,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4410,6 +5916,7 @@ public void updateConfigExceptionTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConfig(config, updateMask); @@ -4420,29 +5927,20 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4460,21 +5958,15 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4482,23 +5974,19 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); + String resource = "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4517,18 +6005,16 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); + String resource = + "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4548,7 +6034,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4581,7 +6067,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4593,23 +6079,18 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); mockService.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4628,19 +6109,19 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4648,18 +6129,85 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4678,19 +6226,18 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void getLocationExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") .build(); - client.testIamPermissions(request); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java index 3e04b0485aaf..7667c8110464 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -37,6 +41,8 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -45,11 +51,11 @@ import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -64,6 +70,7 @@ import java.util.HashMap; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -115,6 +122,1220 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTeamFolderRequest actualRequest = ((UpdateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderTreeRequest actualRequest = + ((DeleteTeamFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderTreeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteTeamFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteTeamFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + boolean force = true; + + client.deleteTeamFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderTreeRequest actualRequest = + ((DeleteTeamFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderTreeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteTeamFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder.toString(), actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String teamFolder = "teamFolder-1872604885"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String teamFolder = "teamFolder-1872604885"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchTeamFoldersRequest actualRequest = ((SearchTeamFoldersRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchTeamFoldersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFolderRequest actualRequest = ((UpdateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTreeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderTreeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFolderTreeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFolderTreeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + boolean force = true; + + client.deleteFolderTreeAsync(name, force).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(force, actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderTreeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + boolean force = true; + client.deleteFolderTreeAsync(name, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder.toString(), actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String folder = "folder-1268966290"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String folder = "folder-1268966290"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location.toString(), actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String location = "location1901043637"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String location = "location1901043637"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -208,6 +1429,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -259,6 +1482,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -310,6 +1535,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -367,6 +1594,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -424,6 +1653,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -440,18 +1671,87 @@ public void updateRepositoryTest() throws Exception { .build(); mockDataform.addResponse(expectedResponse); - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Repository actualResponse = client.updateRepository(repository, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(repository, actualRequest.getRepository()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRepository(repository, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + client.deleteRepository(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.deleteRepository(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; - Repository actualResponse = client.updateRepository(repository, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteRepository(name); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -459,14 +1759,13 @@ public void updateRepositoryTest() throws Exception { } @Test - public void updateRepositoryExceptionTest() throws Exception { + public void deleteRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRepository(repository, updateMask); + String name = "name3373707"; + client.deleteRepository(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -474,19 +1773,28 @@ public void updateRepositoryExceptionTest() throws Exception { } @Test - public void deleteRepositoryTest() throws Exception { + public void moveRepositoryTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -494,33 +1802,45 @@ public void deleteRepositoryTest() throws Exception { } @Test - public void deleteRepositoryExceptionTest() throws Exception { + public void moveRepositoryExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void deleteRepositoryTest2() throws Exception { + public void moveRepositoryTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -528,16 +1848,19 @@ public void deleteRepositoryTest2() throws Exception { } @Test - public void deleteRepositoryExceptionTest2() throws Exception { + public void moveRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String name = "name3373707"; - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -949,6 +2272,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -993,6 +2318,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1036,6 +2363,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1085,6 +2414,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1615,6 +2946,7 @@ public void queryDirectoryContentsTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request); @@ -1633,6 +2965,7 @@ public void queryDirectoryContentsTest() throws Exception { Assert.assertEquals(request.getPath(), actualRequest.getPath()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getView(), actualRequest.getView()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1653,6 +2986,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); client.queryDirectoryContents(request); Assert.fail("No exception raised"); @@ -2615,6 +3949,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2667,6 +4002,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2716,6 +4052,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2768,6 +4105,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3426,6 +4764,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3480,6 +4819,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3530,6 +4870,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3583,6 +4924,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3814,6 +5156,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3853,6 +5196,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3892,6 +5236,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3929,38 +5274,26 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); + mockDataform.addResponse(expectedResponse); - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(resource.toString(), actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3968,19 +5301,13 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3988,27 +5315,26 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); - mockLocations.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + String resource = "resource-341064690"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(resource, actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4016,13 +5342,13 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); + String resource = "resource-341064690"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4038,11 +5364,11 @@ public void setIamPolicyTest() throws Exception { .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); - mockIAMPolicy.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4050,7 +5376,7 @@ public void setIamPolicyTest() throws Exception { Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); @@ -4066,12 +5392,12 @@ public void setIamPolicyTest() throws Exception { @Test public void setIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4083,31 +5409,26 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAMPolicy.addResponse(expectedResponse); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockDataform.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4115,17 +5436,17 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4133,26 +5454,38 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAMPolicy.addResponse(expectedResponse); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4160,17 +5493,61 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void listLocationsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockLocations.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - client.testIamPermissions(request); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java index dbb00ef5016b..be376e950fc9 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java @@ -18,6 +18,12 @@ import com.google.api.core.BetaApi; import com.google.cloud.dataform.v1.DataformGrpc.DataformImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; @@ -59,6 +65,323 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void getTeamFolder( + GetTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTeamFolder( + CreateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTeamFolder( + UpdateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTeamFolder( + DeleteTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTeamFolderTree( + DeleteTeamFolderTreeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTeamFolderTree, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryTeamFolderContents( + QueryTeamFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTeamFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryTeamFolderContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryTeamFolderContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryTeamFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchTeamFolders( + SearchTeamFoldersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchTeamFoldersResponse) { + requests.add(request); + responseObserver.onNext(((SearchTeamFoldersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchTeamFolders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchTeamFoldersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFolder(GetFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFolder(CreateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFolder(UpdateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFolder(DeleteFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFolderTree( + DeleteFolderTreeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFolderTree, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryFolderContents( + QueryFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryFolderContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryFolderContents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryUserRootContents( + QueryUserRootContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryUserRootContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryUserRootContentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryUserRootContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryUserRootContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void moveFolder(MoveFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listRepositories( ListRepositoriesRequest request, StreamObserver responseObserver) { @@ -164,6 +487,27 @@ public void deleteRepository( } } + @Override + public void moveRepository( + MoveRepositoryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveRepository, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void commitRepositoryChanges( CommitRepositoryChangesRequest request, @@ -1229,4 +1573,66 @@ public void updateConfig(UpdateConfigRequest request, StreamObserver res Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java index abd0ac5934ae..8a3208d2235d 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockIAMPolicyImpl.java @@ -17,14 +17,8 @@ package com.google.cloud.dataform.v1; import com.google.api.core.BetaApi; -import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -62,66 +56,4 @@ public void reset() { requests = new ArrayList<>(); responses = new LinkedList<>(); } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } } diff --git a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java index cd0512c1ad24..c3a44cc9a3fe 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java @@ -33,6 +33,673 @@ private DataformGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dataform.v1.Dataform"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTeamFolder", + requestType = com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getGetTeamFolderMethod; + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + DataformGrpc.getGetTeamFolderMethod = + getGetTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.GetTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetTeamFolder")) + .build(); + } + } + } + return getGetTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTeamFolder", + requestType = com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getCreateTeamFolderMethod; + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + DataformGrpc.getCreateTeamFolderMethod = + getCreateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateTeamFolder")) + .build(); + } + } + } + return getCreateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTeamFolder", + requestType = com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder> + getUpdateTeamFolderMethod; + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + DataformGrpc.getUpdateTeamFolderMethod = + getUpdateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateTeamFolder")) + .build(); + } + } + } + return getUpdateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolder", + requestType = com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + DataformGrpc.getDeleteTeamFolderMethod = + getDeleteTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteTeamFolder")) + .build(); + } + } + } + return getDeleteTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolderTree", + requestType = com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation> + getDeleteTeamFolderTreeMethod; + if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) { + DataformGrpc.getDeleteTeamFolderTreeMethod = + getDeleteTeamFolderTreeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteTeamFolderTree")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("DeleteTeamFolderTree")) + .build(); + } + } + } + return getDeleteTeamFolderTreeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryTeamFolderContents", + requestType = com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + DataformGrpc.getQueryTeamFolderContentsMethod = + getQueryTeamFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryTeamFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryTeamFolderContents")) + .build(); + } + } + } + return getQueryTeamFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchTeamFolders", + requestType = com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + responseType = com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + DataformGrpc.getSearchTeamFoldersMethod = + getSearchTeamFoldersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchTeamFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("SearchTeamFolders")) + .build(); + } + } + } + return getSearchTeamFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.cloud.dataform.v1.GetFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.GetFolderRequest, com.google.cloud.dataform.v1.Folder> + getGetFolderMethod; + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + DataformGrpc.getGetFolderMethod = + getGetFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.cloud.dataform.v1.CreateFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateFolderRequest, com.google.cloud.dataform.v1.Folder> + getCreateFolderMethod; + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + DataformGrpc.getCreateFolderMethod = + getCreateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFolder", + requestType = com.google.cloud.dataform.v1.UpdateFolderRequest.class, + responseType = com.google.cloud.dataform.v1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.UpdateFolderRequest, com.google.cloud.dataform.v1.Folder> + getUpdateFolderMethod; + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + DataformGrpc.getUpdateFolderMethod = + getUpdateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.UpdateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateFolder")) + .build(); + } + } + } + return getUpdateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.cloud.dataform.v1.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + DataformGrpc.getDeleteFolderMethod = + getDeleteFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolderTree", + requestType = com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, com.google.longrunning.Operation> + getDeleteFolderTreeMethod; + if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) { + DataformGrpc.getDeleteFolderTreeMethod = + getDeleteFolderTreeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolderTree")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolderTree")) + .build(); + } + } + } + return getDeleteFolderTreeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryFolderContents", + requestType = com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + DataformGrpc.getQueryFolderContentsMethod = + getQueryFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryFolderContents")) + .build(); + } + } + } + return getQueryFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryUserRootContents", + requestType = com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + responseType = com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) + == null) { + DataformGrpc.getQueryUserRootContentsMethod = + getQueryUserRootContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryUserRootContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryUserRootContents")) + .build(); + } + } + } + return getQueryUserRootContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveFolder", + requestType = com.google.cloud.dataform.v1.MoveFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + DataformGrpc.getMoveFolderMethod = + getMoveFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveFolder")) + .build(); + } + } + } + return getMoveFolderMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.ListRepositoriesRequest, com.google.cloud.dataform.v1.ListRepositoriesResponse> @@ -256,6 +923,48 @@ private DataformGrpc() {} return getDeleteRepositoryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveRepository", + requestType = com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod; + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + DataformGrpc.getMoveRepositoryMethod = + getMoveRepositoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveRepository")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.MoveRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveRepository")) + .build(); + } + } + } + return getMoveRepositoryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.CommitRepositoryChangesRequest, com.google.cloud.dataform.v1.CommitRepositoryChangesResponse> @@ -2556,6 +3265,125 @@ private DataformGrpc() {} return getUpdateConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + DataformGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + DataformGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + DataformGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataformStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2581,43 +3409,260 @@ public DataformBlockingV2Stub newStub( return DataformBlockingV2Stub.newStub(factory, channel); } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); - } - }; - return DataformBlockingStub.newStub(factory, channel); - } + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingStub(channel, callOptions); + } + }; + return DataformBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); + } + }; + return DataformFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + default void getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + default void createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + default void updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + default void deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + default void deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderTreeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + default void queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryTeamFolderContentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + default void searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchTeamFoldersMethod(), responseObserver); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + default void getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + default void createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + default void updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + default void deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + default void deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderTreeMethod(), responseObserver); + } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); - } - }; - return DataformFutureStub.newStub(factory, channel); - } + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + default void queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryFolderContentsMethod(), responseObserver); + } - /** - * - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public interface AsyncService { + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + default void queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryUserRootContentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + default void moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFolderMethod(), responseObserver); + } /** * @@ -2696,6 +3741,20 @@ default void deleteRepository( getDeleteRepositoryMethod(), responseObserver); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + default void moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMoveRepositoryMethod(), responseObserver); + } + /** * * @@ -3432,6 +4491,58 @@ default void updateConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateConfigMethod(), responseObserver); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } } /** @@ -3463,9 +4574,254 @@ private DataformStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } - @java.lang.Override - protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformStub(channel, callOptions); + @java.lang.Override + protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformStub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public void getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public void createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public void updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public void deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public void deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public void queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public void searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public void getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public void createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public void updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + public void deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public void deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + public void queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + public void queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public void moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request, responseObserver); } /** @@ -3555,6 +4911,22 @@ public void deleteRepository( responseObserver); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public void moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4320,90 +5692,357 @@ public void deleteWorkflowInvocation( * * *
            -     * Requests cancellation of a running WorkflowInvocation.
            +     * Requests cancellation of a running WorkflowInvocation.
            +     * 
            + */ + public void cancelWorkflowInvocation( + com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * 
            + */ + public void queryWorkflowInvocationActions( + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Get default config for a given project and location.
            +     * 
            + */ + public void getConfig( + com.google.cloud.dataform.v1.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Update default config for a given project and location.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public void updateConfig( + com.google.cloud.dataform.v1.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Dataform. + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public static final class DataformBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Folder.
                  * 
            */ - public void cancelWorkflowInvocation( - com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } /** * * *
            -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public void queryWorkflowInvocationActions( - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); } /** * * *
            -     * Get default config for a given project and location.
            +     * Returns the contents of a given Folder.
                  * 
            */ - public void getConfig( - com.google.cloud.dataform.v1.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.dataform.v1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); } /** * * *
            -     * Update default config for a given project and location.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
                  * 
            */ - public void updateConfig( - com.google.cloud.dataform.v1.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Dataform. - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public static final class DataformBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); } - @java.lang.Override - protected DataformBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingV2Stub(channel, callOptions); + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); } /** @@ -4481,6 +6120,19 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); + } + /** * * @@ -5173,6 +6825,54 @@ public com.google.cloud.dataform.v1.Config updateConfig( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } } /** @@ -5194,6 +6894,206 @@ protected DataformBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption return new DataformBlockingStub(channel, callOptions); } + /** + * + * + *
            +     * Fetches a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new TeamFolder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single TeamFolder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given TeamFolder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
            +     * 
            + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder getFolder( + com.google.cloud.dataform.v1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Folder in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder createFolder( + com.google.cloud.dataform.v1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Folder updateFolder( + com.google.cloud.dataform.v1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Folder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
            +     * 
            + */ + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a given Folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
            +     * 
            + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); + } + /** * * @@ -5249,20 +7149,33 @@ public com.google.cloud.dataform.v1.Repository createRepository( public com.google.cloud.dataform.v1.Repository updateRepository( com.google.cloud.dataform.v1.UpdateRepositoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); + getChannel(), getUpdateRepositoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Repository.
            +     * 
            + */ + public com.google.protobuf.Empty deleteRepository( + com.google.cloud.dataform.v1.DeleteRepositoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } /** * * *
            -     * Deletes a single Repository.
            +     * Moves a Repository to a new location.
                  * 
            */ - public com.google.protobuf.Empty deleteRepository( - com.google.cloud.dataform.v1.DeleteRepositoryRequest request) { + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1.MoveRepositoryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); } /** @@ -5722,225 +7635,479 @@ public com.google.cloud.dataform.v1.CompilationResult getCompilationResult( * * *
            -     * Creates a new CompilationResult in a given project and location.
            +     * Creates a new CompilationResult in a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( + com.google.cloud.dataform.v1.CreateCompilationResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns CompilationResultActions in a given CompilationResult.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse + queryCompilationResultActions( + com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists WorkflowConfigs in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConfigs( + com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single WorkflowConfig.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( + com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new WorkflowConfig in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( + com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a single WorkflowConfig.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( + com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single WorkflowConfig.
            +     * 
            + */ + public com.google.protobuf.Empty deleteWorkflowConfig( + com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists WorkflowInvocations in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflowInvocations( + com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches a single WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( + com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new WorkflowInvocation in a given Repository.
            +     * 
            + */ + public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( + com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single WorkflowInvocation.
            +     * 
            + */ + public com.google.protobuf.Empty deleteWorkflowInvocation( + com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Requests cancellation of a running WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( + com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * 
            + */ + public com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse + queryWorkflowInvocationActions( + com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Get default config for a given project and location.
            +     * 
            + */ + public com.google.cloud.dataform.v1.Config getConfig( + com.google.cloud.dataform.v1.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Update default config for a given project and location.
            +     * **Note:** *This method does not fully implement
            +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            +     * as a bad request, and when the `field_mask` is omitted, the request is
            +     * treated as a full update on all modifiable fields.*
            +     * 
            + */ + public com.google.cloud.dataform.v1.Config updateConfig( + com.google.cloud.dataform.v1.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. + * + *
            +   * Dataform is a service to develop, create, document, test, and update curated
            +   * tables in BigQuery.
            +   * 
            + */ + public static final class DataformFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Fetches a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.CompilationResult createCompilationResult( - com.google.cloud.dataform.v1.CreateCompilationResultRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + getTeamFolder(com.google.cloud.dataform.v1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Returns CompilationResultActions in a given CompilationResult.
            +     * Creates a new TeamFolder in a given project and location.
                  * 
            */ - public com.google.cloud.dataform.v1.QueryCompilationResultActionsResponse - queryCompilationResultActions( - com.google.cloud.dataform.v1.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + createTeamFolder(com.google.cloud.dataform.v1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Lists WorkflowConfigs in a given Repository.
            +     * Updates a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.ListWorkflowConfigsResponse listWorkflowConfigs( - com.google.cloud.dataform.v1.ListWorkflowConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.TeamFolder> + updateTeamFolder(com.google.cloud.dataform.v1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Fetches a single WorkflowConfig.
            +     * Deletes a single TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig getWorkflowConfig( - com.google.cloud.dataform.v1.GetWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolder(com.google.cloud.dataform.v1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new WorkflowConfig in a given Repository.
            +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig createWorkflowConfig( - com.google.cloud.dataform.v1.CreateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolderTree(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), request); } /** * * *
            -     * Updates a single WorkflowConfig.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Returns the contents of a given TeamFolder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowConfig updateWorkflowConfig( - com.google.cloud.dataform.v1.UpdateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse> + queryTeamFolderContents( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Deletes a single WorkflowConfig.
            +     * Returns all TeamFolders in a given location that the caller has access to
            +     * and match the provided filter.
                  * 
            */ - public com.google.protobuf.Empty deleteWorkflowConfig( - com.google.cloud.dataform.v1.DeleteWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse> + searchTeamFolders(com.google.cloud.dataform.v1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), request); } /** * * *
            -     * Lists WorkflowInvocations in a given Repository.
            +     * Fetches a single Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.ListWorkflowInvocationsResponse listWorkflowInvocations( - com.google.cloud.dataform.v1.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getFolder(com.google.cloud.dataform.v1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Fetches a single WorkflowInvocation.
            +     * Creates a new Folder in a given project and location.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFolder(com.google.cloud.dataform.v1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new WorkflowInvocation in a given Repository.
            +     * Updates a single Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFolder(com.google.cloud.dataform.v1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Deletes a single WorkflowInvocation.
            +     * Deletes a single Folder.
                  * 
            */ - public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFolder(com.google.cloud.dataform.v1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); } /** * * *
            -     * Requests cancellation of a running WorkflowInvocation.
            +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
            +     * ReleaseConfigs, and WorkflowConfigs).
                  * 
            */ - public com.google.cloud.dataform.v1.CancelWorkflowInvocationResponse cancelWorkflowInvocation( - com.google.cloud.dataform.v1.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFolderTree(com.google.cloud.dataform.v1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), request); } /** * * *
            -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
            +     * Returns the contents of a given Folder.
                  * 
            */ - public com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse - queryWorkflowInvocationActions( - com.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryFolderContentsResponse> + queryFolderContents(com.google.cloud.dataform.v1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Get default config for a given project and location.
            +     * Returns the contents of a caller's root folder in a given location.
            +     * The root folder contains all resources that are created by the user and not
            +     * contained in any other folder.
                  * 
            */ - public com.google.cloud.dataform.v1.Config getConfig( - com.google.cloud.dataform.v1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse> + queryUserRootContents(com.google.cloud.dataform.v1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), request); } /** * * *
            -     * Update default config for a given project and location.
            -     * **Note:** *This method does not fully implement
            -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
            -     * as a bad request, and when the `field_mask` is omitted, the request is
            -     * treated as a full update on all modifiable fields.*
            +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
                  * 
            */ - public com.google.cloud.dataform.v1.Config updateConfig( - com.google.cloud.dataform.v1.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. - * - *
            -   * Dataform is a service to develop, create, document, test, and update curated
            -   * tables in BigQuery.
            -   * 
            - */ - public static final class DataformFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + moveFolder(com.google.cloud.dataform.v1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request); } /** @@ -6018,6 +8185,19 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Moves a Repository to a new location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + moveRepository(com.google.cloud.dataform.v1.MoveRepositoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), request); + } + /** * * @@ -6728,62 +8908,130 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Gets the access control policy for a resource.
            +     * Returns an empty policy if the resource exists and does not have a policy
            +     * set.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Sets the access control policy on the specified resource. Replaces any
            +     * existing policy.
            +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Returns permissions that a caller has on the specified resource.
            +     * If the resource does not exist, this will return an empty set of
            +     * permissions, not a `NOT_FOUND` error.
            +     * Note: This operation is designed to be used for building permission-aware
            +     * UIs and command-line tools, not for authorization checking. This operation
            +     * may "fail open" without warning.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } } - private static final int METHODID_LIST_REPOSITORIES = 0; - private static final int METHODID_GET_REPOSITORY = 1; - private static final int METHODID_CREATE_REPOSITORY = 2; - private static final int METHODID_UPDATE_REPOSITORY = 3; - private static final int METHODID_DELETE_REPOSITORY = 4; - private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 5; - private static final int METHODID_READ_REPOSITORY_FILE = 6; - private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 7; - private static final int METHODID_FETCH_REPOSITORY_HISTORY = 8; - private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 9; - private static final int METHODID_FETCH_REMOTE_BRANCHES = 10; - private static final int METHODID_LIST_WORKSPACES = 11; - private static final int METHODID_GET_WORKSPACE = 12; - private static final int METHODID_CREATE_WORKSPACE = 13; - private static final int METHODID_DELETE_WORKSPACE = 14; - private static final int METHODID_INSTALL_NPM_PACKAGES = 15; - private static final int METHODID_PULL_GIT_COMMITS = 16; - private static final int METHODID_PUSH_GIT_COMMITS = 17; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 18; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 19; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 20; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 21; - private static final int METHODID_FETCH_FILE_DIFF = 22; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 23; - private static final int METHODID_SEARCH_FILES = 24; - private static final int METHODID_MAKE_DIRECTORY = 25; - private static final int METHODID_REMOVE_DIRECTORY = 26; - private static final int METHODID_MOVE_DIRECTORY = 27; - private static final int METHODID_READ_FILE = 28; - private static final int METHODID_REMOVE_FILE = 29; - private static final int METHODID_MOVE_FILE = 30; - private static final int METHODID_WRITE_FILE = 31; - private static final int METHODID_LIST_RELEASE_CONFIGS = 32; - private static final int METHODID_GET_RELEASE_CONFIG = 33; - private static final int METHODID_CREATE_RELEASE_CONFIG = 34; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 35; - private static final int METHODID_DELETE_RELEASE_CONFIG = 36; - private static final int METHODID_LIST_COMPILATION_RESULTS = 37; - private static final int METHODID_GET_COMPILATION_RESULT = 38; - private static final int METHODID_CREATE_COMPILATION_RESULT = 39; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 40; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 41; - private static final int METHODID_GET_WORKFLOW_CONFIG = 42; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 43; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 44; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 45; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 46; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 47; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 48; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 49; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 50; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 51; - private static final int METHODID_GET_CONFIG = 52; - private static final int METHODID_UPDATE_CONFIG = 53; + private static final int METHODID_GET_TEAM_FOLDER = 0; + private static final int METHODID_CREATE_TEAM_FOLDER = 1; + private static final int METHODID_UPDATE_TEAM_FOLDER = 2; + private static final int METHODID_DELETE_TEAM_FOLDER = 3; + private static final int METHODID_DELETE_TEAM_FOLDER_TREE = 4; + private static final int METHODID_QUERY_TEAM_FOLDER_CONTENTS = 5; + private static final int METHODID_SEARCH_TEAM_FOLDERS = 6; + private static final int METHODID_GET_FOLDER = 7; + private static final int METHODID_CREATE_FOLDER = 8; + private static final int METHODID_UPDATE_FOLDER = 9; + private static final int METHODID_DELETE_FOLDER = 10; + private static final int METHODID_DELETE_FOLDER_TREE = 11; + private static final int METHODID_QUERY_FOLDER_CONTENTS = 12; + private static final int METHODID_QUERY_USER_ROOT_CONTENTS = 13; + private static final int METHODID_MOVE_FOLDER = 14; + private static final int METHODID_LIST_REPOSITORIES = 15; + private static final int METHODID_GET_REPOSITORY = 16; + private static final int METHODID_CREATE_REPOSITORY = 17; + private static final int METHODID_UPDATE_REPOSITORY = 18; + private static final int METHODID_DELETE_REPOSITORY = 19; + private static final int METHODID_MOVE_REPOSITORY = 20; + private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 21; + private static final int METHODID_READ_REPOSITORY_FILE = 22; + private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 23; + private static final int METHODID_FETCH_REPOSITORY_HISTORY = 24; + private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 25; + private static final int METHODID_FETCH_REMOTE_BRANCHES = 26; + private static final int METHODID_LIST_WORKSPACES = 27; + private static final int METHODID_GET_WORKSPACE = 28; + private static final int METHODID_CREATE_WORKSPACE = 29; + private static final int METHODID_DELETE_WORKSPACE = 30; + private static final int METHODID_INSTALL_NPM_PACKAGES = 31; + private static final int METHODID_PULL_GIT_COMMITS = 32; + private static final int METHODID_PUSH_GIT_COMMITS = 33; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 34; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 35; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 36; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 37; + private static final int METHODID_FETCH_FILE_DIFF = 38; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 39; + private static final int METHODID_SEARCH_FILES = 40; + private static final int METHODID_MAKE_DIRECTORY = 41; + private static final int METHODID_REMOVE_DIRECTORY = 42; + private static final int METHODID_MOVE_DIRECTORY = 43; + private static final int METHODID_READ_FILE = 44; + private static final int METHODID_REMOVE_FILE = 45; + private static final int METHODID_MOVE_FILE = 46; + private static final int METHODID_WRITE_FILE = 47; + private static final int METHODID_LIST_RELEASE_CONFIGS = 48; + private static final int METHODID_GET_RELEASE_CONFIG = 49; + private static final int METHODID_CREATE_RELEASE_CONFIG = 50; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 51; + private static final int METHODID_DELETE_RELEASE_CONFIG = 52; + private static final int METHODID_LIST_COMPILATION_RESULTS = 53; + private static final int METHODID_GET_COMPILATION_RESULT = 54; + private static final int METHODID_CREATE_COMPILATION_RESULT = 55; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 56; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 57; + private static final int METHODID_GET_WORKFLOW_CONFIG = 58; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 59; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 60; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 61; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 62; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 63; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 64; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 65; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 66; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 67; + private static final int METHODID_GET_CONFIG = 68; + private static final int METHODID_UPDATE_CONFIG = 69; + private static final int METHODID_GET_IAM_POLICY = 70; + private static final int METHODID_SET_IAM_POLICY = 71; + private static final int METHODID_TEST_IAM_PERMISSIONS = 72; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6802,6 +9050,91 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_GET_TEAM_FOLDER: + serviceImpl.getTeamFolder( + (com.google.cloud.dataform.v1.GetTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_TEAM_FOLDER: + serviceImpl.createTeamFolder( + (com.google.cloud.dataform.v1.CreateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TEAM_FOLDER: + serviceImpl.updateTeamFolder( + (com.google.cloud.dataform.v1.UpdateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TEAM_FOLDER: + serviceImpl.deleteTeamFolder( + (com.google.cloud.dataform.v1.DeleteTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TEAM_FOLDER_TREE: + serviceImpl.deleteTeamFolderTree( + (com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_TEAM_FOLDER_CONTENTS: + serviceImpl.queryTeamFolderContents( + (com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse>) + responseObserver); + break; + case METHODID_SEARCH_TEAM_FOLDERS: + serviceImpl.searchTeamFolders( + (com.google.cloud.dataform.v1.SearchTeamFoldersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder( + (com.google.cloud.dataform.v1.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder( + (com.google.cloud.dataform.v1.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FOLDER: + serviceImpl.updateFolder( + (com.google.cloud.dataform.v1.UpdateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder( + (com.google.cloud.dataform.v1.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER_TREE: + serviceImpl.deleteFolderTree( + (com.google.cloud.dataform.v1.DeleteFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_FOLDER_CONTENTS: + serviceImpl.queryFolderContents( + (com.google.cloud.dataform.v1.QueryFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryFolderContentsResponse>) + responseObserver); + break; + case METHODID_QUERY_USER_ROOT_CONTENTS: + serviceImpl.queryUserRootContents( + (com.google.cloud.dataform.v1.QueryUserRootContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse>) + responseObserver); + break; + case METHODID_MOVE_FOLDER: + serviceImpl.moveFolder( + (com.google.cloud.dataform.v1.MoveFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_REPOSITORIES: serviceImpl.listRepositories( (com.google.cloud.dataform.v1.ListRepositoriesRequest) request, @@ -6831,6 +9164,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1.DeleteRepositoryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MOVE_REPOSITORY: + serviceImpl.moveRepository( + (com.google.cloud.dataform.v1.MoveRepositoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_COMMIT_REPOSITORY_CHANGES: serviceImpl.commitRepositoryChanges( (com.google.cloud.dataform.v1.CommitRepositoryChangesRequest) request, @@ -7135,6 +9473,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1.UpdateConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -7153,6 +9507,100 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.GetTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_GET_TEAM_FOLDER))) + .addMethod( + getCreateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_CREATE_TEAM_FOLDER))) + .addMethod( + getUpdateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1.TeamFolder>(service, METHODID_UPDATE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteTeamFolderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_TEAM_FOLDER_TREE))) + .addMethod( + getQueryTeamFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse>( + service, METHODID_QUERY_TEAM_FOLDER_CONTENTS))) + .addMethod( + getSearchTeamFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse>( + service, METHODID_SEARCH_TEAM_FOLDERS))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.GetFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_GET_FOLDER))) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_CREATE_FOLDER))) + .addMethod( + getUpdateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.UpdateFolderRequest, + com.google.cloud.dataform.v1.Folder>(service, METHODID_UPDATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteFolderRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_FOLDER))) + .addMethod( + getDeleteFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.DeleteFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FOLDER_TREE))) + .addMethod( + getQueryFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1.QueryFolderContentsResponse>( + service, METHODID_QUERY_FOLDER_CONTENTS))) + .addMethod( + getQueryUserRootContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse>( + service, METHODID_QUERY_USER_ROOT_CONTENTS))) + .addMethod( + getMoveFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.MoveFolderRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_FOLDER))) .addMethod( getListRepositoriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7184,6 +9632,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.DeleteRepositoryRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) + .addMethod( + getMoveRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.MoveRepositoryRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_REPOSITORY))) .addMethod( getCommitRepositoryChangesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7516,6 +9970,23 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.UpdateConfigRequest, com.google.cloud.dataform.v1.Config>(service, METHODID_UPDATE_CONFIG))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .build(); } @@ -7565,11 +10036,27 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DataformFileDescriptorSupplier()) + .addMethod(getGetTeamFolderMethod()) + .addMethod(getCreateTeamFolderMethod()) + .addMethod(getUpdateTeamFolderMethod()) + .addMethod(getDeleteTeamFolderMethod()) + .addMethod(getDeleteTeamFolderTreeMethod()) + .addMethod(getQueryTeamFolderContentsMethod()) + .addMethod(getSearchTeamFoldersMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getCreateFolderMethod()) + .addMethod(getUpdateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getDeleteFolderTreeMethod()) + .addMethod(getQueryFolderContentsMethod()) + .addMethod(getQueryUserRootContentsMethod()) + .addMethod(getMoveFolderMethod()) .addMethod(getListRepositoriesMethod()) .addMethod(getGetRepositoryMethod()) .addMethod(getCreateRepositoryMethod()) .addMethod(getUpdateRepositoryMethod()) .addMethod(getDeleteRepositoryMethod()) + .addMethod(getMoveRepositoryMethod()) .addMethod(getCommitRepositoryChangesMethod()) .addMethod(getReadRepositoryFileMethod()) .addMethod(getQueryRepositoryDirectoryContentsMethod()) @@ -7619,6 +10106,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getQueryWorkflowInvocationActionsMethod()) .addMethod(getGetConfigMethod()) .addMethod(getUpdateConfigMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) .build(); } } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java index e9f4b1ef2ed3..657c4693a7d6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResult.java @@ -2313,6 +2313,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 12; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2360,6 +2426,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -2404,6 +2473,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2440,6 +2514,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -2491,6 +2569,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (sourceCase_) { case 2: hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER; @@ -2652,6 +2734,7 @@ private void maybeForceBuilderInitialization() { internalGetCompilationErrorsFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); internalGetCreateTimeFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -2685,6 +2768,11 @@ public Builder clear() { createTimeBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } sourceCase_ = 0; source_ = null; return this; @@ -2769,6 +2857,13 @@ private void buildPartial0(com.google.cloud.dataform.v1.CompilationResult result result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -2845,6 +2940,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.CompilationResult other) { bitField0_ |= 0x00000400; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getSourceCase()) { case GIT_COMMITISH: { @@ -2978,6 +3076,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 90 + case 98: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5052,6 +5158,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000800); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `CompilationResult` resource is `user_scoped` only if it is sourced
            +     * from a workspace.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CompilationResult) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java index 4682f1a00e56..59cce986ea30 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultAction.java @@ -632,6 +632,130 @@ java.lang.String getAdditionalOptionsOrDefault( * map<string, string> additional_options = 14; */ java.lang.String getAdditionalOptionsOrThrow(java.lang.String key); + + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + int getTableFormatValue(); + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat getTableFormat(); + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + int getFileFormatValue(); + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat getFileFormat(); + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + java.lang.String getStorageUri(); + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + com.google.protobuf.ByteString getStorageUriBytes(); } /** @@ -673,6 +797,10 @@ private Relation() { postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); partitionExpression_ = ""; clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -919,143 +1047,439 @@ private RelationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType) } - public interface IncrementalTableConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
            +     * Supported table formats for BigQuery tables.
            +     * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat} + */ + public enum TableFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * The SELECT query which returns rows which should be inserted into the
            -       * relation if it already exists and is not being refreshed.
            +       * Default value.
                    * 
            * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getIncrementalSelectQuery(); - + TABLE_FORMAT_UNSPECIFIED(0), /** * * *
            -       * The SELECT query which returns rows which should be inserted into the
            -       * relation if it already exists and is not being refreshed.
            +       * Apache Iceberg format.
                    * 
            * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. + * ICEBERG = 1; */ - com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + ICEBERG(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableFormat"); + } /** * * *
            -       * Whether this table should be protected from being refreshed.
            +       * Default value.
                    * 
            * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - boolean getRefreshDisabled(); + public static final int TABLE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Apache Iceberg format.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. + * ICEBERG = 1; */ - java.util.List getUniqueKeyPartsList(); + public static final int ICEBERG_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } /** - * - * - *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            -       * 
            - * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. */ - int getUniqueKeyPartsCount(); + @java.lang.Deprecated + public static TableFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TableFormat forNumber(int value) { + switch (value) { + case 0: + return TABLE_FORMAT_UNSPECIFIED; + case 1: + return ICEBERG; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TableFormat findValueByNumber(int number) { + return TableFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.CompilationResultAction.Relation.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TableFormat[] VALUES = values(); + public static TableFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TableFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat) + } + + /** + * + * + *
            +     * Supported file formats for BigQuery tables.
            +     * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat} + */ + public enum FileFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Default value.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. + * FILE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getUniqueKeyParts(int index); - + FILE_FORMAT_UNSPECIFIED(0), /** * * *
            -       * A set of columns or SQL expressions used to define row uniqueness.
            -       * If any duplicates are discovered (as defined by `unique_key_parts`),
            -       * only the newly selected rows (as defined by `incremental_select_query`)
            -       * will be included in the relation.
            +       * Apache Parquet format.
                    * 
            * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. + * PARQUET = 1; */ - com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + PARQUET(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FileFormat"); + } /** * * *
            -       * A SQL expression conditional used to limit the set of existing rows
            -       * considered for a merge operation (see `unique_key_parts` for more
            -       * information).
            +       * Default value.
                    * 
            * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. + * FILE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getUpdatePartitionFilter(); + public static final int FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
            -       * A SQL expression conditional used to limit the set of existing rows
            -       * considered for a merge operation (see `unique_key_parts` for more
            -       * information).
            +       * Apache Parquet format.
                    * 
            * - * string update_partition_filter = 4; + * PARQUET = 1; + */ + public static final int PARQUET_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FileFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FileFormat forNumber(int value) { + switch (value) { + case 0: + return FILE_FORMAT_UNSPECIFIED; + case 1: + return PARQUET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FileFormat findValueByNumber(int number) { + return FileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.CompilationResultAction.Relation.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final FileFormat[] VALUES = values(); + + public static FileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FileFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat) + } + + public interface IncrementalTableConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The SELECT query which returns rows which should be inserted into the
            +       * relation if it already exists and is not being refreshed.
            +       * 
            + * + * string incremental_select_query = 1; + * + * @return The incrementalSelectQuery. + */ + java.lang.String getIncrementalSelectQuery(); + + /** + * + * + *
            +       * The SELECT query which returns rows which should be inserted into the
            +       * relation if it already exists and is not being refreshed.
            +       * 
            + * + * string incremental_select_query = 1; + * + * @return The bytes for incrementalSelectQuery. + */ + com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + + /** + * + * + *
            +       * Whether this table should be protected from being refreshed.
            +       * 
            + * + * bool refresh_disabled = 2; + * + * @return The refreshDisabled. + */ + boolean getRefreshDisabled(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @return A list containing the uniqueKeyParts. + */ + java.util.List getUniqueKeyPartsList(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @return The count of uniqueKeyParts. + */ + int getUniqueKeyPartsCount(); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the element to return. + * @return The uniqueKeyParts at the given index. + */ + java.lang.String getUniqueKeyParts(int index); + + /** + * + * + *
            +       * A set of columns or SQL expressions used to define row uniqueness.
            +       * If any duplicates are discovered (as defined by `unique_key_parts`),
            +       * only the newly selected rows (as defined by `incremental_select_query`)
            +       * will be included in the relation.
            +       * 
            + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the value to return. + * @return The bytes of the uniqueKeyParts at the given index. + */ + com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + + /** + * + * + *
            +       * A SQL expression conditional used to limit the set of existing rows
            +       * considered for a merge operation (see `unique_key_parts` for more
            +       * information).
            +       * 
            + * + * string update_partition_filter = 4; + * + * @return The updatePartitionFilter. + */ + java.lang.String getUpdatePartitionFilter(); + + /** + * + * + *
            +       * A SQL expression conditional used to limit the set of existing rows
            +       * considered for a merge operation (see `unique_key_parts` for more
            +       * information).
            +       * 
            + * + * string update_partition_filter = 4; * * @return The bytes for updatePartitionFilter. */ @@ -3867,28 +4291,236 @@ public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) { return map.get(key); } - private byte memoizedIsInitialized = -1; + public static final int CONNECTION_FIELD_NUMBER = 15; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private volatile java.lang.Object connection_ = ""; - memoizedIsInitialized = 1; - return true; + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } } + /** + * + * + *
            +     * Optional. The connection specifying the credentials to be used to read
            +     * and write to external storage, such as Cloud Storage. The connection can
            +     * have the form `{project}.{location}.{connection_id}` or
            +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +     * or be set to DEFAULT.
            +     * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FORMAT_FIELD_NUMBER = 16; + private int tableFormat_ = 0; + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
            +     * Optional. The table format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.forNumber( + tableFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.UNRECOGNIZED + : result; + } + + public static final int FILE_FORMAT_FIELD_NUMBER = 17; + private int fileFormat_ = 0; + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
            +     * Optional. The file format for the BigQuery table.
            +     * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.UNRECOGNIZED + : result; + } + + public static final int STORAGE_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageUri_ = ""; + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + @java.lang.Override + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The fully qualified location prefix of the external folder
            +     * where table data is stored. The URI should be in the format
            +     * `gs://bucket/path_to_table/`.
            +     * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dependencyTargets_.size(); i++) { + output.writeMessage(1, dependencyTargets_.get(i)); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getRelationDescriptor()); @@ -3928,6 +4560,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAdditionalOptions(), AdditionalOptionsDefaultEntryHolder.defaultEntry, 14); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, storageUri_); + } getUnknownFields().writeTo(output); } @@ -4014,6 +4664,24 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, additionalOptions__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, storageUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4051,6 +4719,10 @@ public boolean equals(final java.lang.Object obj) { if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false; if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions())) return false; + if (!getConnection().equals(other.getConnection())) return false; + if (tableFormat_ != other.tableFormat_) return false; + if (fileFormat_ != other.fileFormat_) return false; + if (!getStorageUri().equals(other.getStorageUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4106,6 +4778,14 @@ public int hashCode() { hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAdditionalOptions().hashCode(); } + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + hash = (37 * hash) + TABLE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + tableFormat_; + hash = (37 * hash) + FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + fileFormat_; + hash = (37 * hash) + STORAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getStorageUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4308,6 +4988,10 @@ public Builder clear() { partitionExpirationDays_ = 0; requirePartitionFilter_ = false; internalGetMutableAdditionalOptions().clear(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; return this; } @@ -4413,6 +5097,18 @@ private void buildPartial0( result.additionalOptions_ = internalGetAdditionalOptions(); result.additionalOptions_.makeImmutable(); } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.connection_ = connection_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.tableFormat_ = tableFormat_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.fileFormat_ = fileFormat_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.storageUri_ = storageUri_; + } result.bitField0_ |= to_bitField0_; } @@ -4528,6 +5224,22 @@ public Builder mergeFrom( } internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions()); bitField0_ |= 0x00002000; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.tableFormat_ != 0) { + setTableFormatValue(other.getTableFormatValue()); + } + if (other.fileFormat_ != 0) { + setFileFormatValue(other.getFileFormatValue()); + } + if (!other.getStorageUri().isEmpty()) { + storageUri_ = other.storageUri_; + bitField0_ |= 0x00020000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4659,6 +5371,30 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 114 + case 122: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 128: + { + tableFormat_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + fileFormat_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: + { + storageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6929,6 +7665,478 @@ public Builder putAllAdditionalOptions( return this; } + private java.lang.Object connection_ = ""; + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The connection specifying the credentials to be used to read
            +       * and write to external storage, such as Cloud Storage. The connection can
            +       * have the form `{project}.{location}.{connection_id}` or
            +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
            +       * or be set to DEFAULT.
            +       * 
            + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private int tableFormat_ = 0; + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormatValue(int value) { + tableFormat_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.forNumber( + tableFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormat( + com.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + tableFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The table format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTableFormat() { + bitField0_ = (bitField0_ & ~0x00008000); + tableFormat_ = 0; + onChanged(); + return this; + } + + private int fileFormat_ = 0; + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormatValue(int value) { + fileFormat_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormat( + com.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + fileFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The file format for the BigQuery table.
            +       * 
            + * + * + * .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFileFormat() { + bitField0_ = (bitField0_ & ~0x00010000); + fileFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object storageUri_ = ""; + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStorageUri() { + storageUri_ = getDefaultInstance().getStorageUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The fully qualified location prefix of the external folder
            +       * where table data is stored. The URI should be in the format
            +       * `gs://bucket/path_to_table/`.
            +       * 
            + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CompilationResultAction.Relation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java index 352344884eb4..636ed97cbe9a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultOrBuilder.java @@ -498,5 +498,55 @@ public interface CompilationResultOrBuilder */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `CompilationResult` resource is `user_scoped` only if it is sourced
            +   * from a workspace.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1.CompilationResult.SourceCase getSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java index 906f74b4b008..7c2b0e1d12a9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ComputeRepositoryAccessTokenStatusResponse.java @@ -124,6 +124,16 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { * VALID = 3; */ VALID(3), + /** + * + * + *
            +     * The token is not accessible due to permission issues.
            +     * 
            + * + * PERMISSION_DENIED = 4; + */ + PERMISSION_DENIED(4), UNRECOGNIZED(-1), ; @@ -182,6 +192,17 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALID_VALUE = 3; + /** + * + * + *
            +     * The token is not accessible due to permission issues.
            +     * 
            + * + * PERMISSION_DENIED = 4; + */ + public static final int PERMISSION_DENIED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -214,6 +235,8 @@ public static TokenStatus forNumber(int value) { return INVALID; case 3: return VALID; + case 4: + return PERMISSION_DENIED; default: return null; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java index 54b1e8705061..b247386db0d0 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Config.java @@ -54,6 +54,7 @@ private Config(com.google.protobuf.GeneratedMessage.Builder builder) { private Config() { name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.Config.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -183,6 +185,84 @@ public com.google.protobuf.ByteString getDefaultKmsKeyNameBytes() { } } + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -203,6 +283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } getUnknownFields().writeTo(output); } @@ -218,6 +301,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +321,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDefaultKmsKeyName().equals(other.getDefaultKmsKeyName())) return false; + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +340,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEFAULT_KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDefaultKmsKeyName().hashCode(); + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +485,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; return this; } @@ -432,6 +527,12 @@ private void buildPartial0(com.google.cloud.dataform.v1.Config result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultKmsKeyName_ = defaultKmsKeyName_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -456,6 +557,11 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Config other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -494,6 +600,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -750,6 +862,150 @@ public Builder setDefaultKmsKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Config) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java index 1b2b31f45839..43b4f743762a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigOrBuilder.java @@ -83,4 +83,52 @@ public interface ConfigOrBuilder * @return The bytes for defaultKmsKeyName. */ com.google.protobuf.ByteString getDefaultKmsKeyNameBytes(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java new file mode 100644 index 000000000000..1905993fdc6c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequest.java @@ -0,0 +1,912 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `CreateFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateFolderRequest) + CreateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFolderRequest"); + } + + // Use CreateFolderRequest.newBuilder() to construct. + private CreateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFolderRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateFolderRequest.class, + com.google.cloud.dataform.v1.CreateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.Folder folder_; + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.CreateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateFolderRequest other = + (com.google.cloud.dataform.v1.CreateFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.CreateFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `CreateFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateFolderRequest) + com.google.cloud.dataform.v1.CreateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateFolderRequest.class, + com.google.cloud.dataform.v1.CreateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest build() { + com.google.cloud.dataform.v1.CreateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest buildPartial() { + com.google.cloud.dataform.v1.CreateFolderRequest result = + new com.google.cloud.dataform.v1.CreateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.CreateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateFolderRequest other) { + if (other == com.google.cloud.dataform.v1.CreateFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the Folder. Must be in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + } + + /** + * + * + *
            +     * Required. The Folder to create.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateFolderRequest) + private static final com.google.cloud.dataform.v1.CreateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateFolderRequest(); + } + + public static com.google.cloud.dataform.v1.CreateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..e83e13233ae2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateFolderRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The location in which to create the Folder. Must be in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +   * Required. The Folder to create.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java new file mode 100644 index 000000000000..42741a27e232 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequest.java @@ -0,0 +1,933 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `CreateTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateTeamFolderRequest) + CreateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateTeamFolderRequest"); + } + + // Use CreateTeamFolderRequest.newBuilder() to construct. + private CreateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateTeamFolderRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1.CreateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.CreateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateTeamFolderRequest other = + (com.google.cloud.dataform.v1.CreateTeamFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.CreateTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `CreateTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.CreateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateTeamFolderRequest) + com.google.cloud.dataform.v1.CreateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1.CreateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest build() { + com.google.cloud.dataform.v1.CreateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.CreateTeamFolderRequest result = + new com.google.cloud.dataform.v1.CreateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.CreateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.CreateTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The location in which to create the TeamFolder. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder to create.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateTeamFolderRequest) + private static final com.google.cloud.dataform.v1.CreateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.CreateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..ecd326dbef6a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateTeamFolderRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The location in which to create the TeamFolder. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +   * Required. The TeamFolder to create.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java index 848736f89450..083a32410c08 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_Repository_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_Repository_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_ListRepositoriesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_ListRepositoriesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_ListRepositoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_GetRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -260,6 +268,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_DirectoryEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_DirectoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_SearchFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -616,6 +628,118 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_UpdateConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_Folder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -630,42 +754,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\022\030google.cloud.dataform.v1\032\034google/api/" + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\032\032google/type/interval.proto\"e\n" + + "gle/api/resource.proto\032\036google/iam/v1/ia" + + "m_policy.proto\032\032google/iam/v1/policy.pro" + + "to\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/" + + "timestamp.proto\032\027google/rpc/status.proto\032\032google/type/interval.proto\"e\n" + "\023DataEncryptionState\022N\n" + "\024kms_key_version_name\030\001 \001(\tB0\340A\002\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\"\236\r\n\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\"\222\016\n\n" + "Repository\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022#\n" + + "\021containing_folder\030\020 \001(\tB\003\340A\001H\000\210\001\001\022\"\n" + + "\020team_folder_name\030\022 \001(\tB\003\340A\003H\001\210\001\001\0224\n" + "\013create_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022X\n" - + "\023git_remote_settings\030\002 \001(\01326.google.cloud.datafo" - + "rm.v1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + + "\023git_remote_settings\030\002 \001(\01326.google.cl" + + "oud.dataform.v1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + "*npmrc_environment_variables_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022p\n" - + "\037workspace_compilation_overrides\030\004 \001(\0132B.google.cloud." - + "dataform.v1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022E\n" - + "\006labels\030\005 \003(\01320.goog" - + "le.cloud.dataform.v1.Repository.LabelsEntryB\003\340A\001\022,\n" + + "\037workspace_compilation_overrides\030\004 \001(\0132B.goo" + + "gle.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022E\n" + + "\006labels\030\005 " + + "\003(\01320.google.cloud.dataform.v1.Repository.LabelsEntryB\003\340A\001\022,\n" + "\034set_authenticated_user_admin\030\t \001(\010B\006\340A\001\340A\004\022\034\n" + "\017service_account\030\n" + " \001(\tB\003\340A\001\022?\n" + "\014kms_key_name\030\013 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022Q\n" - + "\025data_encryption_state\030\014" - + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\000\210\001\001\032\347\004\n" + + "\025data_encryption_state\030\014 \001(\0132-.google." + + "cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\002\210\001\001\032\347\004\n" + "\021GitRemoteSettings\022\020\n" + "\003url\030\001 \001(\tB\003\340A\002\022\033\n" + "\016default_branch\030\002 \001(\tB\003\340A\002\022_\n" + "#authentication_token_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022v\n" - + "\031ssh_authentication_config\030\005 \001(\0132N.google." - + "cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\003\340A\001\022_\n" - + "\014token_status\030\004 \001(\0162B.google.cloud.datafor" - + "m.v1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + + "\031ssh_authentication_config\030\005 \001(\013" + + "2N.google.cloud.dataform.v1.Repository.G" + + "itRemoteSettings.SshAuthenticationConfigB\003\340A\001\022_\n" + + "\014token_status\030\004 \001(\0162B.google.clo" + + "ud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + "\027SshAuthenticationConfig\022[\n" + "\037user_private_key_secret_version\030\001 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\034\n" @@ -682,10 +811,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n" - + "\"dataform.googleapis.com/Repository\022Aprojects/{project}/loc" - + "ations/{location}/repositories/{repository}*\014repositories2\n" + + "\"dataform.googleapis.com/Repository\022Aprojects/{pr" + + "oject}/locations/{location}/repositories/{repository}*\014repositories2\n" + "repositoryB\024\n" - + "\022_internal_metadata\"\261\001\n" + + "\022_containing_folderB\023\n" + + "\021_team_folder_nameB\024\n" + + "\022_internal_metadata\"3\n" + + "\027PrivateResourceMetadata\022\030\n" + + "\013user_scoped\030\001 \001(\010B\003\340A\003\"\261\001\n" + "\027ListRepositoriesRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\026\n" @@ -696,15 +829,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ListRepositoriesResponse\022:\n" + "\014repositories\030\001 \003(\0132$.google.cloud.dataform.v1.Repository\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"P\n" + + "\013unreachable\030\003 \003(\t\"\244\001\n" + + "\025MoveRepositoryRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/Repository\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"P\n" + "\024GetRepositoryRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"\257\001\n" + "\027CreateRepositoryRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022=\n\n" - + "repository\030\002 \001(\0132$.go" - + "ogle.cloud.dataform.v1.RepositoryB\003\340A\002\022\032\n\r" + + "repository\030\002" + + " \001(\0132$.google.cloud.dataform.v1.RepositoryB\003\340A\002\022\032\n\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\216\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -717,24 +855,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CommitRepositoryChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022F\n" - + "\017commit_metadata\030\002 \001(\0132(.goo" - + "gle.cloud.dataform.v1.CommitMetadataB\003\340A\002\022%\n" + + "\017commit_metadata\030\002" + + " \001(\0132(.google.cloud.dataform.v1.CommitMetadataB\003\340A\002\022%\n" + "\030required_head_commit_sha\030\004 \001(\tB\003\340A\001\022j\n" - + "\017file_operations\030\003 \003(\0132L.google.cloud" - + ".dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\233\002\n\r" + + "\017file_operations\030\003 \003(\0132L.google.cloud.datafo" + + "rm.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\233\002\n\r" + "FileOperation\022f\n\n" - + "write_file\030\001 \001(\0132P.google.clou" - + "d.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\000\022h\n" - + "\013delete_file\030\002 \001(\0132Q.google.cloud.dataform.v1.C" - + "ommitRepositoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + + "write_file\030\001 \001(\0132P.google.cloud.dataf" + + "orm.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\000\022h\n" + + "\013delete_file\030\002 \001(\0132Q.google.cloud.dataform.v1.CommitRe" + + "positoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + "\tWriteFile\022\020\n" + "\010contents\030\001 \001(\014\032\014\n\n" + "DeleteFileB\013\n" + "\toperation\032}\n" + "\023FileOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022U\n" - + "\005value\030\002 \001(\0132F.google.cloud.dataform.v1.CommitR" - + "epositoryChangesRequest.FileOperation:\0028\001\"5\n" + + "\005value\030\002 \001(\0132F" + + ".google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\0028\001\"5\n" + "\037CommitRepositoryChangesResponse\022\022\n\n" + "commit_sha\030\001 \001(\t\"\201\001\n" + "\031ReadRepositoryFileRequest\0228\n" @@ -774,31 +912,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016commit_message\030\002 \001(\tB\003\340A\001\"e\n" + ")ComputeRepositoryAccessTokenStatusRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dataform.googleapis.com/Repository\"\350\001\n" + + "\"dataform.googleapis.com/Repository\"\377\001\n" + "*ComputeRepositoryAccessTokenStatusResponse\022f\n" - + "\014token_status\030\001 \001(\0162P.google.cloud.dataform.v1.ComputeReposito" - + "ryAccessTokenStatusResponse.TokenStatus\"R\n" + + "\014token_status\030\001 \001(\0162P.google." + + "cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n" + "\013TokenStatus\022\034\n" + "\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n" + "\tNOT_FOUND\020\001\022\013\n" + "\007INVALID\020\002\022\t\n" - + "\005VALID\020\003\"V\n" + + "\005VALID\020\003\022\025\n" + + "\021PERMISSION_DENIED\020\004\"V\n" + "\032FetchRemoteBranchesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"/\n" + "\033FetchRemoteBranchesResponse\022\020\n" - + "\010branches\030\001 \003(\t\"\375\002\n" + + "\010branches\030\001 \003(\t\"\213\004\n" + "\tWorkspace\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\025data_encryption_state\030\002" - + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\005 \001(" - + "\tB\003\340A\003H\000\210\001\001:\230\001\352A\224\001\n" - + "!dataform.googleapis.com/Workspace\022Xprojects/" - + "{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\n" + + "\025data_encryption_state\030\002 \001(\0132-.goo" + + "gle.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\037\n\r" + + "disable_moves\030\006 \001(\010B\003\340A\001H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\010 \001(\01321.google" + + ".cloud.dataform.v1.PrivateResourceMetadataB\003\340A\003:\230\001\352A\224\001\n" + + "!dataform.googleapis.com/Workspace\022Xprojects/{project}/locations/" + + "{location}/repositories/{repository}/workspaces/{workspace}*\n" + "workspaces2\tworkspaceB\024\n" - + "\022_internal_metadata\"\260\001\n" + + "\022_internal_metadataB\020\n" + + "\016_disable_moves\"\260\001\n" + "\025ListWorkspacesRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -829,8 +971,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\032\n\r" + "remote_branch\030\002 \001(\tB\003\340A\001\022;\n" - + "\006author\030\003 \001(\013" - + "2&.google.cloud.dataform.v1.CommitAuthorB\003\340A\002\"\030\n" + + "\006author\030\003 \001(\0132&" + + ".google.cloud.dataform.v1.CommitAuthorB\003\340A\002\"\030\n" + "\026PullGitCommitsResponse\"l\n" + "\025PushGitCommitsRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -841,12 +983,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\367\002\n" + "\034FetchFileGitStatusesResponse\022n\n" - + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.FetchFileG" - + "itStatusesResponse.UncommittedFileChange\032\346\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.FetchFileGit" + + "StatusesResponse.UncommittedFileChange\032\346\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022f\n" - + "\005state\030\002 \001(\0162R.google.cloud.dataform." - + "v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + + "\005state\030\002 \001(\0162R.google.cloud.dataform.v1" + + ".FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -879,21 +1021,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\002\"/\n" + "\025FetchFileDiffResponse\022\026\n" - + "\016formatted_diff\030\001 \001(\t\"\241\001\n" + + "\016formatted_diff\030\001 \001(\t\"\345\001\n" + "\035QueryDirectoryContentsRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\004 \001(\tB\003\340A\001\"~\n" + + "page_token\030\004 \001(\tB\003\340A\001\022B\n" + + "\004view\030\005 \001(\0162/.goog" + + "le.cloud.dataform.v1.DirectoryContentsViewB\003\340A\001\"~\n" + "\036QueryDirectoryContentsResponse\022C\n" - + "\021directory_entries\030\001 \003" - + "(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" - + "\017next_page_token\030\002 \001(\t\">\n" + + "\021directory_entries\030\001" + + " \003(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\203\001\n" + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" - + "\tdirectory\030\002 \001(\tH\000B\007\n" - + "\005entry\"\230\001\n" + + "\tdirectory\030\002 \001(\tH\000\022C\n" + + "\010metadata\030\003" + + " \001(\01321.google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + + "\005entry\"h\n" + + "\027FilesystemEntryMetadata\022\027\n\n" + + "size_bytes\030\001 \001(\003B\003\340A\003\0224\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\230\001\n" + "\022SearchFilesRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\026\n" @@ -963,8 +1113,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022m\n" - + " recent_scheduled_release_records\030\005 \003(\0132>.g" - + "oogle.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + + " recent_scheduled_release_records\030\005 \003(\0132>" + + ".google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + "\032release_compilation_result\030\006 \001(\tB1\340A\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\022#\n" @@ -975,9 +1125,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014error_status\030\003 \001(\0132\022.google.rpc.StatusH\000\0225\n" + "\014release_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojec" - + "ts/{project}/locations/{location}/reposi" - + "tories/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aproj" + + "ects/{project}/locations/{location}/repo" + + "sitories/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\210\001\n" + "\031ListReleaseConfigsRequest\022:\n" @@ -1005,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.dataform.v1.ReleaseConfigB\003\340A\002\"Y\n" + "\032DeleteReleaseConfigRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%dataform.googleapis.com/ReleaseConfig\"\357\007\n" + + "%dataform.googleapis.com/ReleaseConfig\"\312\010\n" + "\021CompilationResult\022\034\n\r" + "git_commitish\030\002 \001(\tB\003\340A\005H\000\022>\n" + "\tworkspace\030\003 \001(\tB)\340A\005\372A#\n" @@ -1013,26 +1163,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB-\340A\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022U\n" - + "\027code_compilation_config\030\004 \001(\0132/.goo" - + "gle.cloud.dataform.v1.CodeCompilationConfigB\003\340A\005\022$\n" + + "\027code_compilation_config\030\004 \001(\0132/.g" + + "oogle.cloud.dataform.v1.CodeCompilationConfigB\003\340A\005\022$\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\003\340A\003\022\"\n" + "\025dataform_core_version\030\005 \001(\tB\003\340A\003\022]\n" - + "\022compilation_errors\030\006 \003(\0132<.google." - + "cloud.dataform.v1.CompilationResult.CompilationErrorB\003\340A\003\022Q\n" + + "\022compilation_errors\030\006 \003(\0132<.googl" + + "e.cloud.dataform.v1.CompilationResult.CompilationErrorB\003\340A\003\022Q\n" + "\025data_encryption_state\030\t" + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\0224\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" - + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\032\215\001\n" + + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\014 \001(\01321.google.cl" + + "oud.dataform.v1.PrivateResourceMetadataB\003\340A\003\032\215\001\n" + "\020CompilationError\022\024\n" + "\007message\030\001 \001(\tB\003\340A\003\022\022\n" + "\005stack\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022<\n\r" + "action_target\030\004 \001(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iprojects/{pro" - + "ject}/locations/{location}/repositories/{repository}/compilationResults/{compila" - + "tion_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022i" + + "projects/{project}/locations/{location}/repositories/{repository}/compilationRes" + + "ults/{compilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\356\003\n" + "\025CodeCompilationConfig\022\035\n" @@ -1040,15 +1192,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\003\340A\001\022\035\n" + "\020default_location\030\010 \001(\tB\003\340A\001\022\035\n" + "\020assertion_schema\030\003 \001(\tB\003\340A\001\022L\n" - + "\004vars\030\004" - + " \003(\01329.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + + "\004vars\030\004 \003(\01329.google.cloud.datafo" + + "rm.v1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + "\017database_suffix\030\005 \001(\tB\003\340A\001\022\032\n\r" + "schema_suffix\030\006 \001(\tB\003\340A\001\022\031\n" + "\014table_prefix\030\007 \001(\tB\003\340A\001\022*\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\003\340A\001\022_\n" - + " default_notebook_runtime_options\030\t \001(\013" - + "20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + + " default_notebook_runtime_options\030\t" + + " \001(\01320.google.cloud.dataform.v1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + "\tVarsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\266\001\n" @@ -1083,56 +1235,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\003\340A\001\"\340\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022N\n" - + "\007columns\030\002 \003(\0132=.google." - + "cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" - + "\017bigquery_labels\030\003 \003(\0132@" - + ".google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 " + + "\003(\0132=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" + + "\017bigquery_labels\030\003" + + " \003(\0132@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" + "\024bigquery_policy_tags\030\003 \003(\t\0325\n" + "\023BigqueryLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\272\033\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + + "\005value\030\002 \001(\t:\0028\001\"\243\036\n" + "\027CompilationResultAction\022N\n" - + "\010relation\030\004" - + " \001(\0132:.google.cloud.dataform.v1.CompilationResultAction.RelationH\000\022R\n\n" - + "operations\030\005" - + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\000\022P\n" - + "\tassertion\030\006 \001(\0132;.google.cloud.dataform." - + "v1.CompilationResultAction.AssertionH\000\022T\n" - + "\013declaration\030\007 \001(\0132=.google.cloud.dataf" - + "orm.v1.CompilationResultAction.DeclarationH\000\022N\n" - + "\010notebook\030\010 \001(\0132:.google.cloud.da" - + "taform.v1.CompilationResultAction.NotebookH\000\022]\n" - + "\020data_preparation\030\t \001(\0132A.google." - + "cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\0220\n" + + "\010relation\030\004 \001(\0132:.google.cloud.d" + + "ataform.v1.CompilationResultAction.RelationH\000\022R\n\n" + + "operations\030\005 \001(\0132<.google.cloud" + + ".dataform.v1.CompilationResultAction.OperationsH\000\022P\n" + + "\tassertion\030\006 \001(\0132;.google.cl" + + "oud.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" + + "\013declaration\030\007 \001(\0132=.googl" + + "e.cloud.dataform.v1.CompilationResultAction.DeclarationH\000\022N\n" + + "\010notebook\030\010 \001(\0132:.go" + + "ogle.cloud.dataform.v1.CompilationResultAction.NotebookH\000\022]\n" + + "\020data_preparation\030\t " + + "\001(\0132A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022:\n" + "\020canonical_target\030\002 \001(\0132 .google.cloud.dataform.v1.Target\022\021\n" + "\tfile_path\030\003 \001(\t\022#\n" + "\021internal_metadata\030\n" - + " \001(\tB\003\340A\003H\001\210\001\001\032\305\010\n" + + " \001(\tB\003\340A\003H\001\210\001\001\032\256\013\n" + "\010Relation\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" - + "\010disabled\030\002 \001(\010\022\014\n" + + "\010dis", + "abled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\004 \001(" - + "\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" - + "relation_type\030\005 \001(\0162G.google." - + "cloud.dataform.v1.CompilationResultAction.Relation.RelationType\022\024\n" + + "\023relation_descriptor\030\004" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" + + "relation_type\030\005 " + + "\001(\0162G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022s\n" - + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dataform.v1.Comp" - + "ilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dat" + + "aform.v1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022m\n" - + "\022additional_options\030\016 \003(\0132Q.google.cloud.dataform.v1.Compi" - + "lationResultAction.Relation.AdditionalOptionsEntry\032\330\001\n" + + "\022additional_options\030\016 \003(\0132Q.google.cloud.data" + + "form.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\027\n\n" + + "connection\030\017 \001(\tB\003\340A\001\022a\n" + + "\014table_format\030\020 \001(\0162F.google." + + "cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\003\340A\001\022_\n" + + "\013file_format\030\021 \001(\0162E.google.cloud.dataform.v1.Comp" + + "ilationResultAction.Relation.FileFormatB\003\340A\001\022\030\n" + + "\013storage_uri\030\022 \001(\tB\003\340A\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" + "\020refresh_disabled\030\002 \001(\010\022\030\n" @@ -1144,18 +1304,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"p\n" + "\014RelationType\022\035\n" - + "\031RELATION_TYPE", - "_UNSPECIFIED\020\000\022\t\n" + + "\031RELATION_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005TABLE\020\001\022\010\n" + "\004VIEW\020\002\022\025\n" + "\021INCREMENTAL_TABLE\020\003\022\025\n" - + "\021MATERIALIZED_VIEW\020\004\032\332\001\n\n" + + "\021MATERIALIZED_VIEW\020\004\"8\n" + + "\013TableFormat\022\034\n" + + "\030TABLE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007ICEBERG\020\001\"6\n\n" + + "FileFormat\022\033\n" + + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007PARQUET\020\001\032\332\001\n\n" + "Operations\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\006" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" + + "\023relation_descriptor\030\006 \001(\0132,.goog" + + "le.cloud.dataform.v1.RelationDescriptor\022\017\n" + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\203\002\n" + "\tAssertion\022<\n" @@ -1164,8 +1329,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022I\n" - + "\023relation_descriptor\030\006 \001(\0132," - + ".google.cloud.dataform.v1.RelationDescriptor\032X\n" + + "\023relation_descriptor\030\006" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032X\n" + "\013Declaration\022I\n" + "\023relation_descriptor\030\001" + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" @@ -1176,30 +1341,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\247\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022g\n" - + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataform.v1.Compila" - + "tionResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataf" + + "orm.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" - + "\004tags\030\004 \003(\t\032\315\001\n\r" + + "\004tags\030\004 \003(\t\032\315\001\n" + + "\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022a\n" - + "\013error_table\030\002 \001(\0132L.g" - + "oogle.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" - + "\004load\030\003" - + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + + "\013error_table\030\002 \001(\0132L.google.cloud.dataform.v1.Co" + + "mpilationResultAction.DataPreparation.ErrorTable\022J\n" + + "\004load\030\003 \001(\0132<.google.cloud.da" + + "taform.v1.CompilationResultAction.LoadConfig\032V\n\n" + "ErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" + "definition\032\360\002\n\n" + "LoadConfig\022S\n" - + "\007replace\030\001" - + " \001(\0132@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" - + "\006append\030\002" - + " \001(\0132@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" - + "\007maximum\030\003 \001(\0132E.google.cloud.dataform.v1" - + ".CompilationResultAction.IncrementalLoadModeH\000\022W\n" - + "\006unique\030\004 \001(\0132E.google.cloud.da" - + "taform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132@.google.cloud.datafo" + + "rm.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" + + "\006append\030\002 \001(\0132@.google.cloud.da" + + "taform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" + + "\007maximum\030\003 \001(\0132E.google.clo" + + "ud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" + + "\006unique\030\004 \001(\0132E.g" + + "oogle.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1213,19 +1379,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\227\001\n" + "%QueryCompilationResultActionsResponse\022U\n" - + "\032compilation_result_actions\030\001" - + " \003(\01321.google.cloud.dataform.v1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01321.google.c" + + "loud.dataform.v1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\255\007\n" + "\016WorkflowConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022E\n" + "\016release_config\030\002 \001(\tB-\340A\002\372A\'\n" + "%dataform.googleapis.com/ReleaseConfig\022J\n" - + "\021invocation_config\030\003" - + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\001\022\032\n\r" + + "\021invocation_config\030\003 \001(" + + "\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022r\n" - + "\"recent_scheduled_execution_records\030\005 \003(\0132A.google.cloud.dataform.v1." - + "WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + + "\"recent_scheduled_execution_records\030\005 \003(\0132A.google.clou" + + "d.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" @@ -1238,10 +1404,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{location}" - + "/repositories/{repository}/workflowConfi" - + "gs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" - + "\022_internal_metadata\"\240\002\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locati" + + "ons/{location}/repositories/{repository}" + + "/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "\022_internal_metadata\"\334\003\n" + "\020InvocationConfig\022?\n" + "\020included_targets\030\001 \003(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\001\022\032\n\r" @@ -1249,7 +1415,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " transitive_dependencies_included\030\003 \001(\010B\003\340A\001\022+\n" + "\036transitive_dependents_included\030\004 \001(\010B\003\340A\001\0225\n" + "(fully_refresh_incremental_tables_enabled\030\005 \001(\010B\003\340A\001\022\034\n" - + "\017service_account\030\006 \001(\tB\003\340A\001\"\211\001\n" + + "\017service_account\030\006 \001(\tB\003\340A\001\022Z\n" + + "\016query_priority\030\t" + + " \001(\01628.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\003\340A\001H\000\210\001\001\"K\n\r" + + "QueryPriority\022\036\n" + + "\032QUERY_PRIORITY_UNSPECIFIED\020\000\022\017\n" + + "\013INTERACTIVE\020\001\022\t\n" + + "\005BATCH\020\002B\021\n" + + "\017_query_priority\"\211\001\n" + "\032ListWorkflowConfigsRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -1275,7 +1448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\003\340A\002\"[\n" + "\033DeleteWorkflowConfigRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&dataform.googleapis.com/WorkflowConfig\"\271\007\n" + + "&dataform.googleapis.com/WorkflowConfig\"\224\010\n" + "\022WorkflowInvocation\022O\n" + "\022compilation_result\030\002 \001(\tB1\340A\005\372A+\n" + ")dataform.googleapis.com/CompilationResultH\000\022I\n" @@ -1284,14 +1457,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022J\n" + "\021invocation_config\030\003" + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\003\340A\005\022F\n" - + "\005state\030\004 \001(\0162" - + "2.google.cloud.dataform.v1.WorkflowInvocation.StateB\003\340A\003\0225\n" + + "\005state\030\004 \001(" + + "\01622.google.cloud.dataform.v1.WorkflowInvocation.StateB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022V\n" + "\033resolved_compilation_result\030\007 \001(\tB1\340A\003\372A+\n" + ")dataform.googleapis.com/CompilationResult\022Q\n" - + "\025data_encryption_state\030\010 \001(\0132-.google." - + "cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\"d\n" + + "\025data_encryption_state\030\010 \001(\0132-.googl" + + "e.cloud.dataform.v1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\022Y\n" + + "\031private_resource_metadata\030\n" + + " \001(\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\003\340A\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1299,9 +1474,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojec" - + "ts/{project}/locations/{location}/repositories/{repository}/workflowInvocations/" - + "{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{loc" + + "ation}/repositories/{repository}/workflo" + + "wInvocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\271\001\n" + "\036ListWorkflowInvocationsRequest\022:\n" @@ -1312,8 +1487,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\233\001\n" + "\037ListWorkflowInvocationsResponse\022J\n" - + "\024workflow_invocations\030\001 \003(\013" - + "2,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001" + + " \003(\0132,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\034GetWorkflowInvocationRequest\022@\n" @@ -1322,8 +1497,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022N\n" - + "\023workflow_invocation\030\002 \001(\0132,.go" - + "ogle.cloud.dataform.v1.WorkflowInvocationB\003\340A\002\"c\n" + + "\023workflow_invocation\030\002" + + " \001(\0132,.google.cloud.dataform.v1.WorkflowInvocationB\003\340A\002\"c\n" + "\037DeleteWorkflowInvocationRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"c\n" @@ -1332,17 +1507,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\233\020\n" + "\030WorkflowInvocationAction\022a\n" - + "\017bigquery_action\030\006 \001(\0132A.google.cloud.datafo" - + "rm.v1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022a\n" - + "\017notebook_action\030\010 \001(\0132A." - + "google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\003\340A\003H\000\022p\n" - + "\027data_preparation_action\030\t \001(\0132H.google.cloud." - + "dataform.v1.WorkflowInvocationAction.DataPreparationActionB\003\340A\003H\000\0225\n" + + "\017bigquery_action\030\006 \001(\0132A.google" + + ".cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022a\n" + + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform.v1.Wo" + + "rkflowInvocationAction.NotebookActionB\003\340A\003H\000\022p\n" + + "\027data_preparation_action\030\t \001(\0132H.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationActionB\003\340A\003H\000\0225\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.TargetB\003\340A\003\022?\n" + "\020canonical_target\030\002 \001(\0132" + " .google.cloud.dataform.v1.TargetB\003\340A\003\022L\n" - + "\005state\030\004 \001(\016" - + "28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + + "\005state\030\004" + + " \001(\01628.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + "\016failure_reason\030\007 \001(\tB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022#\n" + "\021internal_metadata\030\n" @@ -1355,29 +1530,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006job_id\030\002 \001(\tB\003\340A\003\032\201\t\n" + "\025DataPreparationAction\022\034\n\r" + "contents_yaml\030\002 \001(\tB\003\340A\003H\000\022t\n" - + "\014contents_sql\030\006 \001(\0132\\.google.cl" - + "oud.dataform.v1.WorkflowInvocationAction" - + ".DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowInv" + + "ocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + "generated_sql\030\003 \001(\tB\003\340A\003\022\023\n" + "\006job_id\030\004 \001(\tB\003\340A\003\032\204\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022n\n" - + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocationA" - + "ction.DataPreparationAction.ActionErrorTable\022n\n" - + "\013load_config\030\003 \001(\0132Y.google.cloud" - + ".dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032\\\n" + + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.Workfl" + + "owInvocationAction.DataPreparationAction.ActionErrorTable\022n\n" + + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvoca" + + "tionAction.DataPreparationAction.ActionLoadConfig\032\\\n" + "\020ActionErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\352\003\n" + "\020ActionLoadConfig\022p\n" - + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1.Work" - + "flowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022o\n" - + "\006append\030\002 \001(\0132].google.cloud.dataform.v1.WorkflowInv" - + "ocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" - + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocatio" - + "nAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" - + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocationA" - + "ction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132].google.cloud.dat" + + "aform.v1.WorkflowInvocationAction.DataPr" + + "eparationAction.ActionSimpleLoadModeH\000\022o\n" + + "\006append\030\002 \001(\0132].google.cloud.dataform.v" + + "1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" + + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.Work" + + "flowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" + + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.Workfl" + + "owInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1389,8 +1564,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007SKIPPED\020\002\022\014\n" + "\010DISABLED\020\003\022\r\n" + "\tSUCCEEDED\020\004\022\r\n" - + "\tCANCELLED\020\005\022\n" - + "\n" + + "\tCANCELLED\020\005\022\n\n" + "\006FAILED\020\006B\010\n" + "\006actionB\024\n" + "\022_internal_metadata\"\232\001\n" @@ -1400,297 +1574,615 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\232\001\n" + "&QueryWorkflowInvocationActionsResponse\022W\n" - + "\033workflow_invocation_actions\030\001 \003(\0132" - + "2.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\312\001\n" + + "\033workflow_invocation_actions\030\001" + + " \003(\01322.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\002\n" + "\006Config\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022G\n" + "\024default_kms_key_name\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{project}/loc" - + "ations/{location}/config*\007configs2\006config\"H\n" + + "!cloudkms.googleapis.com/CryptoKey\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001:d\352Aa\n" + + "\036dataform.googleapis.com/Config\022.projects/{pr" + + "oject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\022_internal_metadata\"H\n" + "\020GetConfigRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036dataform.googleapis.com/Config\"\202\001\n" + "\023UpdateConfigRequest\0225\n" + "\006config\030\001 \001(\0132 .google.cloud.dataform.v1.ConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0012\213[\n" - + "\010Dataform\022\274\001\n" - + "\020ListRepositories\0221.google.cloud.dataform.v1.ListReposi" - + "toriesRequest\0322.google.cloud.dataform.v1" - + ".ListRepositoriesResponse\"A\332A\006parent\202\323\344\223" - + "\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" - + "GetRepository\022..google.cloud.dataform.v1.GetRepositoryRequest\032$" - + ".google.cloud.dataform.v1.Repository\"?\332A" - + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/repositories/*}\022\323\001\n" - + "\020CreateRepository\0221.google.cloud.dataform.v1.CreateRepo" - + "sitoryRequest\032$.google.cloud.dataform.v1" - + ".Repository\"f\332A\037parent,repository,reposi" - + "tory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/locations/*}/repositories:\n" - + "repository\022\325\001\n" - + "\020UpdateRepository\0221.google.cloud.dataform" - + ".v1.UpdateRepositoryRequest\032$.google.clo" - + "ud.dataform.v1.Repository\"h\332A\026repository" - + ",update_mask\202\323\344\223\002I2;/v1/{repository.name" - + "=projects/*/locations/*/repositories/*}:\n" - + "repository\022\236\001\n" - + "\020DeleteRepository\0221.google.cloud.dataform.v1.DeleteRepositoryRequ" - + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" - + "\0022*0/v1/{name=projects/*/locations/*/repositories/*}\022\322\001\n" - + "\027CommitRepositoryChanges\0228.google.cloud.dataform.v1.CommitReposi" - + "toryChangesRequest\0329.google.cloud.datafo" - + "rm.v1.CommitRepositoryChangesResponse\"B\202" - + "\323\344\223\002<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\001*\022\302\001\n" - + "\022ReadRepositoryFile\0223.google.cloud.dataform.v1.Read" - + "RepositoryFileRequest\0324.google.cloud.dat" - + "aform.v1.ReadRepositoryFileResponse\"A\202\323\344" - + "\223\002;\0229/v1/{name=projects/*/locations/*/repositories/*}:readFile\022\372\001\n" - + " QueryRepositoryDirectoryContents\022A.google.cloud.dataf" - + "orm.v1.QueryRepositoryDirectoryContentsRequest\032B.google.cloud.dataform.v1.QueryR" - + "epositoryDirectoryContentsResponse\"O\202\323\344\223" - + "\002I\022G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\322\001\n" - + "\026FetchRepositoryHistory\0227.google.cloud.da" - + "taform.v1.FetchRepositoryHistoryRequest\0328.google.cloud.dataform.v1.FetchReposito" - + "ryHistoryResponse\"E\202\323\344\223\002?\022=/v1/{name=pro" - + "jects/*/locations/*/repositories/*}:fetchHistory\022\202\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022C.google.cloud.dataform.v1.Compu" - + "teRepositoryAccessTokenStatusRequest\032D.google.cloud.dataform.v1.ComputeRepositor" - + "yAccessTokenStatusResponse\"Q\202\323\344\223\002K\022I/v1/" - + "{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\022\320\001\n" - + "\023FetchRemoteBranches\0224.google.cloud.dataform.v1" - + ".FetchRemoteBranchesRequest\0325.google.cloud.dataform.v1.FetchRemoteBranchesRespon" - + "se\"L\202\323\344\223\002F\022D/v1/{name=projects/*/locatio" - + "ns/*/repositories/*}:fetchRemoteBranches\022\303\001\n" - + "\016ListWorkspaces\022/.google.cloud.dataform.v1.ListWorkspacesRequest\0320.google.cl" - + "oud.dataform.v1.ListWorkspacesResponse\"N" - + "\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/" - + "locations/*/repositories/*}/workspaces\022\260\001\n" - + "\014GetWorkspace\022-.google.cloud.dataform." - + "v1.GetWorkspaceRequest\032#.google.cloud.da" - + "taform.v1.Workspace\"L\332A\004name\202\323\344\223\002?\022=/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}\022\332\001\n" - + "\017CreateWorkspace\0220.google.cloud.dataform.v1.CreateWorkspace" - + "Request\032#.google.cloud.dataform.v1.Works" - + "pace\"p\332A\035parent,workspace,workspace_id\202\323" - + "\344\223\002J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:" - + "\tworkspace\022\251\001\n" - + "\017DeleteWorkspace\0220.google.cloud.datafo" - + "rm.v1.DeleteWorkspaceRequest\032\026.google.pr" - + "otobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}\022\341\001\n" - + "\022InstallNpmPackages\0223.google.cloud.dataform.v1.InstallNpmPackagesR" - + "equest\0324.google.cloud.dataform.v1.Instal" - + "lNpmPackagesResponse\"`\202\323\344\223\002Z\"U/v1/{works" - + "pace=projects/*/locations/*/repositories" - + "/*/workspaces/*}:installNpmPackages:\001*\022\302\001\n" - + "\016PullGitCommits\022/.google.cloud.datafor" - + "m.v1.PullGitCommitsRequest\0320.google.clou" - + "d.dataform.v1.PullGitCommitsResponse\"M\202\323" - + "\344\223\002G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\302\001\n" - + "\016PushGitCommits\022/.google.cloud.dataform.v" - + "1.PushGitCommitsRequest\0320.google.cloud.d" - + "ataform.v1.PushGitCommitsResponse\"M\202\323\344\223\002" - + "G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\001*\022\341\001\n" - + "\024FetchFileGitStatuses\0225.google.cloud.datafor" - + "m.v1.FetchFileGitStatusesRequest\0326.google.cloud.dataform.v1.FetchFileGitStatuses" - + "Response\"Z\202\323\344\223\002T\022R/v1/{name=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\022\335\001\n" - + "\023FetchGitAheadBehind\0224.google.cloud.dataform.v1.FetchGit" - + "AheadBehindRequest\0325.google.cloud.datafo" - + "rm.v1.FetchGitAheadBehindResponse\"Y\202\323\344\223\002" - + "S\022Q/v1/{name=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:fetchGitAheadBehind\022\334\001\n" - + "\026CommitWorkspaceChanges\0227.google.cloud.dataform.v1.CommitWorkspaceChange" - + "sRequest\0328.google.cloud.dataform.v1.Comm" - + "itWorkspaceChangesResponse\"O\202\323\344\223\002I\"D/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\001*\022\330\001\n" - + "\025ResetWorkspaceChanges\0226.google.cloud.dataform.v1" - + ".ResetWorkspaceChangesRequest\0327.google.cloud.dataform.v1.ResetWorkspaceChangesRe" - + "sponse\"N\202\323\344\223\002H\"C/v1/{name=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:reset:\001*\022\312\001\n\r" - + "FetchFileDiff\022..google.cloud.dataform.v1.FetchFileDiffRequest\032/.googl" - + "e.cloud.dataform.v1.FetchFileDiffRespons" - + "e\"X\202\323\344\223\002R\022P/v1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:fetchFileDiff\022\356\001\n" - + "\026QueryDirectoryContents\0227.google.cloud.dataform.v1.QueryDirectory" - + "ContentsRequest\0328.google.cloud.dataform." - + "v1.QueryDirectoryContentsResponse\"a\202\323\344\223\002" - + "[\022Y/v1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:queryDirectoryContents\022\302\001\n" - + "\013SearchFiles\022,.google.cloud.dataform.v1.SearchFilesRequest\032-.goo" - + "gle.cloud.dataform.v1.SearchFilesRespons" - + "e\"V\202\323\344\223\002P\022N/v1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:searchFiles\022\315\001\n\r" - + "MakeDirectory\022..google.cloud.dataform.v1.MakeDirectoryRequest\032/.go" - + "ogle.cloud.dataform.v1.MakeDirectoryResp" - + "onse\"[\202\323\344\223\002U\"P/v1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}:makeDirectory:\001*\022\325\001\n" - + "\017RemoveDirectory\0220.google.cloud.dataform.v1.RemoveDirectory" - + "Request\0321.google.cloud.dataform.v1.Remov" - + "eDirectoryResponse\"]\202\323\344\223\002W\"R/v1/{workspa" - + "ce=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\001*\022\315\001\n\r" - + "MoveDirectory\022..google.cloud.dataform.v1.M" - + "oveDirectoryRequest\032/.google.cloud.dataf" - + "orm.v1.MoveDirectoryResponse\"[\202\323\344\223\002U\"P/v" - + "1/{workspace=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:moveDirectory:\001*\022\266\001\n" - + "\010ReadFile\022).google.cloud.dataform.v1.ReadFileRequest\032*.google.cloud.datafor" - + "m.v1.ReadFileResponse\"S\202\323\344\223\002M\022K/v1/{work" - + "space=projects/*/locations/*/repositories/*/workspaces/*}:readFile\022\301\001\n\n" - + "RemoveFile\022+.google.cloud.dataform.v1.RemoveFileR" - + "equest\032,.google.cloud.dataform.v1.Remove" - + "FileResponse\"X\202\323\344\223\002R\"M/v1/{workspace=pro" - + "jects/*/locations/*/repositories/*/workspaces/*}:removeFile:\001*\022\271\001\n" - + "\010MoveFile\022).google.cloud.dataform.v1.MoveFileRequest\032*" - + ".google.cloud.dataform.v1.MoveFileRespon" - + "se\"V\202\323\344\223\002P\"K/v1/{workspace=projects/*/lo" - + "cations/*/repositories/*/workspaces/*}:moveFile:\001*\022\275\001\n" - + "\tWriteFile\022*.google.cloud.dataform.v1.WriteFileRequest\032+.google.cl" - + "oud.dataform.v1.WriteFileResponse\"W\202\323\344\223\002" - + "Q\"L/v1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:writeFile:\001*\022\323\001\n" - + "\022ListReleaseConfigs\0223.google.cloud.dataform.v1.ListReleaseConfigsRequest\0324" - + ".google.cloud.dataform.v1.ListReleaseCon" - + "figsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{pare" - + "nt=projects/*/locations/*/repositories/*}/releaseConfigs\022\300\001\n" - + "\020GetReleaseConfig\0221.google.cloud.dataform.v1.GetReleaseConfi" - + "gRequest\032\'.google.cloud.dataform.v1.Rele" - + "aseConfig\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=proj" - + "ects/*/locations/*/repositories/*/releaseConfigs/*}\022\372\001\n" - + "\023CreateReleaseConfig\0224.google.cloud.dataform.v1.CreateReleaseConf" - + "igRequest\032\'.google.cloud.dataform.v1.Rel" - + "easeConfig\"\203\001\332A\'parent,release_config,re", - "lease_config_id\202\323\344\223\002S\"A/v1/{parent=proje" - + "cts/*/locations/*/repositories/*}/releas" - + "eConfigs:\016release_config\022\374\001\n\023UpdateRelea" - + "seConfig\0224.google.cloud.dataform.v1.Upda" - + "teReleaseConfigRequest\032\'.google.cloud.da" - + "taform.v1.ReleaseConfig\"\205\001\332A\032release_con" - + "fig,update_mask\202\323\344\223\002b2P/v1/{release_conf" - + "ig.name=projects/*/locations/*/repositor" - + "ies/*/releaseConfigs/*}:\016release_config\022" - + "\265\001\n\023DeleteReleaseConfig\0224.google.cloud.d" - + "ataform.v1.DeleteReleaseConfigRequest\032\026." - + "google.protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\317\003\n" + + "\006Folder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\036\n" + + "\021containing_folder\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020team_folder_name\030\004 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\010 \001(\tB\003\340A\003H\001\210\001\001:n\352Ak\n" + + "\036dataform.googleapis.com/Folder\0228projects/{proje" + + "ct}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\207\001\n" + + "\023CreateFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\0225\n" + + "\006folder\030\002 \001(\0132" + + " .google.cloud.dataform.v1.FolderB\003\340A\002\"\234\001\n" + + "\021MoveFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"H\n" + + "\020GetFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"\202\001\n" + + "\023UpdateFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0225\n" + + "\006folder\030\002 \001(\0132 .google.cloud.dataform.v1.FolderB\003\340A\002\"K\n" + + "\023DeleteFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"c\n" + + "\027DeleteFolderTreeRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"k\n" + + "\033DeleteTeamFolderTreeRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"\342\002\n" + + "\030DeleteFolderTreeMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022L\n" + + "\005state\030\004 \001(\01628.google.clo" + + "ud.dataform.v1.DeleteFolderTreeMetadata.StateB\003\340A\003\022\035\n" + + "\020percent_complete\030\005 \001(\005B\003\340A\003\"[\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\"\261\001\n" + + "\032QueryFolderContentsRequest\0226\n" + + "\006folder\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\243\002\n" + + "\033QueryFolderContentsResponse\022Z\n" + + "\007entries\030\001 \003(\0132I.google.cloud.dataform.v1.QueryFold" + + "erContentsResponse.FolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\216\001\n" + + "\023FolderContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\270\001\n" + + "\034QueryUserRootContentsRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\243\002\n" + + "\035QueryUserRootContentsResponse\022Z\n" + + "\007entries\030\001 \003(\0132I.google.cloud.dataform.v1.QueryU" + + "serRootContentsResponse.RootContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\214\001\n" + + "\021RootContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\253\003\n\n" + + "TeamFolder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\006 \001(" + + "\tB\003\340A\003H\001\210\001\001:\204\001\352A\200\001\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{project}/" + + "locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "teamFolderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\224\001\n" + + "\027CreateTeamFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022>\n" + + "\013team_folder\030\002" + + " \001(\0132$.google.cloud.dataform.v1.TeamFolderB\003\340A\002\"P\n" + + "\024GetTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\217\001\n" + + "\027UpdateTeamFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022>\n" + + "\013team_folder\030\002" + + " \001(\0132$.google.cloud.dataform.v1.TeamFolderB\003\340A\002\"S\n" + + "\027DeleteTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\276\001\n" + + "\036QueryTeamFolderContentsRequest\022?\n" + + "\013team_folder\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\263\002\n" + + "\037QueryTeamFolderContentsResponse\022b\n" + + "\007entries\030\001 \003(\0132Q.google.c" + + "loud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\222\001\n" + + "\027TeamFolderContentsEntry\0222\n" + + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + + "\005entry\"\264\001\n" + + "\030SearchTeamFoldersRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\361\001\n" + + "\031SearchTeamFoldersResponse\022[\n" + + "\007results\030\001 \003(\0132J.g" + + "oogle.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\017next_page_token\030\002 \001(\t\032^\n" + + "\026TeamFolderSearchResult\022;\n" + + "\013team_folder\030\002 \001(\0132$.google.cloud.dataform.v1.TeamFolderH\000B\007\n" + + "\005entry\"\312\002\n" + + "\022MoveFolderMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022A\n" + + "\005state\030\004 \001(\01622." + + "google.cloud.dataform.v1.MoveFolderMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\004\"\322\002\n" + + "\026MoveRepositoryMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022E\n" + + "\005state\030\004" + + " \001(\01626.google.cloud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\004*\211\001\n" + + "\025DirectoryContentsView\022\'\n" + + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\343}\n" + + "\010Dataform\022\245\001\n\r" + + "GetTeamFolder\022..google.cloud.dataform.v1.GetTeamFolderR" + + "equest\032$.google.cloud.dataform.v1.TeamFo" + + "lder\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/teamFolders/*}\022\306\001\n" + + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.Cre" + + "ateTeamFolderRequest\032$.google.cloud.data" + + "form.v1.TeamFolder\"Y\332A\022parent,team_folde" + + "r\202\323\344\223\002>\"//v1/{parent=projects/*/location", + "s/*}/teamFolders:\013team_folder\022\327\001\n\020Update" + + "TeamFolder\0221.google.cloud.dataform.v1.Up" + + "dateTeamFolderRequest\032$.google.cloud.dat" + + "aform.v1.TeamFolder\"j\332A\027team_folder,upda" + + "te_mask\202\323\344\223\002J2;/v1/{team_folder.name=pro" + + "jects/*/locations/*/teamFolders/*}:\013team" + + "_folder\022\235\001\n\020DeleteTeamFolder\0221.google.cl" + + "oud.dataform.v1.DeleteTeamFolderRequest\032" + + "\026.google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/teamFol" + + "ders/*}\022\365\001\n\024DeleteTeamFolderTree\0225.googl" + + "e.cloud.dataform.v1.DeleteTeamFolderTree" + + "Request\032\035.google.longrunning.Operation\"\206" + + "\001\312A1\n\025google.protobuf.Empty\022\030DeleteFolde" + + "rTreeMetadata\332A\nname,force\202\323\344\223\002?\":/v1/{n" + + "ame=projects/*/locations/*/teamFolders/*" + + "}:deleteTree:\001*\022\352\001\n\027QueryTeamFolderConte" + + "nts\0228.google.cloud.dataform.v1.QueryTeam" + + "FolderContentsRequest\0329.google.cloud.dat" + + "aform.v1.QueryTeamFolderContentsResponse" + + "\"Z\332A\013team_folder\202\323\344\223\002F\022D/v1/{team_folder" + + "=projects/*/locations/*/teamFolders/*}:q" + + "ueryContents\022\276\001\n\021SearchTeamFolders\0222.goo" + + "gle.cloud.dataform.v1.SearchTeamFoldersR" + + "equest\0323.google.cloud.dataform.v1.Search" + + "TeamFoldersResponse\"@\202\323\344\223\002:\0228/v1/{locati" + + "on=projects/*/locations/*}/teamFolders:s" + + "earch\022\225\001\n\tGetFolder\022*.google.cloud.dataf" + + "orm.v1.GetFolderRequest\032 .google.cloud.d" + + "ataform.v1.Folder\":\332A\004name\202\323\344\223\002-\022+/v1/{n" + + "ame=projects/*/locations/*/folders/*}\022\254\001" + + "\n\014CreateFolder\022-.google.cloud.dataform.v" + + "1.CreateFolderRequest\032 .google.cloud.dat" + + "aform.v1.Folder\"K\332A\rparent,folder\202\323\344\223\0025\"" + + "+/v1/{parent=projects/*/locations/*}/fol" + + "ders:\006folder\022\270\001\n\014UpdateFolder\022-.google.c" + + "loud.dataform.v1.UpdateFolderRequest\032 .g" + + "oogle.cloud.dataform.v1.Folder\"W\332A\022folde" + + "r,update_mask\202\323\344\223\002<22/v1/{folder.name=pr" + + "ojects/*/locations/*/folders/*}:\006folder\022" + + "\221\001\n\014DeleteFolder\022-.google.cloud.dataform" + + ".v1.DeleteFolderRequest\032\026.google.protobu" + + "f.Empty\":\332A\004name\202\323\344\223\002-*+/v1/{name=projec" + + "ts/*/locations/*/folders/*}\022\351\001\n\020DeleteFo" + + "lderTree\0221.google.cloud.dataform.v1.Dele" + + "teFolderTreeRequest\032\035.google.longrunning" + + ".Operation\"\202\001\312A1\n\025google.protobuf.Empty\022" + + "\030DeleteFolderTreeMetadata\332A\nname,force\202\323" + + "\344\223\002;\"6/v1/{name=projects/*/locations/*/f" + + "olders/*}:deleteTree:\001*\022\326\001\n\023QueryFolderC" + + "ontents\0224.google.cloud.dataform.v1.Query" + + "FolderContentsRequest\0325.google.cloud.dat" + + "aform.v1.QueryFolderContentsResponse\"R\332A" + + "\006folder\202\323\344\223\002C\022A/v1/{folder=projects/*/lo" + + "cations/*/folders/*}:queryFolderContents" + + "\022\330\001\n\025QueryUserRootContents\0226.google.clou" + + "d.dataform.v1.QueryUserRootContentsReque" + + "st\0327.google.cloud.dataform.v1.QueryUserR" + + "ootContentsResponse\"N\332A\010location\202\323\344\223\002=\022;" + + "/v1/{location=projects/*/locations/*}:qu" + + "eryUserRootContents\022\351\001\n\nMoveFolder\022+.goo" + + "gle.cloud.dataform.v1.MoveFolderRequest\032" + + "\035.google.longrunning.Operation\"\216\001\312A+\n\025go" + + "ogle.protobuf.Empty\022\022MoveFolderMetadata\332" + + "A\"name,destination_containing_folder\202\323\344\223" + + "\0025\"0/v1/{name=projects/*/locations/*/fol" + + "ders/*}:move:\001*\022\274\001\n\020ListRepositories\0221.g" + + "oogle.cloud.dataform.v1.ListRepositories" + + "Request\0322.google.cloud.dataform.v1.ListR" + + "epositoriesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" + + "1/{parent=projects/*/locations/*}/reposi" + + "tories\022\246\001\n\rGetRepository\022..google.cloud." + + "dataform.v1.GetRepositoryRequest\032$.googl" + + "e.cloud.dataform.v1.Repository\"?\332A\004name\202" + + "\323\344\223\0022\0220/v1/{name=projects/*/locations/*/" + + "repositories/*}\022\323\001\n\020CreateRepository\0221.g" + + "oogle.cloud.dataform.v1.CreateRepository" + + "Request\032$.google.cloud.dataform.v1.Repos" + + "itory\"f\332A\037parent,repository,repository_i" + + "d\202\323\344\223\002>\"0/v1/{parent=projects/*/location" + + "s/*}/repositories:\nrepository\022\325\001\n\020Update" + + "Repository\0221.google.cloud.dataform.v1.Up" + + "dateRepositoryRequest\032$.google.cloud.dat" + + "aform.v1.Repository\"h\332A\026repository,updat" + + "e_mask\202\323\344\223\002I2;/v1/{repository.name=proje" + + "cts/*/locations/*/repositories/*}:\nrepos" + + "itory\022\236\001\n\020DeleteRepository\0221.google.clou" + + "d.dataform.v1.DeleteRepositoryRequest\032\026." + + "google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v" + "1/{name=projects/*/locations/*/repositor" - + "ies/*/releaseConfigs/*}\022\343\001\n\026ListCompilat" - + "ionResults\0227.google.cloud.dataform.v1.Li" - + "stCompilationResultsRequest\0328.google.clo" - + "ud.dataform.v1.ListCompilationResultsRes" - + "ponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/compi" - + "lationResults\022\320\001\n\024GetCompilationResult\0225" - + ".google.cloud.dataform.v1.GetCompilation" - + "ResultRequest\032+.google.cloud.dataform.v1" - + ".CompilationResult\"T\332A\004name\202\323\344\223\002G\022E/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/compilationResults/*}\022\377\001\n\027CreateCompi" - + "lationResult\0228.google.cloud.dataform.v1." - + "CreateCompilationResultRequest\032+.google." - + "cloud.dataform.v1.CompilationResult\"}\332A\031" - + "parent,compilation_result\202\323\344\223\002[\"E/v1/{pa" - + "rent=projects/*/locations/*/repositories" - + "/*}/compilationResults:\022compilation_resu" - + "lt\022\365\001\n\035QueryCompilationResultActions\022>.g" - + "oogle.cloud.dataform.v1.QueryCompilation" - + "ResultActionsRequest\032?.google.cloud.data" - + "form.v1.QueryCompilationResultActionsRes" - + "ponse\"S\202\323\344\223\002M\022K/v1/{name=projects/*/loca" - + "tions/*/repositories/*/compilationResult" - + "s/*}:query\022\327\001\n\023ListWorkflowConfigs\0224.goo" - + "gle.cloud.dataform.v1.ListWorkflowConfig" - + "sRequest\0325.google.cloud.dataform.v1.List" - + "WorkflowConfigsResponse\"S\332A\006parent\202\323\344\223\002D" - + "\022B/v1/{parent=projects/*/locations/*/rep" - + "ositories/*}/workflowConfigs\022\304\001\n\021GetWork" - + "flowConfig\0222.google.cloud.dataform.v1.Ge" - + "tWorkflowConfigRequest\032(.google.cloud.da" - + "taform.v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002D\022" - + "B/v1/{name=projects/*/locations/*/reposi" - + "tories/*/workflowConfigs/*}\022\201\002\n\024CreateWo" - + "rkflowConfig\0225.google.cloud.dataform.v1." - + "CreateWorkflowConfigRequest\032(.google.clo" - + "ud.dataform.v1.WorkflowConfig\"\207\001\332A)paren" - + "t,workflow_config,workflow_config_id\202\323\344\223" - + "\002U\"B/v1/{parent=projects/*/locations/*/r" - + "epositories/*}/workflowConfigs:\017workflow" - + "_config\022\203\002\n\024UpdateWorkflowConfig\0225.googl" - + "e.cloud.dataform.v1.UpdateWorkflowConfig" - + "Request\032(.google.cloud.dataform.v1.Workf" - + "lowConfig\"\211\001\332A\033workflow_config,update_ma" - + "sk\202\323\344\223\002e2R/v1/{workflow_config.name=proj" + + "ies/*}\022\372\001\n\016MoveRepository\022/.google.cloud" + + ".dataform.v1.MoveRepositoryRequest\032\035.goo" + + "gle.longrunning.Operation\"\227\001\312A/\n\025google." + + "protobuf.Empty\022\026MoveRepositoryMetadata\332A" + + "\"name,destination_containing_folder\202\323\344\223\002" + + ":\"5/v1/{name=projects/*/locations/*/repo" + + "sitories/*}:move:\001*\022\322\001\n\027CommitRepository" + + "Changes\0228.google.cloud.dataform.v1.Commi" + + "tRepositoryChangesRequest\0329.google.cloud" + + ".dataform.v1.CommitRepositoryChangesResp" + + "onse\"B\202\323\344\223\002<\"7/v1/{name=projects/*/locat" + + "ions/*/repositories/*}:commit:\001*\022\302\001\n\022Rea" + + "dRepositoryFile\0223.google.cloud.dataform." + + "v1.ReadRepositoryFileRequest\0324.google.cl" + + "oud.dataform.v1.ReadRepositoryFileRespon" + + "se\"A\202\323\344\223\002;\0229/v1/{name=projects/*/locatio" + + "ns/*/repositories/*}:readFile\022\372\001\n QueryR" + + "epositoryDirectoryContents\022A.google.clou" + + "d.dataform.v1.QueryRepositoryDirectoryCo" + + "ntentsRequest\032B.google.cloud.dataform.v1" + + ".QueryRepositoryDirectoryContentsRespons" + + "e\"O\202\323\344\223\002I\022G/v1/{name=projects/*/location" + + "s/*/repositories/*}:queryDirectoryConten" + + "ts\022\322\001\n\026FetchRepositoryHistory\0227.google.c" + + "loud.dataform.v1.FetchRepositoryHistoryR" + + "equest\0328.google.cloud.dataform.v1.FetchR" + + "epositoryHistoryResponse\"E\202\323\344\223\002?\022=/v1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*}:fetchHistory\022\202\002\n\"ComputeRepositoryAcc" + + "essTokenStatus\022C.google.cloud.dataform.v" + + "1.ComputeRepositoryAccessTokenStatusRequ" + + "est\032D.google.cloud.dataform.v1.ComputeRe" + + "positoryAccessTokenStatusResponse\"Q\202\323\344\223\002" + + "K\022I/v1/{name=projects/*/locations/*/repo" + + "sitories/*}:computeAccessTokenStatus\022\320\001\n" + + "\023FetchRemoteBranches\0224.google.cloud.data" + + "form.v1.FetchRemoteBranchesRequest\0325.goo" + + "gle.cloud.dataform.v1.FetchRemoteBranche" + + "sResponse\"L\202\323\344\223\002F\022D/v1/{name=projects/*/" + + "locations/*/repositories/*}:fetchRemoteB" + + "ranches\022\303\001\n\016ListWorkspaces\022/.google.clou" + + "d.dataform.v1.ListWorkspacesRequest\0320.go" + + "ogle.cloud.dataform.v1.ListWorkspacesRes" + + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" + + "ects/*/locations/*/repositories/*}/works" + + "paces\022\260\001\n\014GetWorkspace\022-.google.cloud.da" + + "taform.v1.GetWorkspaceRequest\032#.google.c" + + "loud.dataform.v1.Workspace\"L\332A\004name\202\323\344\223\002" + + "?\022=/v1/{name=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}\022\332\001\n\017CreateWorks" + + "pace\0220.google.cloud.dataform.v1.CreateWo" + + "rkspaceRequest\032#.google.cloud.dataform.v" + + "1.Workspace\"p\332A\035parent,workspace,workspa" + + "ce_id\202\323\344\223\002J\"=/v1/{parent=projects/*/loca" + + "tions/*/repositories/*}/workspaces:\twork" + + "space\022\251\001\n\017DeleteWorkspace\0220.google.cloud" + + ".dataform.v1.DeleteWorkspaceRequest\032\026.go" + + "ogle.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v1/" + + "{name=projects/*/locations/*/repositorie" + + "s/*/workspaces/*}\022\341\001\n\022InstallNpmPackages" + + "\0223.google.cloud.dataform.v1.InstallNpmPa" + + "ckagesRequest\0324.google.cloud.dataform.v1" + + ".InstallNpmPackagesResponse\"`\202\323\344\223\002Z\"U/v1" + + "/{workspace=projects/*/locations/*/repos" + + "itories/*/workspaces/*}:installNpmPackag" + + "es:\001*\022\302\001\n\016PullGitCommits\022/.google.cloud." + + "dataform.v1.PullGitCommitsRequest\0320.goog" + + "le.cloud.dataform.v1.PullGitCommitsRespo" + + "nse\"M\202\323\344\223\002G\"B/v1/{name=projects/*/locati" + + "ons/*/repositories/*/workspaces/*}:pull:" + + "\001*\022\302\001\n\016PushGitCommits\022/.google.cloud.dat" + + "aform.v1.PushGitCommitsRequest\0320.google." + + "cloud.dataform.v1.PushGitCommitsResponse" + + "\"M\202\323\344\223\002G\"B/v1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:push:\001*\022" + + "\341\001\n\024FetchFileGitStatuses\0225.google.cloud." + + "dataform.v1.FetchFileGitStatusesRequest\032" + + "6.google.cloud.dataform.v1.FetchFileGitS" + + "tatusesResponse\"Z\202\323\344\223\002T\022R/v1/{name=proje" + + "cts/*/locations/*/repositories/*/workspa" + + "ces/*}:fetchFileGitStatuses\022\335\001\n\023FetchGit" + + "AheadBehind\0224.google.cloud.dataform.v1.F" + + "etchGitAheadBehindRequest\0325.google.cloud" + + ".dataform.v1.FetchGitAheadBehindResponse" + + "\"Y\202\323\344\223\002S\022Q/v1/{name=projects/*/locations" + + "/*/repositories/*/workspaces/*}:fetchGit" + + "AheadBehind\022\334\001\n\026CommitWorkspaceChanges\0227" + + ".google.cloud.dataform.v1.CommitWorkspac" + + "eChangesRequest\0328.google.cloud.dataform." + + "v1.CommitWorkspaceChangesResponse\"O\202\323\344\223\002" + + "I\"D/v1/{name=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:commit:\001*\022\330\001\n\025R" + + "esetWorkspaceChanges\0226.google.cloud.data" + + "form.v1.ResetWorkspaceChangesRequest\0327.g" + + "oogle.cloud.dataform.v1.ResetWorkspaceCh" + + "angesResponse\"N\202\323\344\223\002H\"C/v1/{name=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:reset:\001*\022\312\001\n\rFetchFileDiff\022..google" + + ".cloud.dataform.v1.FetchFileDiffRequest\032" + + "/.google.cloud.dataform.v1.FetchFileDiff" + + "Response\"X\202\323\344\223\002R\022P/v1/{workspace=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:fetchFileDiff\022\356\001\n\026QueryDirectoryCon" + + "tents\0227.google.cloud.dataform.v1.QueryDi" + + "rectoryContentsRequest\0328.google.cloud.da" + + "taform.v1.QueryDirectoryContentsResponse" + + "\"a\202\323\344\223\002[\022Y/v1/{workspace=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:que" + + "ryDirectoryContents\022\302\001\n\013SearchFiles\022,.go" + + "ogle.cloud.dataform.v1.SearchFilesReques" + + "t\032-.google.cloud.dataform.v1.SearchFiles" + + "Response\"V\202\323\344\223\002P\022N/v1/{workspace=project" + + "s/*/locations/*/repositories/*/workspace" + + "s/*}:searchFiles\022\315\001\n\rMakeDirectory\022..goo" + + "gle.cloud.dataform.v1.MakeDirectoryReque" + + "st\032/.google.cloud.dataform.v1.MakeDirect" + + "oryResponse\"[\202\323\344\223\002U\"P/v1/{workspace=proj" + + "ects/*/locations/*/repositories/*/worksp" + + "aces/*}:makeDirectory:\001*\022\325\001\n\017RemoveDirec" + + "tory\0220.google.cloud.dataform.v1.RemoveDi" + + "rectoryRequest\0321.google.cloud.dataform.v" + + "1.RemoveDirectoryResponse\"]\202\323\344\223\002W\"R/v1/{" + + "workspace=projects/*/locations/*/reposit" + + "ories/*/workspaces/*}:removeDirectory:\001*" + + "\022\315\001\n\rMoveDirectory\022..google.cloud.datafo" + + "rm.v1.MoveDirectoryRequest\032/.google.clou" + + "d.dataform.v1.MoveDirectoryResponse\"[\202\323\344" + + "\223\002U\"P/v1/{workspace=projects/*/locations" + + "/*/repositories/*/workspaces/*}:moveDire" + + "ctory:\001*\022\266\001\n\010ReadFile\022).google.cloud.dat" + + "aform.v1.ReadFileRequest\032*.google.cloud." + + "dataform.v1.ReadFileResponse\"S\202\323\344\223\002M\022K/v" + + "1/{workspace=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:readFile\022\301\001\n\nRe" + + "moveFile\022+.google.cloud.dataform.v1.Remo" + + "veFileRequest\032,.google.cloud.dataform.v1" + + ".RemoveFileResponse\"X\202\323\344\223\002R\"M/v1/{worksp" + + "ace=projects/*/locations/*/repositories/" + + "*/workspaces/*}:removeFile:\001*\022\271\001\n\010MoveFi" + + "le\022).google.cloud.dataform.v1.MoveFileRe" + + "quest\032*.google.cloud.dataform.v1.MoveFil" + + "eResponse\"V\202\323\344\223\002P\"K/v1/{workspace=projec" + + "ts/*/locations/*/repositories/*/workspac" + + "es/*}:moveFile:\001*\022\275\001\n\tWriteFile\022*.google" + + ".cloud.dataform.v1.WriteFileRequest\032+.go" + + "ogle.cloud.dataform.v1.WriteFileResponse" + + "\"W\202\323\344\223\002Q\"L/v1/{workspace=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:wri" + + "teFile:\001*\022\323\001\n\022ListReleaseConfigs\0223.googl" + + "e.cloud.dataform.v1.ListReleaseConfigsRe" + + "quest\0324.google.cloud.dataform.v1.ListRel" + + "easeConfigsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/releaseConfigs\022\300\001\n\020GetReleaseCo" + + "nfig\0221.google.cloud.dataform.v1.GetRelea" + + "seConfigRequest\032\'.google.cloud.dataform." + + "v1.ReleaseConfig\"P\332A\004name\202\323\344\223\002C\022A/v1/{na" + + "me=projects/*/locations/*/repositories/*" + + "/releaseConfigs/*}\022\372\001\n\023CreateReleaseConf" + + "ig\0224.google.cloud.dataform.v1.CreateRele" + + "aseConfigRequest\032\'.google.cloud.dataform" + + ".v1.ReleaseConfig\"\203\001\332A\'parent,release_co" + + "nfig,release_config_id\202\323\344\223\002S\"A/v1/{paren" + + "t=projects/*/locations/*/repositories/*}" + + "/releaseConfigs:\016release_config\022\374\001\n\023Upda" + + "teReleaseConfig\0224.google.cloud.dataform." + + "v1.UpdateReleaseConfigRequest\032\'.google.c" + + "loud.dataform.v1.ReleaseConfig\"\205\001\332A\032rele" + + "ase_config,update_mask\202\323\344\223\002b2P/v1/{relea" + + "se_config.name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}:\016release_" + + "config\022\265\001\n\023DeleteReleaseConfig\0224.google." + + "cloud.dataform.v1.DeleteReleaseConfigReq" + + "uest\032\026.google.protobuf.Empty\"P\332A\004name\202\323\344" + + "\223\002C*A/v1/{name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}\022\343\001\n\026ListC" + + "ompilationResults\0227.google.cloud.datafor" + + "m.v1.ListCompilationResultsRequest\0328.goo" + + "gle.cloud.dataform.v1.ListCompilationRes" + + "ultsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/compilationResults\022\320\001\n\024GetCompilationR" + + "esult\0225.google.cloud.dataform.v1.GetComp" + + "ilationResultRequest\032+.google.cloud.data" + + "form.v1.CompilationResult\"T\332A\004name\202\323\344\223\002G" + + "\022E/v1/{name=projects/*/locations/*/repos" + + "itories/*/compilationResults/*}\022\377\001\n\027Crea" + + "teCompilationResult\0228.google.cloud.dataf" + + "orm.v1.CreateCompilationResultRequest\032+." + + "google.cloud.dataform.v1.CompilationResu" + + "lt\"}\332A\031parent,compilation_result\202\323\344\223\002[\"E" + + "/v1/{parent=projects/*/locations/*/repos" + + "itories/*}/compilationResults:\022compilati" + + "on_result\022\365\001\n\035QueryCompilationResultActi" + + "ons\022>.google.cloud.dataform.v1.QueryComp" + + "ilationResultActionsRequest\032?.google.clo" + + "ud.dataform.v1.QueryCompilationResultAct" + + "ionsResponse\"S\202\323\344\223\002M\022K/v1/{name=projects" + + "/*/locations/*/repositories/*/compilatio" + + "nResults/*}:query\022\327\001\n\023ListWorkflowConfig" + + "s\0224.google.cloud.dataform.v1.ListWorkflo" + + "wConfigsRequest\0325.google.cloud.dataform." + + "v1.ListWorkflowConfigsResponse\"S\332A\006paren" + + "t\202\323\344\223\002D\022B/v1/{parent=projects/*/location" + + "s/*/repositories/*}/workflowConfigs\022\304\001\n\021" + + "GetWorkflowConfig\0222.google.cloud.datafor" + + "m.v1.GetWorkflowConfigRequest\032(.google.c" + + "loud.dataform.v1.WorkflowConfig\"Q\332A\004name" + + "\202\323\344\223\002D\022B/v1/{name=projects/*/locations/*" + + "/repositories/*/workflowConfigs/*}\022\201\002\n\024C" + + "reateWorkflowConfig\0225.google.cloud.dataf" + + "orm.v1.CreateWorkflowConfigRequest\032(.goo" + + "gle.cloud.dataform.v1.WorkflowConfig\"\207\001\332" + + "A)parent,workflow_config,workflow_config" + + "_id\202\323\344\223\002U\"B/v1/{parent=projects/*/locati" + + "ons/*/repositories/*}/workflowConfigs:\017w" + + "orkflow_config\022\203\002\n\024UpdateWorkflowConfig\022" + + "5.google.cloud.dataform.v1.UpdateWorkflo" + + "wConfigRequest\032(.google.cloud.dataform.v" + + "1.WorkflowConfig\"\211\001\332A\033workflow_config,up" + + "date_mask\202\323\344\223\002e2R/v1/{workflow_config.na" + + "me=projects/*/locations/*/repositories/*" + + "/workflowConfigs/*}:\017workflow_config\022\270\001\n" + + "\024DeleteWorkflowConfig\0225.google.cloud.dat" + + "aform.v1.DeleteWorkflowConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workflowConfigs/*}\022\347\001\n\027ListWorkflow" + + "Invocations\0228.google.cloud.dataform.v1.L" + + "istWorkflowInvocationsRequest\0329.google.c" + + "loud.dataform.v1.ListWorkflowInvocations" + + "Response\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=p" + + "rojects/*/locations/*/repositories/*}/wo" + + "rkflowInvocations\022\324\001\n\025GetWorkflowInvocat" + + "ion\0226.google.cloud.dataform.v1.GetWorkfl" + + "owInvocationRequest\032,.google.cloud.dataf" + + "orm.v1.WorkflowInvocation\"U\332A\004name\202\323\344\223\002H" + + "\022F/v1/{name=projects/*/locations/*/repos" + + "itories/*/workflowInvocations/*}\022\206\002\n\030Cre" + + "ateWorkflowInvocation\0229.google.cloud.dat" + + "aform.v1.CreateWorkflowInvocationRequest" + + "\032,.google.cloud.dataform.v1.WorkflowInvo" + + "cation\"\200\001\332A\032parent,workflow_invocation\202\323" + + "\344\223\002]\"F/v1/{parent=projects/*/locations/*" + + "/repositories/*}/workflowInvocations:\023wo" + + "rkflow_invocation\022\304\001\n\030DeleteWorkflowInvo" + + "cation\0229.google.cloud.dataform.v1.Delete" + + "WorkflowInvocationRequest\032\026.google.proto" + + "buf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=proj" + "ects/*/locations/*/repositories/*/workfl" - + "owConfigs/*}:\017workflow_config\022\270\001\n\024Delete" - + "WorkflowConfig\0225.google.cloud.dataform.v" - + "1.DeleteWorkflowConfigRequest\032\026.google.p" - + "rotobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{name=" + + "owInvocations/*}\022\353\001\n\030CancelWorkflowInvoc" + + "ation\0229.google.cloud.dataform.v1.CancelW" + + "orkflowInvocationRequest\032:.google.cloud." + + "dataform.v1.CancelWorkflowInvocationResp" + + "onse\"X\202\323\344\223\002R\"M/v1/{name=projects/*/locat" + + "ions/*/repositories/*/workflowInvocation" + + "s/*}:cancel:\001*\022\371\001\n\036QueryWorkflowInvocati" + + "onActions\022?.google.cloud.dataform.v1.Que" + + "ryWorkflowInvocationActionsRequest\032@.goo" + + "gle.cloud.dataform.v1.QueryWorkflowInvoc" + + "ationActionsResponse\"T\202\323\344\223\002N\022L/v1/{name=" + "projects/*/locations/*/repositories/*/wo" - + "rkflowConfigs/*}\022\347\001\n\027ListWorkflowInvocat" - + "ions\0228.google.cloud.dataform.v1.ListWork" - + "flowInvocationsRequest\0329.google.cloud.da" - + "taform.v1.ListWorkflowInvocationsRespons" - + "e\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projects" - + "/*/locations/*/repositories/*}/workflowI" - + "nvocations\022\324\001\n\025GetWorkflowInvocation\0226.g" - + "oogle.cloud.dataform.v1.GetWorkflowInvoc" - + "ationRequest\032,.google.cloud.dataform.v1." - + "WorkflowInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/workflowInvocations/*}\022\206\002\n\030CreateWork" - + "flowInvocation\0229.google.cloud.dataform.v" - + "1.CreateWorkflowInvocationRequest\032,.goog" - + "le.cloud.dataform.v1.WorkflowInvocation\"" - + "\200\001\332A\032parent,workflow_invocation\202\323\344\223\002]\"F/" - + "v1/{parent=projects/*/locations/*/reposi" - + "tories/*}/workflowInvocations:\023workflow_" - + "invocation\022\304\001\n\030DeleteWorkflowInvocation\022" - + "9.google.cloud.dataform.v1.DeleteWorkflo" - + "wInvocationRequest\032\026.google.protobuf.Emp" - + "ty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=projects/*/" - + "locations/*/repositories/*/workflowInvoc" - + "ations/*}\022\353\001\n\030CancelWorkflowInvocation\0229" - + ".google.cloud.dataform.v1.CancelWorkflow" - + "InvocationRequest\032:.google.cloud.datafor" - + "m.v1.CancelWorkflowInvocationResponse\"X\202" - + "\323\344\223\002R\"M/v1/{name=projects/*/locations/*/" - + "repositories/*/workflowInvocations/*}:ca" - + "ncel:\001*\022\371\001\n\036QueryWorkflowInvocationActio" - + "ns\022?.google.cloud.dataform.v1.QueryWorkf" - + "lowInvocationActionsRequest\032@.google.clo" - + "ud.dataform.v1.QueryWorkflowInvocationAc" - + "tionsResponse\"T\202\323\344\223\002N\022L/v1/{name=project" - + "s/*/locations/*/repositories/*/workflowI" - + "nvocations/*}:query\022\222\001\n\tGetConfig\022*.goog" - + "le.cloud.dataform.v1.GetConfigRequest\032 ." - + "google.cloud.dataform.v1.Config\"7\332A\004name" - + "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" - + "/config}\022\265\001\n\014UpdateConfig\022-.google.cloud" - + ".dataform.v1.UpdateConfigRequest\032 .googl" - + "e.cloud.dataform.v1.Config\"T\332A\022config,up" - + "date_mask\202\323\344\223\00292//v1/{config.name=projec" - + "ts/*/locations/*/config}:\006config\032t\312A\027dat" - + "aform.googleapis.com\322AWhttps://www.googl" - + "eapis.com/auth/bigquery,https://www.goog" - + "leapis.com/auth/cloud-platformB\336\005\n\034com.g" - + "oogle.cloud.dataform.v1B\rDataformProtoP\001" - + "Z8cloud.google.com/go/dataform/apiv1/dat" - + "aformpb;dataformpb\252\002\030Google.Cloud.Datafo" - + "rm.V1\312\002\030Google\\Cloud\\Dataform\\V1\352\002\033Googl" - + "e::Cloud::Dataform::V1\352Ad\n*secretmanager" - + ".googleapis.com/SecretVersion\0226projects/" - + "{project}/secrets/{secret}/versions/{ver" - + "sion}\352Ax\n!cloudkms.googleapis.com/Crypto" - + "Key\022Sprojects/{project}/locations/{locat" - + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" - + "pto_key}\352A\246\001\n(cloudkms.googleapis.com/Cr" - + "yptoKeyVersion\022zprojects/{project}/locat" - + "ions/{location}/keyRings/{key_ring}/cryp" - + "toKeys/{crypto_key}/cryptoKeyVersions/{c" - + "rypto_key_version}\352A\221\001\n1aiplatform.googl" - + "eapis.com/NotebookRuntimeTemplate\022\\proje" - + "cts/{project}/locations/{location}/noteb" - + "ookRuntimeTemplates/{notebook_runtime_te" - + "mplate}b\006proto3" + + "rkflowInvocations/*}:query\022\222\001\n\tGetConfig" + + "\022*.google.cloud.dataform.v1.GetConfigReq" + + "uest\032 .google.cloud.dataform.v1.Config\"7" + + "\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/loca" + + "tions/*/config}\022\265\001\n\014UpdateConfig\022-.googl" + + "e.cloud.dataform.v1.UpdateConfigRequest\032" + + " .google.cloud.dataform.v1.Config\"T\332A\022co" + + "nfig,update_mask\202\323\344\223\00292//v1/{config.name" + + "=projects/*/locations/*/config}:\006config\022" + + "\367\002\n\014GetIamPolicy\022\".google.iam.v1.GetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"\253\002\332A" + + "\010resource\202\323\344\223\002\231\002\022A/v1/{resource=projects" + + "/*/locations/*/repositories/*}:getIamPol" + + "icyZP\022N/v1/{resource=projects/*/location" + + "s/*/repositories/*/workspaces/*}:getIamP" + + "olicyZ>\022 + * `DeleteFolder` request message. + *
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderRequest) + DeleteFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderRequest"); + } + + // Use DeleteFolderRequest.newBuilder() to construct. + private DeleteFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1.DeleteFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.DeleteFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderRequest other = + (com.google.cloud.dataform.v1.DeleteFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.DeleteFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderRequest) + com.google.cloud.dataform.v1.DeleteFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1.DeleteFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest build() { + com.google.cloud.dataform.v1.DeleteFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderRequest result = + new com.google.cloud.dataform.v1.DeleteFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderRequest) + private static final com.google.cloud.dataform.v1.DeleteFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java new file mode 100644 index 000000000000..b38fd4d602eb --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java new file mode 100644 index 000000000000..bda95ce46ce6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadata.java @@ -0,0 +1,1699 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the DeleteFolderTree Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + DeleteFolderTreeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeMetadata"); + } + + // Use DeleteFolderTreeMetadata.newBuilder() to construct. + private DeleteFolderTreeMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the DeleteFolderTree operation.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The operation was initialized and recorded by the server, but not yet
            +     * started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The operation is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The operation has completed successfully.
            +     * 
            + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
            +     * The operation has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The operation was initialized and recorded by the server, but not yet
            +     * started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The operation is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The operation has completed successfully.
            +     * 
            + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
            +     * The operation has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Output only. Percent complete of the operation [0, 100].
            +   * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.DeleteFolderTreeMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata other = + (com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the DeleteFolderTree Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + com.google.cloud.dataform.v1.DeleteFolderTreeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata build() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result = + new com.google.cloud.dataform.v1.DeleteFolderTreeMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderTreeMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Resource name of the target of the operation.
            +     * Format: projects/{project}/locations/{location}/folders/{folder} or
            +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the operation.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Percent complete of the operation [0, 100].
            +     * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + private static final com.google.cloud.dataform.v1.DeleteFolderTreeMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderTreeMetadata(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java new file mode 100644 index 000000000000..1ffcc5899fde --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeMetadataOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderTreeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Resource name of the target of the operation.
            +   * Format: projects/{project}/locations/{location}/folders/{folder} or
            +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * Output only. The state of the operation.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1.DeleteFolderTreeMetadata.State getState(); + + /** + * + * + *
            +   * Output only. Percent complete of the operation [0, 100].
            +   * 
            + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java new file mode 100644 index 000000000000..0d0311fd919b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequest.java @@ -0,0 +1,738 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteFolderTree` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteFolderTreeRequest) + DeleteFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeRequest"); + } + + // Use DeleteFolderTreeRequest.newBuilder() to construct. + private DeleteFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.DeleteFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteFolderTreeRequest other = + (com.google.cloud.dataform.v1.DeleteFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.DeleteFolderTreeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteFolderTree` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteFolderTreeRequest) + com.google.cloud.dataform.v1.DeleteFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest build() { + com.google.cloud.dataform.v1.DeleteFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteFolderTreeRequest result = + new com.google.cloud.dataform.v1.DeleteFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteFolderTreeRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * Format: projects/{project}/locations/{location}/folders/{folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteFolderTreeRequest) + private static final com.google.cloud.dataform.v1.DeleteFolderTreeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..8b0ce4397c96 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * Format: projects/{project}/locations/{location}/folders/{folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java index db26adbc46f8..1c48927a32f3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequest.java @@ -134,9 +134,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -   * Optional. If set to true, any child resources of this repository will also
            -   * be deleted. (Otherwise, the request will only succeed if the repository has
            -   * no child resources.)
            +   * Optional. If set to true, child resources of this repository (compilation
            +   * results and workflow invocations) will also be deleted. Otherwise, the
            +   * request will only succeed if the repository has no child resources.
            +   *
            +   * **Note:** *This flag doesn't support deletion of workspaces, release
            +   * configs or workflow configs. If any of such resources exists in the
            +   * repository, the request will fail.*.
                * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -607,9 +611,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -625,9 +633,13 @@ public boolean getForce() { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -647,9 +659,13 @@ public Builder setForce(boolean value) { * * *
            -     * Optional. If set to true, any child resources of this repository will also
            -     * be deleted. (Otherwise, the request will only succeed if the repository has
            -     * no child resources.)
            +     * Optional. If set to true, child resources of this repository (compilation
            +     * results and workflow invocations) will also be deleted. Otherwise, the
            +     * request will only succeed if the repository has no child resources.
            +     *
            +     * **Note:** *This flag doesn't support deletion of workspaces, release
            +     * configs or workflow configs. If any of such resources exists in the
            +     * repository, the request will fail.*.
                  * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java index 96d88e4aa2cf..9ac3f5ee1f93 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteRepositoryRequestOrBuilder.java @@ -60,9 +60,13 @@ public interface DeleteRepositoryRequestOrBuilder * * *
            -   * Optional. If set to true, any child resources of this repository will also
            -   * be deleted. (Otherwise, the request will only succeed if the repository has
            -   * no child resources.)
            +   * Optional. If set to true, child resources of this repository (compilation
            +   * results and workflow invocations) will also be deleted. Otherwise, the
            +   * request will only succeed if the repository has no child resources.
            +   *
            +   * **Note:** *This flag doesn't support deletion of workspaces, release
            +   * configs or workflow configs. If any of such resources exists in the
            +   * repository, the request will fail.*.
                * 
            * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java new file mode 100644 index 000000000000..d57002d48c27 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteTeamFolderRequest) + DeleteTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderRequest"); + } + + // Use DeleteTeamFolderRequest.newBuilder() to construct. + private DeleteTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.DeleteTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteTeamFolderRequest other = + (com.google.cloud.dataform.v1.DeleteTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.DeleteTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteTeamFolderRequest) + com.google.cloud.dataform.v1.DeleteTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest build() { + com.google.cloud.dataform.v1.DeleteTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteTeamFolderRequest result = + new com.google.cloud.dataform.v1.DeleteTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteTeamFolderRequest) + private static final com.google.cloud.dataform.v1.DeleteTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..7beb27156b9e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java new file mode 100644 index 000000000000..e9648ca85d8e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequest.java @@ -0,0 +1,739 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `DeleteTeamFolderTree` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + DeleteTeamFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderTreeRequest"); + } + + // Use DeleteTeamFolderTreeRequest.newBuilder() to construct. + private DeleteTeamFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest other = + (com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `DeleteTeamFolderTree` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.DeleteTeamFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest build() { + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result = + new com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest other) { + if (other == com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If `false` (default): The operation will fail if any
            +     * Repository within the folder hierarchy has associated Release Configs or
            +     * Workflow Configs.
            +     *
            +     * If `true`: The operation will attempt to delete everything, including any
            +     * Release Configs and Workflow Configs linked to Repositories within the
            +     * folder hierarchy. This permanently removes schedules and resources.
            +     * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + private static final com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderTreeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..3092a2673e37 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DeleteTeamFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.DeleteTeamFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. If `false` (default): The operation will fail if any
            +   * Repository within the folder hierarchy has associated Release Configs or
            +   * Workflow Configs.
            +   *
            +   * If `true`: The operation will attempt to delete everything, including any
            +   * Release Configs and Workflow Configs linked to Repositories within the
            +   * folder hierarchy. This permanently removes schedules and resources.
            +   * 
            + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java new file mode 100644 index 000000000000..4c637060cb19 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryContentsView.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents the level of detail to return for directory contents.
            + * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.DirectoryContentsView} + */ +@com.google.protobuf.Generated +public enum DirectoryContentsView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED(0), + /** + * + * + *
            +   * Includes only the file or directory name. This is the default behavior.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + DIRECTORY_CONTENTS_VIEW_BASIC(1), + /** + * + * + *
            +   * Includes all metadata for each file or directory. Currently not supported
            +   * by CMEK-protected workspaces.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + DIRECTORY_CONTENTS_VIEW_METADATA(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DirectoryContentsView"); + } + + /** + * + * + *
            +   * The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + public static final int DIRECTORY_CONTENTS_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Includes only the file or directory name. This is the default behavior.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + public static final int DIRECTORY_CONTENTS_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
            +   * Includes all metadata for each file or directory. Currently not supported
            +   * by CMEK-protected workspaces.
            +   * 
            + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + public static final int DIRECTORY_CONTENTS_VIEW_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DirectoryContentsView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DirectoryContentsView forNumber(int value) { + switch (value) { + case 0: + return DIRECTORY_CONTENTS_VIEW_UNSPECIFIED; + case 1: + return DIRECTORY_CONTENTS_VIEW_BASIC; + case 2: + return DIRECTORY_CONTENTS_VIEW_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DirectoryContentsView findValueByNumber(int number) { + return DirectoryContentsView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DirectoryContentsView[] VALUES = values(); + + public static DirectoryContentsView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DirectoryContentsView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.DirectoryContentsView) +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java index 7638302d40a4..eb802889a4f3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntry.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.DirectoryEntry.Builder.class); } + private int bitField0_; private int entryCase_ = 0; @SuppressWarnings("serial") @@ -264,6 +265,59 @@ public com.google.protobuf.ByteString getDirectoryBytes() { } } + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1.FilesystemEntryMetadata metadata_; + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -284,6 +338,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entryCase_ == 2) { com.google.protobuf.GeneratedMessage.writeString(output, 2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMetadata()); + } getUnknownFields().writeTo(output); } @@ -299,6 +356,9 @@ public int getSerializedSize() { if (entryCase_ == 2) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -315,6 +375,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataform.v1.DirectoryEntry other = (com.google.cloud.dataform.v1.DirectoryEntry) obj; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!getEntryCase().equals(other.getEntryCase())) return false; switch (entryCase_) { case 1: @@ -337,6 +401,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } switch (entryCase_) { case 1: hash = (37 * hash) + FILE_FIELD_NUMBER; @@ -479,16 +547,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataform.v1.DirectoryEntry.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } entryCase_ = 0; entry_ = null; return this; @@ -528,6 +610,12 @@ public com.google.cloud.dataform.v1.DirectoryEntry buildPartial() { private void buildPartial0(com.google.cloud.dataform.v1.DirectoryEntry result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataform.v1.DirectoryEntry result) { @@ -547,6 +635,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataform.v1.DirectoryEntry other) { if (other == com.google.cloud.dataform.v1.DirectoryEntry.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } switch (other.getEntryCase()) { case FILE: { @@ -607,6 +698,13 @@ public Builder mergeFrom( entry_ = s; break; } // case 18 + case 26: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -918,6 +1016,202 @@ public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.FilesystemEntryMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.dataform.v1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.dataform.v1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
            +     * Entry with metadata.
            +     * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.DirectoryEntry) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java index 98ff39d8211c..bbc1d1ce196d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DirectoryEntryOrBuilder.java @@ -104,5 +104,42 @@ public interface DirectoryEntryOrBuilder */ com.google.protobuf.ByteString getDirectoryBytes(); + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + com.google.cloud.dataform.v1.FilesystemEntryMetadata getMetadata(); + + /** + * + * + *
            +   * Entry with metadata.
            +   * 
            + * + * .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder(); + com.google.cloud.dataform.v1.DirectoryEntry.EntryCase getEntryCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java new file mode 100644 index 000000000000..592a48ceb8eb --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadata.java @@ -0,0 +1,816 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents metadata for a single entry in a filesystem.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.FilesystemEntryMetadata} + */ +@com.google.protobuf.Generated +public final class FilesystemEntryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.FilesystemEntryMetadata) + FilesystemEntryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FilesystemEntryMetadata"); + } + + // Use FilesystemEntryMetadata.newBuilder() to construct. + private FilesystemEntryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilesystemEntryMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder.class); + } + + private int bitField0_; + public static final int SIZE_BYTES_FIELD_NUMBER = 1; + private long sizeBytes_ = 0L; + + /** + * + * + *
            +   * Output only. Provides the size of the entry in bytes. For directories, this
            +   * will be 0.
            +   * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sizeBytes_ != 0L) { + output.writeInt64(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.FilesystemEntryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.FilesystemEntryMetadata other = + (com.google.cloud.dataform.v1.FilesystemEntryMetadata) obj; + + if (getSizeBytes() != other.getSizeBytes()) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.FilesystemEntryMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents metadata for a single entry in a filesystem.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.FilesystemEntryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.FilesystemEntryMetadata) + com.google.cloud.dataform.v1.FilesystemEntryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1.FilesystemEntryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.FilesystemEntryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sizeBytes_ = 0L; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata build() { + com.google.cloud.dataform.v1.FilesystemEntryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata buildPartial() { + com.google.cloud.dataform.v1.FilesystemEntryMetadata result = + new com.google.cloud.dataform.v1.FilesystemEntryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.FilesystemEntryMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.FilesystemEntryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.FilesystemEntryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.FilesystemEntryMetadata other) { + if (other == com.google.cloud.dataform.v1.FilesystemEntryMetadata.getDefaultInstance()) + return this; + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long sizeBytes_; + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Provides the size of the entry in bytes. For directories, this
            +     * will be 0.
            +     * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000001); + sizeBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Represents the time of the last modification of the entry.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.FilesystemEntryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.FilesystemEntryMetadata) + private static final com.google.cloud.dataform.v1.FilesystemEntryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.FilesystemEntryMetadata(); + } + + public static com.google.cloud.dataform.v1.FilesystemEntryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilesystemEntryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.FilesystemEntryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java new file mode 100644 index 000000000000..e4d71a8dd2b9 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FilesystemEntryMetadataOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface FilesystemEntryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.FilesystemEntryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Provides the size of the entry in bytes. For directories, this
            +   * will be 0.
            +   * 
            + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time of the last modification of the entry.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java new file mode 100644 index 000000000000..f3162bdf12d2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Folder.java @@ -0,0 +1,2312 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents a Dataform Folder. This is a resource that is used to organize
            + * Files and other Folders and provide hierarchical access controls.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.Folder} + */ +@com.google.protobuf.Generated +public final class Folder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.Folder) + FolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Folder"); + } + + // Use Folder.newBuilder() to construct. + private Folder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Folder() { + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.Folder.class, + com.google.cloud.dataform.v1.Folder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, creatorIamPrincipal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.Folder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.Folder other = (com.google.cloud.dataform.v1.Folder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.Folder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.Folder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a Dataform Folder. This is a resource that is used to organize
            +   * Files and other Folders and provide hierarchical access controls.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.Folder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.Folder) + com.google.cloud.dataform.v1.FolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.Folder.class, + com.google.cloud.dataform.v1.Folder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.Folder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_Folder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder build() { + com.google.cloud.dataform.v1.Folder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder buildPartial() { + com.google.cloud.dataform.v1.Folder result = new com.google.cloud.dataform.v1.Folder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.Folder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containingFolder_ = containingFolder_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.teamFolderName_ = teamFolderName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.Folder) { + return mergeFrom((com.google.cloud.dataform.v1.Folder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.Folder other) { + if (other == com.google.cloud.dataform.v1.Folder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContainingFolder().isEmpty()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTeamFolderName().isEmpty()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The Folder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The containing Folder resource name. This should take
            +     * the format: projects/{project}/locations/{location}/folders/{folder},
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +     * projects/{project}/locations/{location} if this is a root Folder. This
            +     * field can only be updated through MoveFolder.
            +     * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Folder is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Folder is not associated with a TeamFolder and is a
            +     * UserFolder.
            +     * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the Folder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the Folder.
            +     * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Folder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.Folder) + private static final com.google.cloud.dataform.v1.Folder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.Folder(); + } + + public static com.google.cloud.dataform.v1.Folder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java new file mode 100644 index 000000000000..1b355a0e18d8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/folders/{folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String folder; + + @Deprecated + protected FolderName() { + project = null; + location = null; + folder = null; + } + + private FolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + folder = Preconditions.checkNotNull(builder.getFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FolderName of(String project, String location, String folder) { + return newBuilder().setProject(project).setLocation(location).setFolder(folder).build(); + } + + public static String format(String project, String location, String folder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFolder(folder) + .build() + .toString(); + } + + public static FolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FOLDER.validatedMatch( + formattedString, "FolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FOLDER.instantiate( + "project", project, "location", location, "folder", folder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FolderName that = ((FolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.folder, that.folder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(folder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/folders/{folder}. */ + public static class Builder { + private String project; + private String location; + private String folder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + private Builder(FolderName folderName) { + this.project = folderName.project; + this.location = folderName.location; + this.folder = folderName.folder; + } + + public FolderName build() { + return new FolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java new file mode 100644 index 000000000000..7f4fb3eb9aac --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderOrBuilder.java @@ -0,0 +1,318 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface FolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.Folder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The Folder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Required. The Folder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
            +   * Optional. The containing Folder resource name. This should take
            +   * the format: projects/{project}/locations/{location}/folders/{folder},
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
            +   * projects/{project}/locations/{location} if this is a root Folder. This
            +   * field can only be updated through MoveFolder.
            +   * 
            + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Folder is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Folder is not associated with a TeamFolder and is a
            +   * UserFolder.
            +   * 
            + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the Folder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the Folder.
            +   * 
            + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java new file mode 100644 index 000000000000..f5ebf5097232 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequest.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `GetFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.GetFolderRequest) + GetFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFolderRequest"); + } + + // Use GetFolderRequest.newBuilder() to construct. + private GetFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetFolderRequest.class, + com.google.cloud.dataform.v1.GetFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.GetFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.GetFolderRequest other = + (com.google.cloud.dataform.v1.GetFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.GetFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `GetFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.GetFolderRequest) + com.google.cloud.dataform.v1.GetFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetFolderRequest.class, + com.google.cloud.dataform.v1.GetFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.GetFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest build() { + com.google.cloud.dataform.v1.GetFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest buildPartial() { + com.google.cloud.dataform.v1.GetFolderRequest result = + new com.google.cloud.dataform.v1.GetFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.GetFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.GetFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.GetFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.GetFolderRequest other) { + if (other == com.google.cloud.dataform.v1.GetFolderRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Folder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.GetFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.GetFolderRequest) + private static final com.google.cloud.dataform.v1.GetFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.GetFolderRequest(); + } + + public static com.google.cloud.dataform.v1.GetFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java new file mode 100644 index 000000000000..41e7fff35107 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface GetFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.GetFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Folder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java new file mode 100644 index 000000000000..915b796a3b53 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `GetTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.GetTeamFolderRequest) + GetTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetTeamFolderRequest"); + } + + // Use GetTeamFolderRequest.newBuilder() to construct. + private GetTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1.GetTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.GetTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.GetTeamFolderRequest other = + (com.google.cloud.dataform.v1.GetTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.GetTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `GetTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.GetTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.GetTeamFolderRequest) + com.google.cloud.dataform.v1.GetTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1.GetTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.GetTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.GetTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest build() { + com.google.cloud.dataform.v1.GetTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.GetTeamFolderRequest result = + new com.google.cloud.dataform.v1.GetTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.GetTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.GetTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.GetTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.GetTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.GetTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's name.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.GetTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.GetTeamFolderRequest) + private static final com.google.cloud.dataform.v1.GetTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.GetTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.GetTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.GetTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..f422b431f8af --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/GetTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface GetTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.GetTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The TeamFolder's name.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java index c10aac4029df..c4090c95dad6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfig.java @@ -57,6 +57,7 @@ private InvocationConfig() { includedTargets_ = java.util.Collections.emptyList(); includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + queryPriority_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -74,6 +75,184 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1.InvocationConfig.Builder.class); } + /** + * + * + *
            +   * Types of priority for query execution in BigQuery.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.InvocationConfig.QueryPriority} + */ + public enum QueryPriority implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. This value is unused.
            +     * 
            + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + QUERY_PRIORITY_UNSPECIFIED(0), + /** + * + * + *
            +     * Query will be executed in BigQuery with interactive priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * INTERACTIVE = 1; + */ + INTERACTIVE(1), + /** + * + * + *
            +     * Query will be executed in BigQuery with batch priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
            +     * 
            + * + * BATCH = 2; + */ + BATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryPriority"); + } + + /** + * + * + *
            +     * Default value. This value is unused.
            +     * 
            + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + public static final int QUERY_PRIORITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Query will be executed in BigQuery with interactive priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * INTERACTIVE = 1; + */ + public static final int INTERACTIVE_VALUE = 1; + + /** + * + * + *
            +     * Query will be executed in BigQuery with batch priority.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
            +     * 
            + * + * BATCH = 2; + */ + public static final int BATCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryPriority valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryPriority forNumber(int value) { + switch (value) { + case 0: + return QUERY_PRIORITY_UNSPECIFIED; + case 1: + return INTERACTIVE; + case 2: + return BATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryPriority findValueByNumber(int number) { + return QueryPriority.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.InvocationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final QueryPriority[] VALUES = values(); + + public static QueryPriority valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryPriority(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.InvocationConfig.QueryPriority) + } + + private int bitField0_; public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -343,6 +522,73 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int QUERY_PRIORITY_FIELD_NUMBER = 9; + private int queryPriority_ = 0; + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.forNumber(queryPriority_); + return result == null + ? com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -375,6 +621,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(9, queryPriority_); + } getUnknownFields().writeTo(output); } @@ -411,6 +660,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, queryPriority_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -435,6 +687,10 @@ public boolean equals(final java.lang.Object obj) { if (getFullyRefreshIncrementalTablesEnabled() != other.getFullyRefreshIncrementalTablesEnabled()) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasQueryPriority() != other.hasQueryPriority()) return false; + if (hasQueryPriority()) { + if (queryPriority_ != other.queryPriority_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,6 +722,10 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled()); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasQueryPriority()) { + hash = (37 * hash) + QUERY_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + queryPriority_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +880,7 @@ public Builder clear() { transitiveDependentsIncluded_ = false; fullyRefreshIncrementalTablesEnabled_ = false; serviceAccount_ = ""; + queryPriority_ = 0; return this; } @@ -685,6 +946,12 @@ private void buildPartial0(com.google.cloud.dataform.v1.InvocationConfig result) if (((from_bitField0_ & 0x00000020) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPriority_ = queryPriority_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -750,6 +1017,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.InvocationConfig other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.hasQueryPriority()) { + setQueryPriorityValue(other.getQueryPriorityValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -820,6 +1090,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 72: + { + queryPriority_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1725,6 +2001,144 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private int queryPriority_ = 0; + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriorityValue(int value) { + queryPriority_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.forNumber(queryPriority_); + return result == null + ? com.google.cloud.dataform.v1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriority( + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + queryPriority_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the priority for query execution in BigQuery.
            +     * More information can be found at
            +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +     * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPriority() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPriority_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.InvocationConfig) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java index 287f983680bb..bf44ae78a821 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/InvocationConfigOrBuilder.java @@ -215,4 +215,55 @@ public interface InvocationConfigOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + boolean hasQueryPriority(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + int getQueryPriorityValue(); + + /** + * + * + *
            +   * Optional. Specifies the priority for query execution in BigQuery.
            +   * More information can be found at
            +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
            +   * 
            + * + * + * optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + com.google.cloud.dataform.v1.InvocationConfig.QueryPriority getQueryPriority(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java new file mode 100644 index 000000000000..5ecf92cd9069 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadata.java @@ -0,0 +1,1664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the MoveFolder Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderMetadata} + */ +@com.google.protobuf.Generated +public final class MoveFolderMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveFolderMetadata) + MoveFolderMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderMetadata"); + } + + // Use MoveFolderMetadata.newBuilder() to construct. + private MoveFolderMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1.MoveFolderMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the move.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.MoveFolderMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.MoveFolderMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.MoveFolderMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveFolderMetadata.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveFolderMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.MoveFolderMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveFolderMetadata other = + (com.google.cloud.dataform.v1.MoveFolderMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.MoveFolderMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the MoveFolder Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveFolderMetadata) + com.google.cloud.dataform.v1.MoveFolderMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1.MoveFolderMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveFolderMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveFolderMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata build() { + com.google.cloud.dataform.v1.MoveFolderMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata buildPartial() { + com.google.cloud.dataform.v1.MoveFolderMetadata result = + new com.google.cloud.dataform.v1.MoveFolderMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveFolderMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveFolderMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.MoveFolderMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveFolderMetadata other) { + if (other == com.google.cloud.dataform.v1.MoveFolderMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.MoveFolderMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveFolderMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveFolderMetadata) + private static final com.google.cloud.dataform.v1.MoveFolderMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveFolderMetadata(); + } + + public static com.google.cloud.dataform.v1.MoveFolderMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java new file mode 100644 index 000000000000..654d78447cbf --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveFolderMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveFolderMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1.MoveFolderMetadata.State getState(); + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java new file mode 100644 index 000000000000..1af30b7ddcff --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequest.java @@ -0,0 +1,876 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `MoveFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderRequest} + */ +@com.google.protobuf.Generated +public final class MoveFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveFolderRequest) + MoveFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderRequest"); + } + + // Use MoveFolderRequest.newBuilder() to construct. + private MoveFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderRequest.class, + com.google.cloud.dataform.v1.MoveFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.MoveFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveFolderRequest other = + (com.google.cloud.dataform.v1.MoveFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.MoveFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `MoveFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveFolderRequest) + com.google.cloud.dataform.v1.MoveFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveFolderRequest.class, + com.google.cloud.dataform.v1.MoveFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest build() { + com.google.cloud.dataform.v1.MoveFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest buildPartial() { + com.google.cloud.dataform.v1.MoveFolderRequest result = + new com.google.cloud.dataform.v1.MoveFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.MoveFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveFolderRequest other) { + if (other == com.google.cloud.dataform.v1.MoveFolderRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the Folder to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * Folder to. Can be in the format of: "" to move into the root User folder,
            +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveFolderRequest) + private static final com.google.cloud.dataform.v1.MoveFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveFolderRequest(); + } + + public static com.google.cloud.dataform.v1.MoveFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java new file mode 100644 index 000000000000..8637b747ee8e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveFolderRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The full resource name of the Folder to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * Folder to. Can be in the format of: "" to move into the root User folder,
            +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java new file mode 100644 index 000000000000..48c41e5dda26 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadata.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Contains metadata about the progress of the MoveRepository Long-running
            + * operations.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryMetadata} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveRepositoryMetadata) + MoveRepositoryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryMetadata"); + } + + // Use MoveRepositoryMetadata.newBuilder() to construct. + private MoveRepositoryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1.MoveRepositoryMetadata.Builder.class); + } + + /** + * + * + *
            +   * Different states of the move.
            +   * 
            + * + * Protobuf enum {@code google.cloud.dataform.v1.MoveRepositoryMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The state is unspecified.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The move was initialized and recorded by the server, but not yet started.
            +     * 
            + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
            +     * The move is in progress.
            +     * 
            + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
            +     * The move has completed successfully.
            +     * 
            + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
            +     * The move has failed.
            +     * 
            + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.MoveRepositoryMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.MoveRepositoryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveRepositoryMetadata other = + (com.google.cloud.dataform.v1.MoveRepositoryMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.MoveRepositoryMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Contains metadata about the progress of the MoveRepository Long-running
            +   * operations.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveRepositoryMetadata) + com.google.cloud.dataform.v1.MoveRepositoryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1.MoveRepositoryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveRepositoryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata build() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata buildPartial() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata result = + new com.google.cloud.dataform.v1.MoveRepositoryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveRepositoryMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveRepositoryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.MoveRepositoryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveRepositoryMetadata other) { + if (other == com.google.cloud.dataform.v1.MoveRepositoryMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.MoveRepositoryMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The state of the move.
            +     * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Percent complete of the move [0, 100].
            +     * 
            + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveRepositoryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveRepositoryMetadata) + private static final com.google.cloud.dataform.v1.MoveRepositoryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveRepositoryMetadata(); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java new file mode 100644 index 000000000000..0cb37cb5dded --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveRepositoryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveRepositoryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * The state of the move.
            +   * 
            + * + * .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1.MoveRepositoryMetadata.State getState(); + + /** + * + * + *
            +   * Percent complete of the move [0, 100].
            +   * 
            + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java new file mode 100644 index 000000000000..eac8e608582b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequest.java @@ -0,0 +1,886 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `MoveRepository` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryRequest} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.MoveRepositoryRequest) + MoveRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryRequest"); + } + + // Use MoveRepositoryRequest.newBuilder() to construct. + private MoveRepositoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1.MoveRepositoryRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.MoveRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.MoveRepositoryRequest other = + (com.google.cloud.dataform.v1.MoveRepositoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.MoveRepositoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `MoveRepository` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.MoveRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.MoveRepositoryRequest) + com.google.cloud.dataform.v1.MoveRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1.MoveRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.MoveRepositoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.MoveRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest build() { + com.google.cloud.dataform.v1.MoveRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1.MoveRepositoryRequest result = + new com.google.cloud.dataform.v1.MoveRepositoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.MoveRepositoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.MoveRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1.MoveRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.MoveRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1.MoveRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full resource name of the repository to move.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the Folder, TeamFolder, or root location to move the
            +     * repository to. Can be in the format of: "" to move into the root User
            +     * folder, `projects/*/locations/*/folders/*`,
            +     * `projects/*/locations/*/teamFolders/*`
            +     * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.MoveRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.MoveRepositoryRequest) + private static final com.google.cloud.dataform.v1.MoveRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.MoveRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1.MoveRepositoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.MoveRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java new file mode 100644 index 000000000000..03fc916e3752 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/MoveRepositoryRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface MoveRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.MoveRepositoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The full resource name of the repository to move.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the Folder, TeamFolder, or root location to move the
            +   * repository to. Can be in the format of: "" to move into the root User
            +   * folder, `projects/*/locations/*/folders/*`,
            +   * `projects/*/locations/*/teamFolders/*`
            +   * 
            + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java new file mode 100644 index 000000000000..f60fbf64a553 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadata.java @@ -0,0 +1,507 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Metadata used to identify if a resource is user scoped.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.PrivateResourceMetadata} + */ +@com.google.protobuf.Generated +public final class PrivateResourceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.PrivateResourceMetadata) + PrivateResourceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrivateResourceMetadata"); + } + + // Use PrivateResourceMetadata.newBuilder() to construct. + private PrivateResourceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PrivateResourceMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder.class); + } + + public static final int USER_SCOPED_FIELD_NUMBER = 1; + private boolean userScoped_ = false; + + /** + * + * + *
            +   * Output only. If true, this resource is user-scoped, meaning it is either a
            +   * workspace or sourced from a workspace.
            +   * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (userScoped_ != false) { + output.writeBool(1, userScoped_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userScoped_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, userScoped_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.PrivateResourceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.PrivateResourceMetadata other = + (com.google.cloud.dataform.v1.PrivateResourceMetadata) obj; + + if (getUserScoped() != other.getUserScoped()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_SCOPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserScoped()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.PrivateResourceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata used to identify if a resource is user scoped.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.PrivateResourceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.PrivateResourceMetadata) + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.PrivateResourceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userScoped_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata build() { + com.google.cloud.dataform.v1.PrivateResourceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata buildPartial() { + com.google.cloud.dataform.v1.PrivateResourceMetadata result = + new com.google.cloud.dataform.v1.PrivateResourceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.PrivateResourceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userScoped_ = userScoped_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.PrivateResourceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.PrivateResourceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.PrivateResourceMetadata other) { + if (other == com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) + return this; + if (other.getUserScoped() != false) { + setUserScoped(other.getUserScoped()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + userScoped_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean userScoped_; + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The userScoped to set. + * @return This builder for chaining. + */ + public Builder setUserScoped(boolean value) { + + userScoped_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. If true, this resource is user-scoped, meaning it is either a
            +     * workspace or sourced from a workspace.
            +     * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUserScoped() { + bitField0_ = (bitField0_ & ~0x00000001); + userScoped_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.PrivateResourceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.PrivateResourceMetadata) + private static final com.google.cloud.dataform.v1.PrivateResourceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.PrivateResourceMetadata(); + } + + public static com.google.cloud.dataform.v1.PrivateResourceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java new file mode 100644 index 000000000000..a357c5472653 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/PrivateResourceMetadataOrBuilder.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface PrivateResourceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.PrivateResourceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. If true, this resource is user-scoped, meaning it is either a
            +   * workspace or sourced from a workspace.
            +   * 
            + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + boolean getUserScoped(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java index 69d6dfc060bb..f37528b2d107 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequest.java @@ -55,6 +55,7 @@ private QueryDirectoryContentsRequest() { workspace_ = ""; path_ = ""; pageToken_ = ""; + view_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -268,6 +269,55 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1.DirectoryContentsView result = + com.google.cloud.dataform.v1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1.DirectoryContentsView.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +344,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1.DirectoryContentsView.DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } getUnknownFields().writeTo(output); } @@ -315,6 +370,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1.DirectoryContentsView.DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -335,6 +395,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPath().equals(other.getPath())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +415,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -499,6 +562,7 @@ public Builder clear() { path_ = ""; pageSize_ = 0; pageToken_ = ""; + view_ = 0; return this; } @@ -547,6 +611,9 @@ private void buildPartial0(com.google.cloud.dataform.v1.QueryDirectoryContentsRe if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } } @java.lang.Override @@ -580,6 +647,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.QueryDirectoryContentsRequ bitField0_ |= 0x00000008; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -630,6 +700,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1084,6 +1160,128 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1.DirectoryContentsView result = + com.google.cloud.dataform.v1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1.DirectoryContentsView.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.dataform.v1.DirectoryContentsView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the metadata to return for each directory entry.
            +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +     * CMEK-protected workspaces.
            +     * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryDirectoryContentsRequest) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java index 83b3be691c36..18f9418410ac 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryDirectoryContentsRequestOrBuilder.java @@ -134,4 +134,40 @@ public interface QueryDirectoryContentsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
            +   * Optional. Specifies the metadata to return for each directory entry.
            +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
            +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
            +   * CMEK-protected workspaces.
            +   * 
            + * + * + * .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.dataform.v1.DirectoryContentsView getView(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java new file mode 100644 index 000000000000..c2acf317db9a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequest.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryFolderContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsRequest) + QueryFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsRequest"); + } + + // Use QueryFolderContentsRequest.newBuilder() to construct. + private QueryFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsRequest() { + folder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryFolderContentsRequest.Builder.class); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object folder_ = ""; + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + @java.lang.Override + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, folder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, folder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsRequest other = + (com.google.cloud.dataform.v1.QueryFolderContentsRequest) obj; + + if (!getFolder().equals(other.getFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryFolderContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryFolderContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsRequest) + com.google.cloud.dataform.v1.QueryFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + folder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest build() { + com.google.cloud.dataform.v1.QueryFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsRequest result = + new com.google.cloud.dataform.v1.QueryFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.folder_ = folder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryFolderContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getFolder().isEmpty()) { + folder_ = other.folder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + folder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object folder_ = ""; + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The folder to set. + * @return This builder for chaining. + */ + public Builder setFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFolder() { + folder_ = getDefaultInstance().getFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the folder whose contents to list.
            +     * Format: projects/*/locations/*/folders/*
            +     * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for folder to set. + * @return This builder for chaining. + */ + public Builder setFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryFolderContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryFolderContents`, with the exception of `page_size`, must match the
            +     * call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), create_time,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsRequest) + private static final com.google.cloud.dataform.v1.QueryFolderContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..f9b8e612791c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + java.lang.String getFolder(); + + /** + * + * + *
            +   * Required. Name of the folder whose contents to list.
            +   * Format: projects/*/locations/*/folders/*
            +   * 
            + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + com.google.protobuf.ByteString getFolderBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryFolderContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryFolderContents`, with the exception of `page_size`, must match the
            +   * call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), create_time,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java new file mode 100644 index 000000000000..f8697145798e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponse.java @@ -0,0 +1,2402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryFolderContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsResponse) + QueryFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsResponse"); + } + + // Use QueryFolderContentsResponse.newBuilder() to construct. + private QueryFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.Builder.class); + } + + public interface FolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class FolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + FolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FolderContentsEntry"); + } + + // Use FolderContentsEntry.newBuilder() to construct. + private FolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry other = + (com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry build() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry other) { + if (other + == com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry) + private static final com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FolderContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryFolderContentsResponse other = + (com.google.cloud.dataform.v1.QueryFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryFolderContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryFolderContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryFolderContentsResponse) + com.google.cloud.dataform.v1.QueryFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse build() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryFolderContentsResponse result = + new com.google.cloud.dataform.v1.QueryFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryFolderContentsResponse other) { + if (other == com.google.cloud.dataform.v1.QueryFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry m = + input.readMessage( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryFolderContentsResponse) + private static final com.google.cloud.dataform.v1.QueryFolderContentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryFolderContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryFolderContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..61351425f901 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryFolderContentsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java new file mode 100644 index 000000000000..7bb022734ff6 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequest.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryTeamFolderContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + QueryTeamFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsRequest"); + } + + // Use QueryTeamFolderContentsRequest.newBuilder() to construct. + private QueryTeamFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsRequest() { + teamFolder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.Builder.class); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolder_ = ""; + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + @java.lang.Override + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamFolder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamFolder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) obj; + + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryTeamFolderContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamFolder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamFolder_ = teamFolder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getTeamFolder().isEmpty()) { + teamFolder_ = other.teamFolder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + teamFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object teamFolder_ = ""; + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolder() { + teamFolder_ = getDefaultInstance().getTeamFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the team_folder whose contents to list.
            +     * Format: `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryTeamFolderContents`
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: `display_name` (default), `create_time`,
            +     * last_modified_time.
            +     * Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..0e8ac32003da --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + java.lang.String getTeamFolder(); + + /** + * + * + *
            +   * Required. Name of the team_folder whose contents to list.
            +   * Format: `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + com.google.protobuf.ByteString getTeamFolderBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryTeamFolderContents`
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: `display_name` (default), `create_time`,
            +   * last_modified_time.
            +   * Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java new file mode 100644 index 000000000000..059b8e8c60dd --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponse.java @@ -0,0 +1,2450 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryTeamFolderContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + QueryTeamFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsResponse"); + } + + // Use QueryTeamFolderContentsResponse.newBuilder() to construct. + private QueryTeamFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.Builder.class); + } + + public interface TeamFolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class TeamFolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + TeamFolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderContentsEntry"); + } + + // Use TeamFolderContentsEntry.newBuilder() to construct. + private TeamFolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + other) { + if (other + == com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse other = + (com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryTeamFolderContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryTeamFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse build() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result = + new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse other) { + if (other + == com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + m = + input.readMessage( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the TeamFolder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + private static final com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..fe0c619ec586 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryTeamFolderContentsResponseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryTeamFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the TeamFolder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java new file mode 100644 index 000000000000..5651bb8169f3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequest.java @@ -0,0 +1,1388 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryUserRootContents` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsRequest) + QueryUserRootContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsRequest"); + } + + // Use QueryUserRootContentsRequest.newBuilder() to construct. + private QueryUserRootContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryUserRootContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsRequest other = + (com.google.cloud.dataform.v1.QueryUserRootContentsRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryUserRootContents` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsRequest) + com.google.cloud.dataform.v1.QueryUserRootContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1.QueryUserRootContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryUserRootContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest build() { + com.google.cloud.dataform.v1.QueryUserRootContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsRequest result = + new com.google.cloud.dataform.v1.QueryUserRootContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryUserRootContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryUserRootContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1.QueryUserRootContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryUserRootContentsRequest other) { + if (other == com.google.cloud.dataform.v1.QueryUserRootContentsRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location of the user root folder whose contents to list.
            +     * Format: projects/*/locations/*
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of paths to return. The server may return fewer
            +     * items than requested. If unspecified, the server will pick an appropriate
            +     * default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `QueryUserRootContents` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Will order Folders before Repositories, and then by `order_by` in ascending
            +     * order. Supported keywords: display_name (default), created_at,
            +     * last_modified_at. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsRequest) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryUserRootContentsRequest(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java new file mode 100644 index 000000000000..9c7a25d020cd --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. Location of the user root folder whose contents to list.
            +   * Format: projects/*/locations/*
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of paths to return. The server may return fewer
            +   * items than requested. If unspecified, the server will pick an appropriate
            +   * default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `QueryUserRootContents` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Will order Folders before Repositories, and then by `order_by` in ascending
            +   * order. Supported keywords: display_name (default), created_at,
            +   * last_modified_at. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java new file mode 100644 index 000000000000..ddee2d2aff87 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponse.java @@ -0,0 +1,2402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `QueryUserRootContents` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse) + QueryUserRootContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsResponse"); + } + + // Use QueryUserRootContentsResponse.newBuilder() to construct. + private QueryUserRootContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.Builder.class); + } + + public interface RootContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1.Repository getRepository(); + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class RootContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + RootContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RootContentsEntry"); + } + + // Use RootContentsEntry.newBuilder() to construct. + private RootContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A subfolder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + /** + * + * + *
            +     * A repository.
            +     * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry other = + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + .class); + } + + // Construct using + // com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry build() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry other) { + if (other + == com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Folder.newBuilder( + (com.google.cloud.dataform.v1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1.Folder) entry_; + } + return com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A subfolder.
            +       * 
            + * + * .google.cloud.dataform.v1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + (com.google.cloud.dataform.v1.Folder) entry_, getParentForChildren(), isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.Repository.newBuilder( + (com.google.cloud.dataform.v1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.Repository) entry_; + } + return com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A repository.
            +       * 
            + * + * .google.cloud.dataform.v1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Repository, + com.google.cloud.dataform.v1.Repository.Builder, + com.google.cloud.dataform.v1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + entries_; + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.QueryUserRootContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.QueryUserRootContentsResponse other = + (com.google.cloud.dataform.v1.QueryUserRootContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `QueryUserRootContents` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.QueryUserRootContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.QueryUserRootContentsResponse) + com.google.cloud.dataform.v1.QueryUserRootContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.QueryUserRootContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.QueryUserRootContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse build() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse buildPartial() { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result = + new com.google.cloud.dataform.v1.QueryUserRootContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.QueryUserRootContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.QueryUserRootContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1.QueryUserRootContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.QueryUserRootContentsResponse other) { + if (other == com.google.cloud.dataform.v1.QueryUserRootContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry m = + input.readMessage( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of entries in the folder.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry.Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + .Builder, + com.google.cloud.dataform.v1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.QueryUserRootContentsResponse) + private static final com.google.cloud.dataform.v1.QueryUserRootContentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.QueryUserRootContentsResponse(); + } + + public static com.google.cloud.dataform.v1.QueryUserRootContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.QueryUserRootContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java new file mode 100644 index 000000000000..484de3e4dbee --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/QueryUserRootContentsResponseOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.QueryUserRootContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * List of entries in the folder.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java index 585cd21b645c..e7cebce22601 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Repository.java @@ -53,6 +53,8 @@ private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { private Repository() { name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; displayName_ = ""; npmrcEnvironmentVariablesSecretVersion_ = ""; serviceAccount_ = ""; @@ -236,7 +238,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -255,7 +257,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Deprecated @@ -1684,7 +1686,7 @@ public boolean hasSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1706,7 +1708,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=630 + * See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Override @@ -2763,7 +2765,7 @@ public Builder clearSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2785,7 +2787,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -2810,7 +2812,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return The tokenStatus. */ @java.lang.Override @@ -2838,7 +2840,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -2867,7 +2869,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=630 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=881 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4047,6 +4049,168 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + @java.lang.Override + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + @java.lang.Override + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; @@ -4064,7 +4228,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -4170,7 +4334,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { */ @java.lang.Override public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -4297,7 +4461,7 @@ public com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionB */ @java.lang.Override public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -4612,7 +4776,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -4677,7 +4841,7 @@ public com.google.cloud.dataform.v1.DataEncryptionState getDataEncryptionState() */ @java.lang.Override public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -4751,7 +4915,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4759,7 +4923,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString( output, 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getWorkspaceCompilationOverrides()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -4776,15 +4940,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, teamFolderName_); + } getUnknownFields().writeTo(output); } @@ -4797,7 +4967,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4806,7 +4976,7 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessage.computeStringSize( 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getWorkspaceCompilationOverrides()); @@ -4833,16 +5003,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, teamFolderName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4859,6 +5035,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataform.v1.Repository other = (com.google.cloud.dataform.v1.Repository) obj; if (!getName().equals(other.getName())) return false; + if (hasContainingFolder() != other.hasContainingFolder()) return false; + if (hasContainingFolder()) { + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + } + if (hasTeamFolderName() != other.hasTeamFolderName()) return false; + if (hasTeamFolderName()) { + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -4901,6 +5085,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasContainingFolder()) { + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + } + if (hasTeamFolderName()) { + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -5110,6 +5302,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5178,52 +5372,60 @@ private void buildPartial0(com.google.cloud.dataform.v1.Repository result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.containingFolder_ = containingFolder_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; + result.teamFolderName_ = teamFolderName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.gitRemoteSettings_ = gitRemoteSettingsBuilder_ == null ? gitRemoteSettings_ : gitRemoteSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.npmrcEnvironmentVariablesSecretVersion_ = npmrcEnvironmentVariablesSecretVersion_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.workspaceCompilationOverrides_ = workspaceCompilationOverridesBuilder_ == null ? workspaceCompilationOverrides_ : workspaceCompilationOverridesBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.setAuthenticatedUserAdmin_ = setAuthenticatedUserAdmin_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.kmsKeyName_ = kmsKeyName_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.dataEncryptionState_ = dataEncryptionStateBuilder_ == null ? dataEncryptionState_ : dataEncryptionStateBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.internalMetadata_ = internalMetadata_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -5245,12 +5447,22 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasContainingFolder()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTeamFolderName()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGitRemoteSettings()) { @@ -5258,25 +5470,25 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { } if (!other.getNpmrcEnvironmentVariablesSecretVersion().isEmpty()) { npmrcEnvironmentVariablesSecretVersion_ = other.npmrcEnvironmentVariablesSecretVersion_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasWorkspaceCompilationOverrides()) { mergeWorkspaceCompilationOverrides(other.getWorkspaceCompilationOverrides()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; if (other.getSetAuthenticatedUserAdmin() != false) { setSetAuthenticatedUserAdmin(other.getSetAuthenticatedUserAdmin()); } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasDataEncryptionState()) { @@ -5284,7 +5496,7 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Repository other) { } if (other.hasInternalMetadata()) { internalMetadata_ = other.internalMetadata_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5323,13 +5535,13 @@ public Builder mergeFrom( { input.readMessage( internalGetGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { npmrcEnvironmentVariablesSecretVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -5337,7 +5549,7 @@ public Builder mergeFrom( input.readMessage( internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 34 case 42: @@ -5349,53 +5561,65 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 42 case 66: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 66 case 72: { setAuthenticatedUserAdmin_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 72 case 82: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage( internalGetDataEncryptionStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 106 case 122: { internalMetadata_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 122 + case 130: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 130 + case 146: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5526,6 +5750,312 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containingFolder field is set. + */ + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the containing folder of the repository.
            +     * The field is immutable and it can be modified via a MoveRepository
            +     * operation.
            +     * Format: `projects/*/locations/*/folders/*`. or
            +     * `projects/*/locations/*/teamFolders/*`.
            +     * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the TeamFolder that this Repository is
            +     * associated with. This should take the format:
            +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +     * is not set, the Repository is not associated with a TeamFolder.
            +     * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -5547,7 +6077,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -5593,7 +6123,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5615,7 +6145,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5633,7 +6163,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -5644,7 +6174,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -5662,7 +6192,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5684,7 +6214,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5803,7 +6333,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5821,7 +6351,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -5844,7 +6374,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5870,7 +6400,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the gitRemoteSettings field is set. */ public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -5917,7 +6447,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5940,7 +6470,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5959,7 +6489,7 @@ public Builder setGitRemoteSettings( public Builder mergeGitRemoteSettings( com.google.cloud.dataform.v1.Repository.GitRemoteSettings value) { if (gitRemoteSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && gitRemoteSettings_ != null && gitRemoteSettings_ != com.google.cloud.dataform.v1.Repository.GitRemoteSettings.getDefaultInstance()) { @@ -5971,7 +6501,7 @@ public Builder mergeGitRemoteSettings( gitRemoteSettingsBuilder_.mergeFrom(value); } if (gitRemoteSettings_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -5989,7 +6519,7 @@ public Builder mergeGitRemoteSettings( * */ public Builder clearGitRemoteSettings() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); gitRemoteSettings_ = null; if (gitRemoteSettingsBuilder_ != null) { gitRemoteSettingsBuilder_.dispose(); @@ -6012,7 +6542,7 @@ public Builder clearGitRemoteSettings() { */ public com.google.cloud.dataform.v1.Repository.GitRemoteSettings.Builder getGitRemoteSettingsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetGitRemoteSettingsFieldBuilder().getBuilder(); } @@ -6147,7 +6677,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) throw new NullPointerException(); } npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6171,7 +6701,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) public Builder clearNpmrcEnvironmentVariablesSecretVersion() { npmrcEnvironmentVariablesSecretVersion_ = getDefaultInstance().getNpmrcEnvironmentVariablesSecretVersion(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6200,7 +6730,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( } checkByteStringIsUtf8(value); npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6230,7 +6760,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( * @return Whether the workspaceCompilationOverrides field is set. */ public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6285,7 +6815,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6312,7 +6842,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6334,7 +6864,7 @@ public Builder setWorkspaceCompilationOverrides( public Builder mergeWorkspaceCompilationOverrides( com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides value) { if (workspaceCompilationOverridesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && workspaceCompilationOverrides_ != null && workspaceCompilationOverrides_ != com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides @@ -6347,7 +6877,7 @@ public Builder mergeWorkspaceCompilationOverrides( workspaceCompilationOverridesBuilder_.mergeFrom(value); } if (workspaceCompilationOverrides_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6368,7 +6898,7 @@ public Builder mergeWorkspaceCompilationOverrides( * */ public Builder clearWorkspaceCompilationOverrides() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); workspaceCompilationOverrides_ = null; if (workspaceCompilationOverridesBuilder_ != null) { workspaceCompilationOverridesBuilder_.dispose(); @@ -6394,7 +6924,7 @@ public Builder clearWorkspaceCompilationOverrides() { */ public com.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides.Builder getWorkspaceCompilationOverridesBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(); } @@ -6473,7 +7003,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -6563,7 +7093,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6588,7 +7118,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } @@ -6609,7 +7139,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6624,7 +7154,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6667,7 +7197,7 @@ public boolean getSetAuthenticatedUserAdmin() { public Builder setSetAuthenticatedUserAdmin(boolean value) { setAuthenticatedUserAdmin_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6687,7 +7217,7 @@ public Builder setSetAuthenticatedUserAdmin(boolean value) { * @return This builder for chaining. */ public Builder clearSetAuthenticatedUserAdmin() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); setAuthenticatedUserAdmin_ = false; onChanged(); return this; @@ -6758,7 +7288,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6776,7 +7306,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -6799,7 +7329,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6887,7 +7417,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6911,7 +7441,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -6940,7 +7470,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6967,7 +7497,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * @return Whether the dataEncryptionState field is set. */ public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -7015,7 +7545,7 @@ public Builder setDataEncryptionState(com.google.cloud.dataform.v1.DataEncryptio } else { dataEncryptionStateBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7039,7 +7569,7 @@ public Builder setDataEncryptionState( } else { dataEncryptionStateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7059,7 +7589,7 @@ public Builder setDataEncryptionState( public Builder mergeDataEncryptionState( com.google.cloud.dataform.v1.DataEncryptionState value) { if (dataEncryptionStateBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && dataEncryptionState_ != null && dataEncryptionState_ != com.google.cloud.dataform.v1.DataEncryptionState.getDefaultInstance()) { @@ -7071,7 +7601,7 @@ public Builder mergeDataEncryptionState( dataEncryptionStateBuilder_.mergeFrom(value); } if (dataEncryptionState_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -7090,7 +7620,7 @@ public Builder mergeDataEncryptionState( * */ public Builder clearDataEncryptionState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); dataEncryptionState_ = null; if (dataEncryptionStateBuilder_ != null) { dataEncryptionStateBuilder_.dispose(); @@ -7114,7 +7644,7 @@ public Builder clearDataEncryptionState() { */ public com.google.cloud.dataform.v1.DataEncryptionState.Builder getDataEncryptionStateBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return internalGetDataEncryptionStateFieldBuilder().getBuilder(); } @@ -7188,7 +7718,7 @@ public Builder clearDataEncryptionState() { * @return Whether the internalMetadata field is set. */ public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -7263,7 +7793,7 @@ public Builder setInternalMetadata(java.lang.String value) { throw new NullPointerException(); } internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7284,7 +7814,7 @@ public Builder setInternalMetadata(java.lang.String value) { */ public Builder clearInternalMetadata() { internalMetadata_ = getDefaultInstance().getInternalMetadata(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -7310,7 +7840,7 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java index 00cf1572acbc..7b3f02b95fe9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryOrBuilder.java @@ -52,6 +52,108 @@ public interface RepositoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + boolean hasContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
            +   * Optional. The name of the containing folder of the repository.
            +   * The field is immutable and it can be modified via a MoveRepository
            +   * operation.
            +   * Format: `projects/*/locations/*/folders/*`. or
            +   * `projects/*/locations/*/teamFolders/*`.
            +   * 
            + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + boolean hasTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
            +   * Output only. The resource name of the TeamFolder that this Repository is
            +   * associated with. This should take the format:
            +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
            +   * is not set, the Repository is not associated with a TeamFolder.
            +   * 
            + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + /** * * diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java new file mode 100644 index 000000000000..00fa6c5b3301 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `SearchTeamFolders` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersRequest} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersRequest) + SearchTeamFoldersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersRequest"); + } + + // Use SearchTeamFoldersRequest.newBuilder() to construct. + private SearchTeamFoldersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Maximum number of TeamFolders to return. The server may return
            +   * fewer items than requested. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.SearchTeamFoldersRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersRequest other = + (com.google.cloud.dataform.v1.SearchTeamFoldersRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `SearchTeamFolders` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersRequest) + com.google.cloud.dataform.v1.SearchTeamFoldersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1.SearchTeamFoldersRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.SearchTeamFoldersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest build() { + com.google.cloud.dataform.v1.SearchTeamFoldersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersRequest result = + new com.google.cloud.dataform.v1.SearchTeamFoldersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.SearchTeamFoldersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.SearchTeamFoldersRequest) { + return mergeFrom((com.google.cloud.dataform.v1.SearchTeamFoldersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.SearchTeamFoldersRequest other) { + if (other == com.google.cloud.dataform.v1.SearchTeamFoldersRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Location in which to query TeamFolders.
            +     * Format: `projects/*/locations/*`.
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Maximum number of TeamFolders to return. The server may return
            +     * fewer items than requested. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Page token received from a previous `SearchTeamFolders` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `SearchTeamFolders`, with the exception of `page_size`, must
            +     * match the call that provided the page token.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field to additionally sort results by.
            +     * Supported keywords: `display_name` (default), `create_time`,
            +     * `last_modified_time`. Examples:
            +     * - `orderBy="display_name"`
            +     * - `orderBy="display_name desc"`
            +     * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional filtering for the returned list. Filtering is currently
            +     * only supported on the `display_name` field.
            +     *
            +     * Example:
            +     * - `filter="display_name="MyFolder""`
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersRequest) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.SearchTeamFoldersRequest(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java new file mode 100644 index 000000000000..fa7e09a40975 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. Location in which to query TeamFolders.
            +   * Format: `projects/*/locations/*`.
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of TeamFolders to return. The server may return
            +   * fewer items than requested. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Page token received from a previous `SearchTeamFolders` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `SearchTeamFolders`, with the exception of `page_size`, must
            +   * match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Field to additionally sort results by.
            +   * Supported keywords: `display_name` (default), `create_time`,
            +   * `last_modified_time`. Examples:
            +   * - `orderBy="display_name"`
            +   * - `orderBy="display_name desc"`
            +   * 
            + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Optional filtering for the returned list. Filtering is currently
            +   * only supported on the `display_name` field.
            +   *
            +   * Example:
            +   * - `filter="display_name="MyFolder""`
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java new file mode 100644 index 000000000000..f2b207f89428 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponse.java @@ -0,0 +1,2062 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `SearchTeamFolders` response message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse) + SearchTeamFoldersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersResponse"); + } + + // Use SearchTeamFoldersResponse.newBuilder() to construct. + private SearchTeamFoldersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.Builder.class); + } + + public interface TeamFolderSearchResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); + + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.EntryCase + getEntryCase(); + } + + /** + * + * + *
            +   * Represents a single content entry.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class TeamFolderSearchResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + TeamFolderSearchResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderSearchResult"); + } + + // Use TeamFolderSearchResult.newBuilder() to construct. + private TeamFolderSearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderSearchResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + .class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEAM_FOLDER(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 2: + return TEAM_FOLDER; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + + /** + * + * + *
            +     * A TeamFolder resource that is in the project / location.
            +     * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1.TeamFolder) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1.TeamFolder) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult other = + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 2: + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 2: + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single content entry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult build() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 2 && teamFolderBuilder_ != null) { + result.entry_ = teamFolderBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) { + return mergeFrom( + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult other) { + if (other + == com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case TEAM_FOLDER: + { + mergeTeamFolder(other.getTeamFolder()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return teamFolderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + teamFolderBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder( + com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1.TeamFolder.newBuilder( + (com.google.cloud.dataform.v1.TeamFolder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + teamFolderBuilder_.mergeFrom(value); + } else { + teamFolderBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public Builder clearTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + teamFolderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if ((entryCase_ == 2) && (teamFolderBuilder_ != null)) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A TeamFolder resource that is in the project / location.
            +       * 
            + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + (com.google.cloud.dataform.v1.TeamFolder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_; + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + return results_; + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + return results_; + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index) { + return results_.get(index); + } + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + return results_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.SearchTeamFoldersResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.SearchTeamFoldersResponse other = + (com.google.cloud.dataform.v1.SearchTeamFoldersResponse) obj; + + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `SearchTeamFolders` response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.SearchTeamFoldersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.SearchTeamFoldersResponse) + com.google.cloud.dataform.v1.SearchTeamFoldersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.SearchTeamFoldersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.SearchTeamFoldersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse build() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse buildPartial() { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result = + new com.google.cloud.dataform.v1.SearchTeamFoldersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1.SearchTeamFoldersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.SearchTeamFoldersResponse) { + return mergeFrom((com.google.cloud.dataform.v1.SearchTeamFoldersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.SearchTeamFoldersResponse other) { + if (other == com.google.cloud.dataform.v1.SearchTeamFoldersResponse.getDefaultInstance()) + return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResultsFieldBuilder() + : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult m = + input.readMessage( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_ = java.util.Collections.emptyList(); + + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult>( + results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder> + resultsBuilder_; + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addAllResults( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult> + values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + getResultsBuilder(int index) { + return internalGetResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + addResultsBuilder() { + return internalGetResultsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + addResultsBuilder(int index) { + return internalGetResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of TeamFolders that match the search query.
            +     * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder> + getResultsBuilderList() { + return internalGetResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder> + internalGetResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder, + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.SearchTeamFoldersResponse) + private static final com.google.cloud.dataform.v1.SearchTeamFoldersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.SearchTeamFoldersResponse(); + } + + public static com.google.cloud.dataform.v1.SearchTeamFoldersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java new file mode 100644 index 000000000000..14a8ba37bfc5 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/SearchTeamFoldersResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.SearchTeamFoldersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List + getResultsList(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + int getResultsCount(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList(); + + /** + * + * + *
            +   * List of TeamFolders that match the search query.
            +   * 
            + * + * + * repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java new file mode 100644 index 000000000000..7f4294a66452 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolder.java @@ -0,0 +1,1882 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * Represents a Dataform TeamFolder. This is a resource that sits at the project
            + * level and is used to organize Repositories and Folders with hierarchical
            + * access controls. They provide a team context and stricter access controls.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.TeamFolder} + */ +@com.google.protobuf.Generated +public final class TeamFolder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.TeamFolder) + TeamFolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolder"); + } + + // Use TeamFolder.newBuilder() to construct. + private TeamFolder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolder() { + name_ = ""; + displayName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.TeamFolder.class, + com.google.cloud.dataform.v1.TeamFolder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, creatorIamPrincipal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.TeamFolder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.TeamFolder other = (com.google.cloud.dataform.v1.TeamFolder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.TeamFolder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a Dataform TeamFolder. This is a resource that sits at the project
            +   * level and is used to organize Repositories and Folders with hierarchical
            +   * access controls. They provide a team context and stricter access controls.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.TeamFolder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.TeamFolder) + com.google.cloud.dataform.v1.TeamFolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.TeamFolder.class, + com.google.cloud.dataform.v1.TeamFolder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.TeamFolder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_TeamFolder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder build() { + com.google.cloud.dataform.v1.TeamFolder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder buildPartial() { + com.google.cloud.dataform.v1.TeamFolder result = + new com.google.cloud.dataform.v1.TeamFolder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.TeamFolder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.TeamFolder) { + return mergeFrom((com.google.cloud.dataform.v1.TeamFolder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.TeamFolder other) { + if (other == com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The TeamFolder's name.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The TeamFolder's user-friendly name.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp of when the TeamFolder was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. All the metadata information that is used internally to serve
            +     * the resource. For example: timestamps, flags, status fields, etc. The
            +     * format of this field is a JSON string.
            +     * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +     * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.TeamFolder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.TeamFolder) + private static final com.google.cloud.dataform.v1.TeamFolder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.TeamFolder(); + } + + public static com.google.cloud.dataform.v1.TeamFolder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java new file mode 100644 index 000000000000..33a9ea5140c3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TeamFolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TEAM_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/teamFolders/{team_folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String teamFolder; + + @Deprecated + protected TeamFolderName() { + project = null; + location = null; + teamFolder = null; + } + + private TeamFolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + teamFolder = Preconditions.checkNotNull(builder.getTeamFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TeamFolderName of(String project, String location, String teamFolder) { + return newBuilder().setProject(project).setLocation(location).setTeamFolder(teamFolder).build(); + } + + public static String format(String project, String location, String teamFolder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTeamFolder(teamFolder) + .build() + .toString(); + } + + public static TeamFolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TEAM_FOLDER.validatedMatch( + formattedString, "TeamFolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("team_folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TeamFolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TEAM_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (teamFolder != null) { + fieldMapBuilder.put("team_folder", teamFolder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TEAM_FOLDER.instantiate( + "project", project, "location", location, "team_folder", teamFolder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TeamFolderName that = ((TeamFolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.teamFolder, that.teamFolder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(teamFolder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/teamFolders/{team_folder}. */ + public static class Builder { + private String project; + private String location; + private String teamFolder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTeamFolder(String teamFolder) { + this.teamFolder = teamFolder; + return this; + } + + private Builder(TeamFolderName teamFolderName) { + this.project = teamFolderName.project; + this.location = teamFolderName.location; + this.teamFolder = teamFolderName.teamFolder; + } + + public TeamFolderName build() { + return new TeamFolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java new file mode 100644 index 000000000000..f0c7d5d37935 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface TeamFolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.TeamFolder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The TeamFolder's name.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Required. The TeamFolder's user-friendly name.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp of when the TeamFolder was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
            +   * Output only. All the metadata information that is used internally to serve
            +   * the resource. For example: timestamps, flags, status fields, etc. The
            +   * format of this field is a JSON string.
            +   * 
            + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
            +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
            +   * 
            + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java new file mode 100644 index 000000000000..15175dafcce4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequest.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `UpdateFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.UpdateFolderRequest) + UpdateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFolderRequest"); + } + + // Use UpdateFolderRequest.newBuilder() to construct. + private UpdateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1.UpdateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.Folder folder_; + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.Folder getFolder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.UpdateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.UpdateFolderRequest other = + (com.google.cloud.dataform.v1.UpdateFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.UpdateFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `UpdateFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.UpdateFolderRequest) + com.google.cloud.dataform.v1.UpdateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1.UpdateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.UpdateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.UpdateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest build() { + com.google.cloud.dataform.v1.UpdateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest buildPartial() { + com.google.cloud.dataform.v1.UpdateFolderRequest result = + new com.google.cloud.dataform.v1.UpdateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.UpdateFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.UpdateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.UpdateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.UpdateFolderRequest other) { + if (other == com.google.cloud.dataform.v1.UpdateFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields that can be updated, will be updated. A few fields cannot be
            +     * updated and will be ignored if specified in the update_mask (e.g.
            +     * parent_name, team_folder_name).
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null ? com.google.cloud.dataform.v1.Folder.getDefaultInstance() : folder_; + } + } + + /** + * + * + *
            +     * Required. The updated Folder.
            +     * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.Folder, + com.google.cloud.dataform.v1.Folder.Builder, + com.google.cloud.dataform.v1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.UpdateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.UpdateFolderRequest) + private static final com.google.cloud.dataform.v1.UpdateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.UpdateFolderRequest(); + } + + public static com.google.cloud.dataform.v1.UpdateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..ba5816d39756 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateFolderRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface UpdateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.UpdateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields that can be updated, will be updated. A few fields cannot be
            +   * updated and will be ignored if specified in the update_mask (e.g.
            +   * parent_name, team_folder_name).
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1.Folder getFolder(); + + /** + * + * + *
            +   * Required. The updated Folder.
            +   * 
            + * + * .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.FolderOrBuilder getFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java new file mode 100644 index 000000000000..8a6acc5c8676 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequest.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
            + * `UpdateTeamFolder` request message.
            + * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.UpdateTeamFolderRequest) + UpdateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateTeamFolderRequest"); + } + + // Use UpdateTeamFolderRequest.newBuilder() to construct. + private UpdateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateTeamFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.UpdateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.UpdateTeamFolderRequest other = + (com.google.cloud.dataform.v1.UpdateTeamFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.UpdateTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * `UpdateTeamFolder` request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.dataform.v1.UpdateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.UpdateTeamFolderRequest) + com.google.cloud.dataform.v1.UpdateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1.UpdateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.UpdateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.UpdateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest build() { + com.google.cloud.dataform.v1.UpdateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1.UpdateTeamFolderRequest result = + new com.google.cloud.dataform.v1.UpdateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.UpdateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.UpdateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1.UpdateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.UpdateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1.UpdateTeamFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +     * all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
            +     * Required. The updated TeamFolder.
            +     * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.TeamFolder, + com.google.cloud.dataform.v1.TeamFolder.Builder, + com.google.cloud.dataform.v1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.UpdateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.UpdateTeamFolderRequest) + private static final com.google.cloud.dataform.v1.UpdateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.UpdateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1.UpdateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..90cac718dfc0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/UpdateTeamFolderRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface UpdateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.UpdateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
            +   * all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1.TeamFolder getTeamFolder(); + + /** + * + * + *
            +   * Required. The updated TeamFolder.
            +   * 
            + * + * + * .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1.TeamFolderOrBuilder getTeamFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java index 5daaf82ad0d0..fa16beb8b028 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocation.java @@ -941,6 +941,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 10; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -983,6 +1049,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -1020,6 +1089,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1055,6 +1129,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getCompilationSourceCase().equals(other.getCompilationSourceCase())) return false; switch (compilationSourceCase_) { case 2: @@ -1099,6 +1177,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (compilationSourceCase_) { case 2: hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; @@ -1255,6 +1337,7 @@ private void maybeForceBuilderInitialization() { internalGetInvocationConfigFieldBuilder(); internalGetInvocationTimingFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -1281,6 +1364,11 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } compilationSourceCase_ = 0; compilationSource_ = null; return this; @@ -1351,6 +1439,13 @@ private void buildPartial0(com.google.cloud.dataform.v1.WorkflowInvocation resul result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1399,6 +1494,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.WorkflowInvocation other) bitField0_ |= 0x00000100; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getCompilationSourceCase()) { case COMPILATION_RESULT: { @@ -1504,6 +1602,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2993,6 +3099,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000200); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped.
            +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +     * from a compilation result and the compilation result is user-scoped.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.WorkflowInvocation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java index eb684b948cf7..53cb53d5ecc8 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationOrBuilder.java @@ -389,5 +389,55 @@ public interface WorkflowInvocationOrBuilder */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped.
            +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
            +   * from a compilation result and the compilation result is user-scoped.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1.WorkflowInvocation.CompilationSourceCase getCompilationSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java index 39aa31fc3688..dc7cf06dc2b7 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/Workspace.java @@ -318,6 +318,106 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int DISABLE_MOVES_FIELD_NUMBER = 6; + private boolean disableMoves_ = false; + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 8; + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -344,6 +444,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -365,6 +471,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -393,6 +506,14 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasDisableMoves() != other.hasDisableMoves()) return false; + if (hasDisableMoves()) { + if (getDisableMoves() != other.getDisableMoves()) return false; + } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,6 +539,14 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasDisableMoves()) { + hash = (37 * hash) + DISABLE_MOVES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableMoves()); + } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -561,6 +690,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -580,6 +710,12 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + disableMoves_ = false; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } return this; } @@ -635,6 +771,17 @@ private void buildPartial0(com.google.cloud.dataform.v1.Workspace result) { result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableMoves_ = disableMoves_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -666,6 +813,12 @@ public Builder mergeFrom(com.google.cloud.dataform.v1.Workspace other) { bitField0_ |= 0x00000008; onChanged(); } + if (other.hasDisableMoves()) { + setDisableMoves(other.getDisableMoves()); + } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -718,6 +871,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 48: + { + disableMoves_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1430,6 +1597,309 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private boolean disableMoves_; + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableMoves to set. + * @return This builder for chaining. + */ + public Builder setDisableMoves(boolean value) { + + disableMoves_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If set to true, workspaces will not be moved if its linked
            +     * Repository is moved. Instead, it will be deleted.
            +     * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableMoves() { + bitField0_ = (bitField0_ & ~0x00000010); + disableMoves_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
            +     * Output only. Metadata indicating whether this resource is user-scoped. For
            +     * `Workspace` resources, the `user_scoped` field is always `true`.
            +     * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.PrivateResourceMetadata, + com.google.cloud.dataform.v1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.Workspace) } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java index 31be7e7f3969..08037f96dfdc 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceOrBuilder.java @@ -185,4 +185,79 @@ public interface WorkspaceOrBuilder * @return The bytes for internalMetadata. */ com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + boolean hasDisableMoves(); + + /** + * + * + *
            +   * Optional. If set to true, workspaces will not be moved if its linked
            +   * Repository is moved. Instead, it will be deleted.
            +   * 
            + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + boolean getDisableMoves(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
            +   * Output only. Metadata indicating whether this resource is user-scoped. For
            +   * `Workspace` resources, the `user_scoped` field is always `true`.
            +   * 
            + * + * + * .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto index e1b987a7cb6a..51d842967e39 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,9 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -58,6 +61,156 @@ service Dataform { "https://www.googleapis.com/auth/bigquery," "https://www.googleapis.com/auth/cloud-platform"; + // Fetches a single TeamFolder. + rpc GetTeamFolder(GetTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new TeamFolder in a given project and location. + rpc CreateTeamFolder(CreateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/teamFolders" + body: "team_folder" + }; + option (google.api.method_signature) = "parent,team_folder"; + } + + // Updates a single TeamFolder. + rpc UpdateTeamFolder(UpdateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + patch: "/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}" + body: "team_folder" + }; + option (google.api.method_signature) = "team_folder,update_mask"; + } + + // Deletes a single TeamFolder. + rpc DeleteTeamFolder(DeleteTeamFolderRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteTeamFolderTree(DeleteTeamFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + + // Returns the contents of a given TeamFolder. + rpc QueryTeamFolderContents(QueryTeamFolderContentsRequest) + returns (QueryTeamFolderContentsResponse) { + option (google.api.http) = { + get: "/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents" + }; + option (google.api.method_signature) = "team_folder"; + } + + // Returns all TeamFolders in a given location that the caller has access to + // and match the provided filter. + rpc SearchTeamFolders(SearchTeamFoldersRequest) + returns (SearchTeamFoldersResponse) { + option (google.api.http) = { + get: "/v1/{location=projects/*/locations/*}/teamFolders:search" + }; + } + + // Fetches a single Folder. + rpc GetFolder(GetFolderRequest) returns (Folder) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Folder in a given project and location. + rpc CreateFolder(CreateFolderRequest) returns (Folder) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/folders" + body: "folder" + }; + option (google.api.method_signature) = "parent,folder"; + } + + // Updates a single Folder. + rpc UpdateFolder(UpdateFolderRequest) returns (Folder) { + option (google.api.http) = { + patch: "/v1/{folder.name=projects/*/locations/*/folders/*}" + body: "folder" + }; + option (google.api.method_signature) = "folder,update_mask"; + } + + // Deletes a single Folder. + rpc DeleteFolder(DeleteFolderRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a Folder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteFolderTree(DeleteFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/folders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + + // Returns the contents of a given Folder. + rpc QueryFolderContents(QueryFolderContentsRequest) + returns (QueryFolderContentsResponse) { + option (google.api.http) = { + get: "/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents" + }; + option (google.api.method_signature) = "folder"; + } + + // Returns the contents of a caller's root folder in a given location. + // The root folder contains all resources that are created by the user and not + // contained in any other folder. + rpc QueryUserRootContents(QueryUserRootContentsRequest) + returns (QueryUserRootContentsResponse) { + option (google.api.http) = { + get: "/v1/{location=projects/*/locations/*}:queryUserRootContents" + }; + option (google.api.method_signature) = "location"; + } + + // Moves a Folder to a new Folder, TeamFolder, or the root location. + rpc MoveFolder(MoveFolderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/folders/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveFolderMetadata" + }; + } + // Lists Repositories in a given project and location. // // **Note:** *This method can return repositories not shown in the [Dataform @@ -110,6 +263,20 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Moves a Repository to a new location. + rpc MoveRepository(MoveRepositoryRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/repositories/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveRepositoryMetadata" + }; + } + // Applies a Git commit to a Repository. The Repository must not have a value // for `git_remote_settings.url`. rpc CommitRepositoryChanges(CommitRepositoryChangesRequest) @@ -548,6 +715,90 @@ service Dataform { }; option (google.api.method_signature) = "config,update_mask"; } + + // Gets the access control policy for a resource. + // Returns an empty policy if the resource exists and does not have a policy + // set. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy" + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy" + } + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy" + } + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy" + } + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the access control policy on the specified resource. Replaces any + // existing policy. + // + // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy" + body: "*" + } + }; + } + + // Returns permissions that a caller has on the specified resource. + // If the resource does not exist, this will return an empty set of + // permissions, not a `NOT_FOUND` error. + // + // Note: This operation is designed to be used for building permission-aware + // UIs and command-line tools, not for authorization checking. This operation + // may "fail open" without warning. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions" + body: "*" + } + }; + } +} + +// Represents the level of detail to return for directory contents. +enum DirectoryContentsView { + // The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + + // Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1; + + // Includes all metadata for each file or directory. Currently not supported + // by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2; } // Describes encryption state of a resource. @@ -648,6 +899,21 @@ message Repository { // Identifier. The repository's name. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + // Optional. The name of the containing folder of the repository. + // The field is immutable and it can be modified via a MoveRepository + // operation. + // Format: `projects/*/locations/*/folders/*`. or + // `projects/*/locations/*/teamFolders/*`. + optional string containing_folder = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Repository is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Repository is not associated with a TeamFolder. + optional string team_folder_name = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The timestamp of when the repository was created. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -714,6 +980,13 @@ message Repository { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Metadata used to identify if a resource is user scoped. +message PrivateResourceMetadata { + // Output only. If true, this resource is user-scoped, meaning it is either a + // workspace or sourced from a workspace. + bool user_scoped = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `ListRepositories` request message. message ListRepositoriesRequest { // Required. The location in which to list repositories. Must be in the format @@ -760,6 +1033,24 @@ message ListRepositoriesResponse { repeated string unreachable = 3; } +// `MoveRepository` request message. +message MoveRepositoryRequest { + // Required. The full resource name of the repository to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // repository to. Can be in the format of: "" to move into the root User + // folder, `projects/*/locations/*/folders/*`, + // `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // `GetRepository` request message. message GetRepositoryRequest { // Required. The repository's name. @@ -811,9 +1102,13 @@ message DeleteRepositoryRequest { } ]; - // Optional. If set to true, any child resources of this repository will also - // be deleted. (Otherwise, the request will only succeed if the repository has - // no child resources.) + // Optional. If set to true, child resources of this repository (compilation + // results and workflow invocations) will also be deleted. Otherwise, the + // request will only succeed if the repository has no child resources. + // + // **Note:** *This flag doesn't support deletion of workspaces, release + // configs or workflow configs. If any of such resources exists in the + // repository, the request will fail.*. bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -1020,6 +1315,9 @@ message ComputeRepositoryAccessTokenStatusResponse { // The token was used successfully to authenticate against the Git remote. VALID = 3; + + // The token is not accessible due to permission issues. + PERMISSION_DENIED = 4; } // Indicates the status of the Git access token. @@ -1069,6 +1367,15 @@ message Workspace { // format of this field is a JSON string. optional string internal_metadata = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. If set to true, workspaces will not be moved if its linked + // Repository is moved. Instead, it will be deleted. + optional bool disable_moves = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata indicating whether this resource is user-scoped. For + // `Workspace` resources, the `user_scoped` field is always `true`. + PrivateResourceMetadata private_resource_metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkspaces` request message. @@ -1370,6 +1677,12 @@ message QueryDirectoryContentsRequest { // `QueryDirectoryContents`, with the exception of `page_size`, must match the // call that provided the page token. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the metadata to return for each directory entry. + // If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + // Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + // CMEK-protected workspaces. + DirectoryContentsView view = 5 [(google.api.field_behavior) = OPTIONAL]; } // `QueryDirectoryContents` response message. @@ -1392,6 +1705,20 @@ message DirectoryEntry { // A child directory in the directory. string directory = 2; } + + // Entry with metadata. + FilesystemEntryMetadata metadata = 3; +} + +// Represents metadata for a single entry in a filesystem. +message FilesystemEntryMetadata { + // Output only. Provides the size of the entry in bytes. For directories, this + // will be 0. + int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the time of the last modification of the entry. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration containing file search request parameters. @@ -1877,6 +2204,12 @@ message CompilationResult { // format of this field is a JSON string. optional string internal_metadata = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `CompilationResult` resource is `user_scoped` only if it is sourced + // from a workspace. + PrivateResourceMetadata private_resource_metadata = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configures various aspects of Dataform code compilation. @@ -2102,6 +2435,24 @@ message CompilationResultAction { MATERIALIZED_VIEW = 4; } + // Supported table formats for BigQuery tables. + enum TableFormat { + // Default value. + TABLE_FORMAT_UNSPECIFIED = 0; + + // Apache Iceberg format. + ICEBERG = 1; + } + + // Supported file formats for BigQuery tables. + enum FileFormat { + // Default value. + FILE_FORMAT_UNSPECIFIED = 0; + + // Apache Parquet format. + PARQUET = 1; + } + // A list of actions that this action depends on. repeated Target dependency_targets = 1; @@ -2148,6 +2499,24 @@ message CompilationResultAction { // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language // for more information on which options are supported. map additional_options = 14; + + // Optional. The connection specifying the credentials to be used to read + // and write to external storage, such as Cloud Storage. The connection can + // have the form `{project}.{location}.{connection_id}` or + // `projects/{project}/locations/{location}/connections/{connection_id}`, + // or be set to DEFAULT. + string connection = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The table format for the BigQuery table. + TableFormat table_format = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The file format for the BigQuery table. + FileFormat file_format = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified location prefix of the external folder + // where table data is stored. The URI should be in the format + // `gs://bucket/path_to_table/`. + string storage_uri = 18 [(google.api.field_behavior) = OPTIONAL]; } // Represents a list of arbitrary database operations. @@ -2460,6 +2829,22 @@ message WorkflowConfig { // If both `included_targets` and `included_tags` are unset, all actions // will be included. message InvocationConfig { + // Types of priority for query execution in BigQuery. + enum QueryPriority { + // Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0; + + // Query will be executed in BigQuery with interactive priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1; + + // Query will be executed in BigQuery with batch priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2; + } + // Optional. The set of action identifiers to include. repeated Target included_targets = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -2482,6 +2867,12 @@ message InvocationConfig { // Optional. The service account to run workflow invocations under. string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the priority for query execution in BigQuery. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + optional QueryPriority query_priority = 9 + [(google.api.field_behavior) = OPTIONAL]; } // `ListWorkflowConfigs` request message. @@ -2660,6 +3051,12 @@ message WorkflowInvocation { // format of this field is a JSON string. optional string internal_metadata = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `WorkflowInvocation` resource is `user_scoped` only if it is sourced + // from a compilation result and the compilation result is user-scoped. + PrivateResourceMetadata private_resource_metadata = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkflowInvocations` request message. @@ -2984,6 +3381,12 @@ message Config { type: "cloudkms.googleapis.com/CryptoKey" } ]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `GetConfig` request message. @@ -3004,3 +3407,601 @@ message UpdateConfigRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Represents a Dataform Folder. This is a resource that is used to organize +// Files and other Folders and provide hierarchical access controls. +message Folder { + option (google.api.resource) = { + type: "dataform.googleapis.com/Folder" + pattern: "projects/{project}/locations/{location}/folders/{folder}" + plural: "folders" + singular: "folder" + }; + + // Identifier. The Folder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The Folder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The containing Folder resource name. This should take + // the format: projects/{project}/locations/{location}/folders/{folder}, + // projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just + // projects/{project}/locations/{location} if this is a root Folder. This + // field can only be updated through MoveFolder. + string containing_folder = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Folder is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Folder is not associated with a TeamFolder and is a + // UserFolder. + string team_folder_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the Folder. + optional string creator_iam_principal = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateFolder` request message. +message CreateFolderRequest { + // Required. The location in which to create the Folder. Must be in the format + // `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Folder to create. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `MoveFolder` request message. +message MoveFolderRequest { + // Required. The full resource name of the Folder to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // Folder to. Can be in the format of: "" to move into the root User folder, + // `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// `GetFolder` request message. +message GetFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `UpdateFolder` request message. +message UpdateFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields that can be updated, will be updated. A few fields cannot be + // updated and will be ignored if specified in the update_mask (e.g. + // parent_name, team_folder_name). + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated Folder. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteFolder` request message. +message DeleteFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `DeleteFolderTree` request message. +message DeleteFolderTreeRequest { + // Required. The Folder's name. + // Format: projects/{project}/locations/{location}/folders/{folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// `DeleteTeamFolderTree` request message. +message DeleteTeamFolderTreeRequest { + // Required. The TeamFolder's name. + // Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Contains metadata about the progress of the DeleteFolderTree Long-running +// operations. +message DeleteFolderTreeMetadata { + // Different states of the DeleteFolderTree operation. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The operation was initialized and recorded by the server, but not yet + // started. + INITIALIZED = 1; + + // The operation is in progress. + IN_PROGRESS = 2; + + // The operation has completed successfully. + SUCCEEDED = 3; + + // The operation has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of the target of the operation. + // Format: projects/{project}/locations/{location}/folders/{folder} or + // projects/{project}/locations/{location}/teamFolders/{team_folder} + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the operation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Percent complete of the operation [0, 100]. + int32 percent_complete = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `QueryFolderContents` request message. +message QueryFolderContentsRequest { + // Required. Name of the folder whose contents to list. + // Format: projects/*/locations/*/folders/* + string folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryFolderContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryFolderContents`, with the exception of `page_size`, must match the + // call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), create_time, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryFolderContents` response message. +message QueryFolderContentsResponse { + // Represents a single content entry. + message FolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated FolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `QueryUserRootContents` request message. +message QueryUserRootContentsRequest { + // Required. Location of the user root folder whose contents to list. + // Format: projects/*/locations/* + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryUserRootContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryUserRootFolderContents`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), created_at, + // last_modified_at. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryUserRootContents` response message. +message QueryUserRootContentsResponse { + // Represents a single content entry. + message RootContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated RootContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Represents a Dataform TeamFolder. This is a resource that sits at the project +// level and is used to organize Repositories and Folders with hierarchical +// access controls. They provide a team context and stricter access controls. +message TeamFolder { + option (google.api.resource) = { + type: "dataform.googleapis.com/TeamFolder" + pattern: "projects/{project}/locations/{location}/teamFolders/{team_folder}" + plural: "teamFolders" + singular: "teamFolder" + }; + + // Identifier. The TeamFolder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The TeamFolder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp of when the TeamFolder was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the TeamFolder was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the TeamFolder. + optional string creator_iam_principal = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateTeamFolder` request message. +message CreateTeamFolderRequest { + // Required. The location in which to create the TeamFolder. Must be in the + // format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The TeamFolder to create. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `GetTeamFolder` request message. +message GetTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `UpdateTeamFolder` request message. +message UpdateTeamFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated TeamFolder. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteTeamFolder` request message. +message DeleteTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `QueryTeamFolderContents` request message. +message QueryTeamFolderContentsRequest { + // Required. Name of the team_folder whose contents to list. + // Format: `projects/*/locations/*/teamFolders/*`. + string team_folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryTeamFolderContents` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryTeamFolderContents`, with the exception of `page_size`, must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: `display_name` (default), `create_time`, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryTeamFolderContents` response message. +message QueryTeamFolderContentsResponse { + // Represents a single content entry. + message TeamFolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the TeamFolder. + repeated TeamFolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `SearchTeamFolders` request message. +message SearchTeamFoldersRequest { + // Required. Location in which to query TeamFolders. + // Format: `projects/*/locations/*`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of TeamFolders to return. The server may return + // fewer items than requested. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `SearchTeamFolders` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `SearchTeamFolders`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Supported keywords: `display_name` (default), `create_time`, + // `last_modified_time`. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `SearchTeamFolders` response message. +message SearchTeamFoldersResponse { + // Represents a single content entry. + message TeamFolderSearchResult { + // The content entry. + oneof entry { + // A TeamFolder resource that is in the project / location. + TeamFolder team_folder = 2; + } + } + + // List of TeamFolders that match the search query. + repeated TeamFolderSearchResult results = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Contains metadata about the progress of the MoveFolder Long-running +// operations. +message MoveFolderMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} + +// Contains metadata about the progress of the MoveRepository Long-running +// operations. +message MoveRepositoryMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java new file mode 100644 index 000000000000..1635ff310000 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/AsyncCreateFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class AsyncCreateFolder { + + public static void main(String[] args) throws Exception { + asyncCreateFolder(); + } + + public static void asyncCreateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.createFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java new file mode 100644 index 000000000000..37d30f0a2c66 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_sync] +import com.google.cloud.dataform.v1.CreateFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolder(); + } + + public static void syncCreateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .build(); + Folder response = dataformClient.createFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java new file mode 100644 index 000000000000..644caa93a0ca --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_LocationnameFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolderLocationnameFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderLocationnameFolder(); + } + + public static void syncCreateFolderLocationnameFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_LocationnameFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java new file mode 100644 index 000000000000..265f1b57e1fc --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createfolder/SyncCreateFolderStringFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateFolder_StringFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.LocationName; + +public class SyncCreateFolderStringFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderStringFolder(); + } + + public static void syncCreateFolderStringFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateFolder_StringFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java new file mode 100644 index 000000000000..c0ec470bb5de --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/AsyncCreateTeamFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class AsyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncCreateTeamFolder(); + } + + public static void asyncCreateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.createTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java new file mode 100644 index 000000000000..2abade293aed --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] +import com.google.cloud.dataform.v1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolder(); + } + + public static void syncCreateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + TeamFolder response = dataformClient.createTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java new file mode 100644 index 000000000000..144e94be6291 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolderLocationnameTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderLocationnameTeamfolder(); + } + + public static void syncCreateTeamFolderLocationnameTeamfolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java new file mode 100644 index 000000000000..7ae6feb7079b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.TeamFolder; + +public class SyncCreateTeamFolderStringTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderStringTeamfolder(); + } + + public static void syncCreateTeamFolderStringTeamfolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java new file mode 100644 index 000000000000..797aeee7443b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/AsyncDeleteFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteFolder(); + } + + public static void asyncDeleteFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java new file mode 100644 index 000000000000..e97e29f4c295 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolder { + + public static void main(String[] args) throws Exception { + syncDeleteFolder(); + } + + public static void syncDeleteFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + dataformClient.deleteFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java new file mode 100644 index 000000000000..a0d3dfc5010b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderFoldername { + + public static void main(String[] args) throws Exception { + syncDeleteFolderFoldername(); + } + + public static void syncDeleteFolderFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java new file mode 100644 index 000000000000..660e0c5698c1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefolder/SyncDeleteFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteFolderString(); + } + + public static void syncDeleteFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java new file mode 100644 index 000000000000..54775a3a44be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTree.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTree(); + } + + public static void asyncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = dataformClient.deleteFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java new file mode 100644 index 000000000000..4a64c3bd24d3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTreeLRO(); + } + + public static void asyncDeleteFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java new file mode 100644 index 000000000000..35a8552e1973 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTree(); + } + + public static void syncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java new file mode 100644 index 000000000000..48bbb0db3ce5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeFoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeFoldernameBoolean(); + } + + public static void syncDeleteFolderTreeFoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java new file mode 100644 index 000000000000..e3cc4d9e16a3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeStringBoolean(); + } + + public static void syncDeleteFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java new file mode 100644 index 000000000000..5a5bd8ad9713 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolder(); + } + + public static void asyncDeleteTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteTeamFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java new file mode 100644 index 000000000000..0557a28d9a74 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolder(); + } + + public static void syncDeleteTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + dataformClient.deleteTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java new file mode 100644 index 000000000000..c4bda9ea4812 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderString(); + } + + public static void syncDeleteTeamFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..bc3c36e17fbf --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTeamfoldername(); + } + + public static void syncDeleteTeamFolderTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..1673d675fbb3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTree(); + } + + public static void asyncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = + dataformClient.deleteTeamFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java new file mode 100644 index 000000000000..e43cf309bd6d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTreeLRO(); + } + + public static void asyncDeleteTeamFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteTeamFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..5c96aa35bc2d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteTeamFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java new file mode 100644 index 000000000000..75a8556c560b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeStringBoolean(); + } + + public static void syncDeleteTeamFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java new file mode 100644 index 000000000000..9f60faf40770 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeTeamfoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeTeamfoldernameBoolean(); + } + + public static void syncDeleteTeamFolderTreeTeamfoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java new file mode 100644 index 000000000000..692bf53d97ce --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/AsyncGetFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.GetFolderRequest; + +public class AsyncGetFolder { + + public static void main(String[] args) throws Exception { + asyncGetFolder(); + } + + public static void asyncGetFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java new file mode 100644 index 000000000000..50268073f943 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.GetFolderRequest; + +public class SyncGetFolder { + + public static void main(String[] args) throws Exception { + syncGetFolder(); + } + + public static void syncGetFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + Folder response = dataformClient.getFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java new file mode 100644 index 000000000000..6ac7ca9cc7dd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; + +public class SyncGetFolderFoldername { + + public static void main(String[] args) throws Exception { + syncGetFolderFoldername(); + } + + public static void syncGetFolderFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java new file mode 100644 index 000000000000..4b1d77ff24ab --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getfolder/SyncGetFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.FolderName; + +public class SyncGetFolderString { + + public static void main(String[] args) throws Exception { + syncGetFolderString(); + } + + public static void syncGetFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java index d7307ac99886..706ad10137a9 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/AsyncGetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_GetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -39,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java index 78ee2a47da96..b2acbc81503a 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_GetIamPolicy_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -38,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = dataformClient.getIamPolicy(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..2efe3aaab1d3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1_generated_Dataform_GetIamPolicy_Resourcename_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..0d18e45052c0 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetIamPolicy_String_sync] +import com.google.cloud.dataform.v1.CompilationResultName; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String resource = + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString(); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1_generated_Dataform_GetIamPolicy_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java new file mode 100644 index 000000000000..c478ee71301e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/AsyncGetTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class AsyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + asyncGetTeamFolder(); + } + + public static void asyncGetTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java new file mode 100644 index 000000000000..337957217ffd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + syncGetTeamFolder(); + } + + public static void syncGetTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + TeamFolder response = dataformClient.getTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java new file mode 100644 index 000000000000..4df0a24ec223 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolderString { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderString(); + } + + public static void syncGetTeamFolderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..4157b82ffefd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncGetTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderTeamfoldername(); + } + + public static void syncGetTeamFolderTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java new file mode 100644 index 000000000000..c5b5bee1efd5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.longrunning.Operation; + +public class AsyncMoveFolder { + + public static void main(String[] args) throws Exception { + asyncMoveFolder(); + } + + public static void asyncMoveFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java new file mode 100644 index 000000000000..ecf9411349ad --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/AsyncMoveFolderLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderMetadata; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class AsyncMoveFolderLRO { + + public static void main(String[] args) throws Exception { + asyncMoveFolderLRO(); + } + + public static void asyncMoveFolderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveFolderOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java new file mode 100644 index 000000000000..1f7d80bbf36e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class SyncMoveFolder { + + public static void main(String[] args) throws Exception { + syncMoveFolder(); + } + + public static void syncMoveFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveFolderAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java new file mode 100644 index 000000000000..d32083f97a57 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderFoldernameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_FoldernameString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderFoldernameString { + + public static void main(String[] args) throws Exception { + syncMoveFolderFoldernameString(); + } + + public static void syncMoveFolderFoldernameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_FoldernameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java new file mode 100644 index 000000000000..ea77ec563983 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/movefolder/SyncMoveFolderStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveFolder_StringString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderStringString { + + public static void main(String[] args) throws Exception { + syncMoveFolderStringString(); + } + + public static void syncMoveFolderStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveFolder_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java new file mode 100644 index 000000000000..67eb0ccb9faa --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepository.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncMoveRepository { + + public static void main(String[] args) throws Exception { + asyncMoveRepository(); + } + + public static void asyncMoveRepository() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveRepositoryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java new file mode 100644 index 000000000000..cd1f8f30daac --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/AsyncMoveRepositoryLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class AsyncMoveRepositoryLRO { + + public static void main(String[] args) throws Exception { + asyncMoveRepositoryLRO(); + } + + public static void asyncMoveRepositoryLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveRepositoryOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java new file mode 100644 index 000000000000..8b0409442260 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepository.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepository { + + public static void main(String[] args) throws Exception { + syncMoveRepository(); + } + + public static void syncMoveRepository() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveRepositoryAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java new file mode 100644 index 000000000000..8955eb4b008e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_RepositorynameString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryRepositorynameString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryRepositorynameString(); + } + + public static void syncMoveRepositoryRepositorynameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_RepositorynameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java new file mode 100644 index 000000000000..a09d44586281 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/moverepository/SyncMoveRepositoryStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_MoveRepository_StringString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryStringString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryStringString(); + } + + public static void syncMoveRepositoryStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1_generated_Dataform_MoveRepository_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java index f04d69a7c796..b0f5fd5cbca8 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java @@ -19,6 +19,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.WorkspaceName; @@ -44,6 +45,7 @@ public static void asyncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); ApiFuture future = dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java index 480b5ebbc8fd..0a58ff9d1b73 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java @@ -18,6 +18,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_Paged_async] import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.QueryDirectoryContentsResponse; @@ -45,6 +46,7 @@ public static void asyncQueryDirectoryContentsPaged() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); while (true) { QueryDirectoryContentsResponse response = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java index 612510061a14..0f6640d69909 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java @@ -18,6 +18,7 @@ // [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.DirectoryContentsView; import com.google.cloud.dataform.v1.DirectoryEntry; import com.google.cloud.dataform.v1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1.WorkspaceName; @@ -43,6 +44,7 @@ public static void syncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { // doThingsWith(element); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java new file mode 100644 index 000000000000..00e456268ab7 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class AsyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContents(); + } + + public static void asyncQueryFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryFolderContentsResponse.FolderContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java new file mode 100644 index 000000000000..b4f505cdcb43 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContentsPaged(); + } + + public static void asyncQueryFolderContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryFolderContentsResponse response = + dataformClient.queryFolderContentsCallable().call(request); + for (QueryFolderContentsResponse.FolderContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java new file mode 100644 index 000000000000..9ce35f8f7f0f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryFolderContents(); + } + + public static void syncQueryFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java new file mode 100644 index 000000000000..ded8c00cf803 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_Foldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsFoldername { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsFoldername(); + } + + public static void syncQueryFolderContentsFoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java new file mode 100644 index 000000000000..7b497be98a80 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryFolderContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.FolderName; +import com.google.cloud.dataform.v1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsString(); + } + + public static void syncQueryFolderContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..6ed925b1c694 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class AsyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContents(); + } + + public static void asyncQueryTeamFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryTeamFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java new file mode 100644 index 000000000000..af57180bbecd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; +import com.google.common.base.Strings; + +public class AsyncQueryTeamFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContentsPaged(); + } + + public static void asyncQueryTeamFolderContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryTeamFolderContentsResponse response = + dataformClient.queryTeamFolderContentsCallable().call(request); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..d0a54b23cb80 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContents(); + } + + public static void syncQueryTeamFolderContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java new file mode 100644 index 000000000000..ccaaa9dee5be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsString(); + } + + public static void syncQueryTeamFolderContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java new file mode 100644 index 000000000000..2b5027091762 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1.TeamFolderName; + +public class SyncQueryTeamFolderContentsTeamfoldername { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsTeamfoldername(); + } + + public static void syncQueryTeamFolderContentsTeamfoldername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java new file mode 100644 index 000000000000..ad6b11038fd1 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class AsyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContents(); + } + + public static void asyncQueryUserRootContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryUserRootContentsPagedCallable().futureCall(request); + // Do something. + for (QueryUserRootContentsResponse.RootContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java new file mode 100644 index 000000000000..3448417d51e5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryUserRootContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContentsPaged(); + } + + public static void asyncQueryUserRootContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryUserRootContentsResponse response = + dataformClient.queryUserRootContentsCallable().call(request); + for (QueryUserRootContentsResponse.RootContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java new file mode 100644 index 000000000000..af20ca815c94 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContents(); + } + + public static void syncQueryUserRootContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java new file mode 100644 index 000000000000..9c6df58a4366 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_Locationname_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsLocationname { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsLocationname(); + } + + public static void syncQueryUserRootContentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_Locationname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java new file mode 100644 index 000000000000..b3c3e527ae01 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_QueryUserRootContents_String_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsString { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsString(); + } + + public static void syncQueryUserRootContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java new file mode 100644 index 000000000000..87dfb96db17f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFolders.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; + +public class AsyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFolders(); + } + + public static void asyncSearchTeamFolders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.searchTeamFoldersPagedCallable().futureCall(request); + // Do something. + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java new file mode 100644 index 000000000000..8bfa159afb88 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_Paged_async] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; +import com.google.common.base.Strings; + +public class AsyncSearchTeamFoldersPaged { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFoldersPaged(); + } + + public static void asyncSearchTeamFoldersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + SearchTeamFoldersResponse response = + dataformClient.searchTeamFoldersCallable().call(request); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java new file mode 100644 index 000000000000..71303f0bc265 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/searchteamfolders/SyncSearchTeamFolders.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.LocationName; +import com.google.cloud.dataform.v1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1.SearchTeamFoldersResponse; + +public class SyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + syncSearchTeamFolders(); + } + + public static void syncSearchTeamFolders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : + dataformClient.searchTeamFolders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java index be1db17bbd3f..0d2260e277b1 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/AsyncSetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_SetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -39,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java index d322a5608b53..dd8592ae472e 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/setiampolicy/SyncSetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_SetIamPolicy_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -38,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java index c00a705d0717..1d532f9e1eb4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/AsyncTestIamPermissions.java @@ -19,7 +19,7 @@ // [START dataform_v1_generated_Dataform_TestIamPermissions_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -39,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java index 1efcad1b1235..d186eaa610f4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/testiampermissions/SyncTestIamPermissions.java @@ -18,7 +18,7 @@ // [START dataform_v1_generated_Dataform_TestIamPermissions_sync] import com.google.cloud.dataform.v1.DataformClient; -import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -38,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java new file mode 100644 index 000000000000..bfce56144860 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/AsyncUpdateFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateFolder(); + } + + public static void asyncUpdateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java new file mode 100644 index 000000000000..d6573c91c513 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.cloud.dataform.v1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolder { + + public static void main(String[] args) throws Exception { + syncUpdateFolder(); + } + + public static void syncUpdateFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + Folder response = dataformClient.updateFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java new file mode 100644 index 000000000000..2a69e25cb9dd --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.Folder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolderFolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFolderFolderFieldmask(); + } + + public static void syncUpdateFolderFolderFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Folder response = dataformClient.updateFolder(folder, updateMask); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java new file mode 100644 index 000000000000..135dc2448580 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateTeamFolder(); + } + + public static void asyncUpdateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java new file mode 100644 index 000000000000..8787bc5fe1d0 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.cloud.dataform.v1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolder(); + } + + public static void syncUpdateTeamFolder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + TeamFolder response = dataformClient.updateTeamFolder(request); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java new file mode 100644 index 000000000000..dfad7fa71a0e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.TeamFolder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolderTeamfolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolderTeamfolderFieldmask(); + } + + public static void syncUpdateTeamFolderTeamfolderFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + TeamFolder response = dataformClient.updateTeamFolder(teamFolder, updateMask); + } + } +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..e07b2c84e142 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_DataformSettings_DeleteTeamFolderTree_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dataform.v1.DataformSettings; +import java.time.Duration; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1_generated_DataformSettings_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java similarity index 86% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java index 7304600b878b..c37ce1961d1a 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataformsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1.samples; -// [START dataform_v1_generated_DataformSettings_GetRepository_sync] +// [START dataform_v1_generated_DataformSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1.DataformSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1_generated_DataformSettings_GetRepository_sync] +// [END dataform_v1_generated_DataformSettings_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..fd5778cc3193 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.stub.samples; + +// [START dataform_v1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.dataform.v1.stub.DataformStubSettings; +import java.time.Duration; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java similarity index 86% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java index 54cc0b021d5d..9dd655c89c25 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1.stub.samples; -// [START dataform_v1_generated_DataformStubSettings_GetRepository_sync] +// [START dataform_v1_generated_DataformStubSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1.stub.DataformStubSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformStubSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1_generated_DataformStubSettings_GetRepository_sync] +// [END dataform_v1_generated_DataformStubSettings_GetTeamFolder_sync] diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 6877ca17ed64..6f6d5bf2063b 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.85.0 + 1.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.85.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java index 763ff5742c6c..f6aee97688df 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java @@ -725,6 +725,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java index 748e0c655a91..542d8f5a0ffa 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java @@ -1277,6 +1277,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java index dc4d4524ca1e..04bb7430936a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java @@ -517,6 +517,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java index 828a147b7e94..8264884fe3b1 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java @@ -624,6 +624,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java index 1199314a3859..957aaeeb5fff 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java @@ -587,6 +587,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java index 9e8ef775c042..48140b7f9247 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java @@ -886,6 +886,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java index 7fd2ad2518dd..04fb53e23858 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java @@ -1143,6 +1143,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java index 9d44daa4d6a3..93d3faff6e17 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcBusinessGlossaryServiceStub.java @@ -400,6 +400,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryTransportSettings = GrpcCallSettings.newBuilder() @@ -420,6 +421,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryTransportSettings = GrpcCallSettings.newBuilder() @@ -430,6 +432,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossariesTransportSettings = @@ -441,6 +444,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createGlossaryCategoryTransportSettings = @@ -452,6 +456,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryCategoryTransportSettings = @@ -473,6 +478,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryCategoryTransportSettings = @@ -484,6 +490,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossaryCategoriesTransportSettings = @@ -496,6 +503,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -506,6 +514,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -526,6 +535,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getGlossaryTermTransportSettings = GrpcCallSettings.newBuilder() @@ -536,6 +546,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listGlossaryTermsTransportSettings = @@ -547,6 +558,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -577,6 +589,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -587,6 +600,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -598,6 +612,7 @@ protected GrpcBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createGlossaryCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java index abc4db67f3c8..6212083286ae 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCatalogServiceStub.java @@ -714,6 +714,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -734,6 +735,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntryTypesTransportSettings = @@ -745,6 +747,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -755,6 +758,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -765,6 +769,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -786,6 +791,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAspectTypesTransportSettings = @@ -797,6 +803,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAspectTypeTransportSettings = GrpcCallSettings.newBuilder() @@ -807,6 +814,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -817,6 +825,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -838,6 +847,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntryGroupsTransportSettings = @@ -849,6 +859,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryGroupTransportSettings = GrpcCallSettings.newBuilder() @@ -859,6 +870,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -869,6 +881,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -889,6 +902,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntriesTransportSettings = GrpcCallSettings.newBuilder() @@ -899,6 +913,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -909,6 +924,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings lookupEntryTransportSettings = GrpcCallSettings.newBuilder() @@ -919,6 +935,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); GrpcCallSettings searchEntriesTransportSettings = GrpcCallSettings.newBuilder() @@ -929,6 +946,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -939,6 +957,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -949,6 +968,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listMetadataJobsTransportSettings = @@ -960,6 +980,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings cancelMetadataJobTransportSettings = GrpcCallSettings.newBuilder() @@ -970,6 +991,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createEntryLinkTransportSettings = GrpcCallSettings.newBuilder() @@ -980,6 +1002,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntryLinkTransportSettings = GrpcCallSettings.newBuilder() @@ -1000,6 +1023,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings lookupEntryLinksTransportSettings = @@ -1011,6 +1035,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); GrpcCallSettings lookupContextTransportSettings = GrpcCallSettings.newBuilder() @@ -1031,6 +1056,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1041,6 +1067,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1051,6 +1078,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listMetadataFeedsTransportSettings = @@ -1062,6 +1090,7 @@ protected GrpcCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1072,6 +1101,7 @@ protected GrpcCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings updateMetadataFeedTransportSettings = GrpcCallSettings.newBuilder() @@ -1113,6 +1143,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -1123,6 +1154,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -1134,6 +1166,7 @@ protected GrpcCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntryTypeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java index 3822c36f192f..6262b2842151 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcCmekServiceStub.java @@ -249,6 +249,7 @@ protected GrpcCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEncryptionConfigTransportSettings = @@ -273,6 +274,7 @@ protected GrpcCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEncryptionConfigsTransportSettings = @@ -285,6 +287,7 @@ protected GrpcCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getEncryptionConfigTransportSettings = @@ -296,6 +299,7 @@ protected GrpcCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -326,6 +330,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -336,6 +341,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -347,6 +353,7 @@ protected GrpcCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEncryptionConfigCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java index 455422cf27d1..f14502f4824d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataProductServiceStub.java @@ -320,6 +320,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deleteDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -330,6 +331,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -340,6 +342,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataProductsTransportSettings = @@ -351,6 +354,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataProductTransportSettings = GrpcCallSettings.newBuilder() @@ -372,6 +376,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -392,6 +397,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -402,6 +408,7 @@ protected GrpcDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAssetsTransportSettings = @@ -413,6 +420,7 @@ protected GrpcDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -443,6 +451,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -453,6 +462,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -464,6 +474,7 @@ protected GrpcDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataProductCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java index e3b82fb07378..1520098b3a1b 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java @@ -307,6 +307,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -327,6 +328,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -337,6 +339,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataScansTransportSettings = GrpcCallSettings.newBuilder() @@ -347,6 +350,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings runDataScanTransportSettings = GrpcCallSettings.newBuilder() @@ -357,6 +361,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getDataScanJobTransportSettings = GrpcCallSettings.newBuilder() @@ -367,6 +372,7 @@ protected GrpcDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataScanJobsTransportSettings = @@ -378,6 +384,7 @@ protected GrpcDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings generateDataQualityRulesTransportSettings = @@ -420,6 +427,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -430,6 +438,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -441,6 +450,7 @@ protected GrpcDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataScanCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java index 2eac4c2505f7..1bfee979228a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataTaxonomyServiceStub.java @@ -418,6 +418,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() @@ -439,6 +440,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataTaxonomiesTransportSettings = @@ -450,6 +452,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() @@ -460,6 +463,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDataAttributeBindingTransportSettings = @@ -471,6 +475,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAttributeBindingTransportSettings = @@ -495,6 +500,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAttributeBindingsTransportSettings = @@ -507,6 +513,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataAttributeBindingTransportSettings = @@ -518,6 +525,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings createDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -528,6 +536,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -549,6 +558,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listDataAttributesTransportSettings = @@ -560,6 +570,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getDataAttributeTransportSettings = GrpcCallSettings.newBuilder() @@ -570,6 +581,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -600,6 +612,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -610,6 +623,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -621,6 +635,7 @@ protected GrpcDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataTaxonomyCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java index dc629e1947bb..e85c3973e986 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataplexServiceStub.java @@ -533,6 +533,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateLakeTransportSettings = GrpcCallSettings.newBuilder() @@ -553,6 +554,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLakesTransportSettings = GrpcCallSettings.newBuilder() @@ -563,6 +565,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getLakeTransportSettings = GrpcCallSettings.newBuilder() @@ -573,6 +576,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLakeActionsTransportSettings = GrpcCallSettings.newBuilder() @@ -583,6 +587,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -593,6 +598,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -613,6 +619,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listZonesTransportSettings = GrpcCallSettings.newBuilder() @@ -623,6 +630,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getZoneTransportSettings = GrpcCallSettings.newBuilder() @@ -633,6 +641,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listZoneActionsTransportSettings = GrpcCallSettings.newBuilder() @@ -643,6 +652,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -653,6 +663,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -673,6 +684,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAssetsTransportSettings = GrpcCallSettings.newBuilder() @@ -683,6 +695,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getAssetTransportSettings = GrpcCallSettings.newBuilder() @@ -693,6 +706,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listAssetActionsTransportSettings = @@ -704,6 +718,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -714,6 +729,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -734,6 +750,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() @@ -744,6 +761,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -754,6 +772,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() @@ -764,6 +783,7 @@ protected GrpcDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() @@ -774,6 +794,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() @@ -784,6 +805,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() @@ -794,6 +816,7 @@ protected GrpcDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -824,6 +847,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -834,6 +858,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -845,6 +870,7 @@ protected GrpcDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createLakeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java index 7ed57046dd07..f9a7556c4fbb 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcMetadataServiceStub.java @@ -282,6 +282,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings updateEntityTransportSettings = GrpcCallSettings.newBuilder() @@ -302,6 +303,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getEntityTransportSettings = GrpcCallSettings.newBuilder() @@ -312,6 +314,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listEntitiesTransportSettings = GrpcCallSettings.newBuilder() @@ -322,6 +325,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings createPartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -332,6 +336,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings deletePartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -342,6 +347,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings getPartitionTransportSettings = GrpcCallSettings.newBuilder() @@ -352,6 +358,7 @@ protected GrpcMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); GrpcCallSettings listPartitionsTransportSettings = @@ -363,6 +370,7 @@ protected GrpcMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() @@ -393,6 +401,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() @@ -403,6 +412,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); GrpcCallSettings testIamPermissionsTransportSettings = @@ -414,6 +424,7 @@ protected GrpcMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntityCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java index a1e3bad5ec63..e53e37d4faa4 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonBusinessGlossaryServiceStub.java @@ -1044,6 +1044,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1066,6 +1067,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1077,6 +1079,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossariesTransportSettings = @@ -1089,6 +1092,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createGlossaryCategoryTransportSettings = @@ -1101,6 +1105,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryCategoryTransportSettings = @@ -1125,6 +1130,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryCategoryTransportSettings = @@ -1137,6 +1143,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossaryCategoriesTransportSettings = @@ -1150,6 +1157,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createGlossaryTermTransportSettings = @@ -1162,6 +1170,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateGlossaryTermTransportSettings = @@ -1185,6 +1194,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getGlossaryTermTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1196,6 +1206,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listGlossaryTermsTransportSettings = @@ -1208,6 +1219,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1242,6 +1254,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1253,6 +1266,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1265,6 +1279,7 @@ protected HttpJsonBusinessGlossaryServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createGlossaryCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java index 0e95ddde2606..560d9602a88d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java @@ -1995,6 +1995,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2017,6 +2018,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntryTypesTransportSettings = @@ -2029,6 +2031,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2040,6 +2043,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2051,6 +2055,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2074,6 +2079,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAspectTypesTransportSettings = @@ -2086,6 +2092,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAspectTypeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2097,6 +2104,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2108,6 +2116,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2131,6 +2140,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntryGroupsTransportSettings = @@ -2143,6 +2153,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryGroupTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2154,6 +2165,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2165,6 +2177,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2187,6 +2200,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2198,6 +2212,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2209,6 +2224,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings lookupEntryTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2220,6 +2236,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); HttpJsonCallSettings searchEntriesTransportSettings = @@ -2232,6 +2249,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2243,6 +2261,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2254,6 +2273,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listMetadataJobsTransportSettings = @@ -2266,6 +2286,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings cancelMetadataJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2277,6 +2298,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createEntryLinkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2288,6 +2310,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntryLinkTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2310,6 +2333,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings lookupEntryLinksTransportSettings = @@ -2322,6 +2346,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getEntry()) .build(); HttpJsonCallSettings lookupContextTransportSettings = @@ -2345,6 +2370,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2356,6 +2382,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2367,6 +2394,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listMetadataFeedsTransportSettings = @@ -2379,6 +2407,7 @@ protected HttpJsonCatalogServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2390,6 +2419,7 @@ protected HttpJsonCatalogServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings updateMetadataFeedTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2436,6 +2466,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2447,6 +2478,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -2459,6 +2491,7 @@ protected HttpJsonCatalogServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntryTypeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java index a230fa9cad96..c9ab9ed72afa 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCmekServiceStub.java @@ -640,6 +640,7 @@ protected HttpJsonCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEncryptionConfigTransportSettings = @@ -666,6 +667,7 @@ protected HttpJsonCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEncryptionConfigsTransportSettings = @@ -679,6 +681,7 @@ protected HttpJsonCmekServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getEncryptionConfigTransportSettings = @@ -691,6 +694,7 @@ protected HttpJsonCmekServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -725,6 +729,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -736,6 +741,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -748,6 +754,7 @@ protected HttpJsonCmekServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEncryptionConfigCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java index db91a7a9225c..b1493227fbee 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataProductServiceStub.java @@ -859,6 +859,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deleteDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -870,6 +871,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -881,6 +883,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataProductsTransportSettings = @@ -893,6 +896,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataProductTransportSettings = HttpJsonCallSettings.newBuilder() @@ -916,6 +920,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -938,6 +943,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -949,6 +955,7 @@ protected HttpJsonDataProductServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAssetsTransportSettings = @@ -961,6 +968,7 @@ protected HttpJsonDataProductServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -995,6 +1003,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1006,6 +1015,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1018,6 +1028,7 @@ protected HttpJsonDataProductServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataProductCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java index c2ece90de569..4835ac4ac0f7 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java @@ -800,6 +800,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -822,6 +823,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -833,6 +835,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataScansTransportSettings = @@ -845,6 +848,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings runDataScanTransportSettings = HttpJsonCallSettings.newBuilder() @@ -856,6 +860,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getDataScanJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -867,6 +872,7 @@ protected HttpJsonDataScanServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataScanJobsTransportSettings = @@ -879,6 +885,7 @@ protected HttpJsonDataScanServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings generateDataQualityRulesTransportSettings = @@ -926,6 +933,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -937,6 +945,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -949,6 +958,7 @@ protected HttpJsonDataScanServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataScanCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java index b536a0d8ebcc..5b0d35c50e97 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataTaxonomyServiceStub.java @@ -1104,6 +1104,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataTaxonomyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1127,6 +1128,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataTaxonomiesTransportSettings = @@ -1139,6 +1141,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataTaxonomyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1150,6 +1153,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDataAttributeBindingTransportSettings = @@ -1162,6 +1166,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAttributeBindingTransportSettings = @@ -1188,6 +1193,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAttributeBindingsTransportSettings = @@ -1201,6 +1207,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataAttributeBindingTransportSettings = @@ -1213,6 +1220,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings createDataAttributeTransportSettings = @@ -1225,6 +1233,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateDataAttributeTransportSettings = @@ -1251,6 +1260,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listDataAttributesTransportSettings = @@ -1263,6 +1273,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getDataAttributeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1274,6 +1285,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1308,6 +1320,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1319,6 +1332,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1331,6 +1345,7 @@ protected HttpJsonDataTaxonomyServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createDataTaxonomyCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java index 8ec0bc029ae4..6b2b78a9145d 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataplexServiceStub.java @@ -1550,6 +1550,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateLakeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1572,6 +1573,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLakesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1583,6 +1585,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getLakeTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1594,6 +1597,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLakeActionsTransportSettings = @@ -1606,6 +1610,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1617,6 +1622,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1639,6 +1645,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listZonesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1650,6 +1657,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getZoneTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1661,6 +1669,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listZoneActionsTransportSettings = @@ -1673,6 +1682,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1684,6 +1694,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1706,6 +1717,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAssetsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1717,6 +1729,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getAssetTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1728,6 +1741,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listAssetActionsTransportSettings = @@ -1740,6 +1754,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1751,6 +1766,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1773,6 +1789,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listTasksTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1784,6 +1801,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings getTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1795,6 +1813,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listJobsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1806,6 +1825,7 @@ protected HttpJsonDataplexServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings runTaskTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1817,6 +1837,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1828,6 +1849,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings cancelJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1839,6 +1861,7 @@ protected HttpJsonDataplexServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -1873,6 +1896,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1884,6 +1908,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -1896,6 +1921,7 @@ protected HttpJsonDataplexServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createLakeCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java index f79c993e38ab..e43b842fadce 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonMetadataServiceStub.java @@ -715,6 +715,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings updateEntityTransportSettings = HttpJsonCallSettings.newBuilder() @@ -737,6 +738,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getEntityTransportSettings = HttpJsonCallSettings.newBuilder() @@ -748,6 +750,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listEntitiesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -759,6 +762,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings createPartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -770,6 +774,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings deletePartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -781,6 +786,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings getPartitionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -792,6 +798,7 @@ protected HttpJsonMetadataServiceStub( builder.add("name", String.valueOf(request.getName())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getName()) .build(); HttpJsonCallSettings listPartitionsTransportSettings = @@ -804,6 +811,7 @@ protected HttpJsonMetadataServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getParent()) .build(); HttpJsonCallSettings listLocationsTransportSettings = @@ -838,6 +846,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() @@ -849,6 +858,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = @@ -861,6 +871,7 @@ protected HttpJsonMetadataServiceStub( builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) + .setResourceNameExtractor(request -> request.getResource()) .build(); this.createEntityCallable = diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java index 3689a815631e..0e68a26a1058 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java @@ -519,6 +519,7 @@ protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() .setArtifactName("com.google.cloud:google-cloud-dataplex") .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) .build(); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java new file mode 100644 index 000000000000..3f38af2e38cf --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-dataplex:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json index 13660933691d..e243886e8a40 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json +++ b/java-dataplex/google-cloud-dataplex/src/main/resources/META-INF/native-image/com.google.cloud.dataplex.v1/reflect-config.json @@ -1,4 +1,58 @@ [ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ClientLibraryDestination", "queryAllDeclaredConstructors": true, @@ -143,6 +197,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index 53ca676f815d..d237807d65cd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -278,7 +278,10 @@ * * *

            ListLocations - *

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

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

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

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

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

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

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

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

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

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

              Sample code: * *

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

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

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

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

              Sample code: * *

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

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

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

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

              Sample code: * *

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

              ListLocations - *

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

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

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

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

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

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

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

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

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

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

                Sample code: * *

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

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

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

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

                Sample code: * *

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

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

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

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

                Sample code: * *

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

                ListLocations - *

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

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

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

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

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

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

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

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

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

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

                  Sample code: * *

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

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

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

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

                  Sample code: * *

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

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

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

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

                  Sample code: * *

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

                  ListLocations - *

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

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

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

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

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

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

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

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

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

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

                    Sample code: * *

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

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

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

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

                    Sample code: * *

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

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

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

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

                    Sample code: * *

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

                    ListLocations - *

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

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

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

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

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

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

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

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

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

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

                      Sample code: * *

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

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

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

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

                      Sample code: * *

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

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

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

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

                      Sample code: * *

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

                      ListLocations - *

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

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

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

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

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

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

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

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

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

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

                        Sample code: * *

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

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

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

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

                        Sample code: * *

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

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

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

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

                        Sample code: * *

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

                        ListLocations - *

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

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

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

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

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

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

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

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

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

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

                          Sample code: * *

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

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

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

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

                          Sample code: * *

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

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

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

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

                          Sample code: * *

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

                          ListLocations - *

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

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

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

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

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

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

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

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

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

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

                            Sample code: * *

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

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

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

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

                            Sample code: * *

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

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

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

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

                            Sample code: * *

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

                            ListLocations - *

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

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

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

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

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

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

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

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

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

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

                              Sample code: * *

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

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

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

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

                              Sample code: * *

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

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

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

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

                              Sample code: * *

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

                              ListLocations - *

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

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

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

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

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

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

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

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

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

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

                                Sample code: * *

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

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

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

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

                                Sample code: * *

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

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

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

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

                                Sample code: * *

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

                                ListLocations - *

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

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

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

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

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

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

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

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

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

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

                                  Sample code: * *

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

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

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

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

                                  Sample code: * *

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

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

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

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

                                  Sample code: * *

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

                                  ListLocations - *

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

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

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

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

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

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

                                  *
                                    @@ -1915,6 +1918,19 @@ public final UnaryCallable deletePlaybookVe /** * Lists information about the supported locations for this service. * + *

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

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

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

                                    Sample code: * *

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

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

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

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

                                    Sample code: * *

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

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

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

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

                                    Sample code: * *

                                    {@code
                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                                    index f2ed99b4dbcf..7ad44b3aebc0 100644
                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
                                    @@ -168,7 +168,10 @@
                                      *    
                                      *    
                                      *      

                                    ListLocations - *

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

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

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

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

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

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

                                    *
                                      @@ -973,6 +976,19 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) /** * Lists information about the supported locations for this service. * + *

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

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

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

                                      Sample code: * *

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

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

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

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

                                      Sample code: * *

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

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

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

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

                                      Sample code: * *

                                      {@code
                                      diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                                      index 014d6e38dc22..0e571ecf81e7 100644
                                      --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                                      +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
                                      @@ -168,7 +168,10 @@
                                        *    
                                        *    
                                        *      

                                      ListLocations - *

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

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

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

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

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

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

                                      *
                                        @@ -1005,6 +1008,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

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

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

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

                                        Sample code: * *

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

                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                        Sample code: * *

                                        {@code
                                        @@ -1072,6 +1101,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                           /**
                                            * Lists information about the supported locations for this service.
                                            *
                                        +   * 

                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                        Sample code: * *

                                        {@code
                                        diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                        index f7b1e0e55e5c..850c8e7ed79a 100644
                                        --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                        +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
                                        @@ -159,7 +159,10 @@
                                          *    
                                          *    
                                          *      

                                        ListLocations - *

                                        Lists information about the supported locations for this service. + *

                                        Lists information about the supported locations for this service. + *

                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                        *
                                          @@ -662,6 +665,19 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req /** * Lists information about the supported locations for this service. * + *

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -695,6 +711,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                             /**
                                              * Lists information about the supported locations for this service.
                                              *
                                          +   * 

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          @@ -728,6 +757,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                             /**
                                              * Lists information about the supported locations for this service.
                                              *
                                          +   * 

                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                          Sample code: * *

                                          {@code
                                          diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                          index 6070d3ac9c7e..43dd27191f69 100644
                                          --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                          +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
                                          @@ -291,7 +291,10 @@
                                            *    
                                            *    
                                            *      

                                          ListLocations - *

                                          Lists information about the supported locations for this service. + *

                                          Lists information about the supported locations for this service. + *

                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                          *
                                            @@ -1884,6 +1887,19 @@ public final UnaryCallable getTestCase /** * Lists information about the supported locations for this service. * + *

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            @@ -1917,6 +1933,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                               /**
                                                * Lists information about the supported locations for this service.
                                                *
                                            +   * 

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            @@ -1950,6 +1979,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                               /**
                                                * Lists information about the supported locations for this service.
                                                *
                                            +   * 

                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                            Sample code: * *

                                            {@code
                                            diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                            index 2bb686962c8f..f86af4ad0fea 100644
                                            --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                            +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
                                            @@ -261,7 +261,10 @@
                                              *    
                                              *    
                                              *      

                                            ListLocations - *

                                            Lists information about the supported locations for this service. + *

                                            Lists information about the supported locations for this service. + *

                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                            *
                                              @@ -1632,6 +1635,19 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq /** * Lists information about the supported locations for this service. * + *

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              @@ -1665,6 +1681,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                 /**
                                                  * Lists information about the supported locations for this service.
                                                  *
                                              +   * 

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              @@ -1698,6 +1727,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                 /**
                                                  * Lists information about the supported locations for this service.
                                                  *
                                              +   * 

                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                              Sample code: * *

                                              {@code
                                              diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                              index 955c2c113599..375754d68145 100644
                                              --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                              +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
                                              @@ -174,7 +174,10 @@
                                                *    
                                                *    
                                                *      

                                              ListLocations - *

                                              Lists information about the supported locations for this service. + *

                                              Lists information about the supported locations for this service. + *

                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                              *
                                                @@ -1159,6 +1162,19 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r /** * Lists information about the supported locations for this service. * + *

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                @@ -1193,6 +1209,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                   /**
                                                    * Lists information about the supported locations for this service.
                                                    *
                                                +   * 

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                @@ -1228,6 +1257,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                   /**
                                                    * Lists information about the supported locations for this service.
                                                    *
                                                +   * 

                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                Sample code: * *

                                                {@code
                                                diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                                index c8d7ac82b843..00958e9104e8 100644
                                                --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                                +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
                                                @@ -215,7 +215,10 @@
                                                  *    
                                                  *    
                                                  *      

                                                ListLocations - *

                                                Lists information about the supported locations for this service. + *

                                                Lists information about the supported locations for this service. + *

                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                *
                                                  @@ -1388,6 +1391,19 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ /** * Lists information about the supported locations for this service. * + *

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  @@ -1421,6 +1437,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                     /**
                                                      * Lists information about the supported locations for this service.
                                                      *
                                                  +   * 

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  @@ -1454,6 +1483,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                     /**
                                                      * Lists information about the supported locations for this service.
                                                      *
                                                  +   * 

                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                  Sample code: * *

                                                  {@code
                                                  diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                                  index e05cb9c00fa3..95294db20806 100644
                                                  --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                                  +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java
                                                  @@ -164,7 +164,10 @@
                                                    *    
                                                    *    
                                                    *      

                                                  ListLocations - *

                                                  Lists information about the supported locations for this service. + *

                                                  Lists information about the supported locations for this service. + *

                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                  *
                                                    @@ -889,6 +892,19 @@ public final UnaryCallable deleteWebhookCallable() /** * Lists information about the supported locations for this service. * + *

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    @@ -922,6 +938,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                       /**
                                                        * Lists information about the supported locations for this service.
                                                        *
                                                    +   * 

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    @@ -955,6 +984,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                       /**
                                                        * Lists information about the supported locations for this service.
                                                        *
                                                    +   * 

                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                    Sample code: * *

                                                    {@code
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                                    index f6cd8c2fd700..6af8a7a02f68 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java
                                                    @@ -505,6 +505,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                                    index 6e9955f9733a..687fe60e1d1f 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java
                                                    @@ -379,6 +379,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                                    index 5c9bebc97168..9aa85c9e3ba3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java
                                                    @@ -382,6 +382,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                                    index 282e81f3e298..ec80e6f380df 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
                                                    @@ -482,6 +482,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                                    index 3d6b9a688a74..01ac286b3efc 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java
                                                    @@ -683,6 +683,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                                    index a20448b75ec0..b9fd74df4245 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java
                                                    @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                                    index 212ce1318c60..2cc58f639065 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java
                                                    @@ -423,6 +423,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                                    index 4cb22ec3b288..a639bd47de4c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java
                                                    @@ -500,6 +500,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                                    index 294743cb528f..2a287fb12962 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java
                                                    @@ -404,6 +404,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                                    index 2401b0158615..7b791761e22c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcAgentsStub.java
                                                    @@ -268,6 +268,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -278,6 +279,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -288,6 +290,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -308,6 +311,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings exportAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -318,6 +322,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings restoreAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -328,6 +333,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings validateAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -338,6 +344,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             getAgentValidationResultTransportSettings =
                                                    @@ -349,6 +356,7 @@ protected GrpcAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getGenerativeSettingsTransportSettings =
                                                    @@ -360,6 +368,7 @@ protected GrpcAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateGenerativeSettingsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                                    index 0daf203dcf4f..24fbfe22d663 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java
                                                    @@ -153,6 +153,7 @@ protected GrpcChangelogsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getChangelogTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -163,6 +164,7 @@ protected GrpcChangelogsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                                    index f3f1dac91ddb..bc4ae219e9da 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java
                                                    @@ -155,6 +155,7 @@ protected GrpcDeploymentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getDeploymentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -165,6 +166,7 @@ protected GrpcDeploymentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                                    index 460d4bdc938a..704351dcd996 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
                                                    @@ -232,6 +232,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createEntityTypeTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -242,6 +243,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateEntityTypeTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -263,6 +265,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listEntityTypesTransportSettings =
                                                    @@ -274,6 +277,7 @@ protected GrpcEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings exportEntityTypesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -284,6 +288,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings importEntityTypesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -294,6 +299,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                                    index 78b3e3d1b104..13dbc0300786 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java
                                                    @@ -281,6 +281,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -291,6 +292,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -301,6 +303,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -322,6 +325,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             lookupEnvironmentHistoryTransportSettings =
                                                    @@ -334,6 +338,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings runContinuousTestTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -344,6 +349,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listContinuousTestResultsTransportSettings =
                                                    @@ -356,6 +362,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deployFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -366,6 +373,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                                    index 774d9050cde9..4979235e257c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExamplesStub.java
                                                    @@ -185,6 +185,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deleteExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -195,6 +196,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listExamplesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -205,6 +207,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -215,6 +218,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                                    index 22ae06697956..5abd961db1fe 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcExperimentsStub.java
                                                    @@ -221,6 +221,7 @@ protected GrpcExperimentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -231,6 +232,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -241,6 +243,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -261,6 +264,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings startExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -271,6 +275,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings stopExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -281,6 +286,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                                    index f56b79a1a946..87a916d0bc8c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcFlowsStub.java
                                                    @@ -251,6 +251,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deleteFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -261,6 +262,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listFlowsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -271,6 +273,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -281,6 +284,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -301,6 +305,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings validateFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -311,6 +316,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             getFlowValidationResultTransportSettings =
                                                    @@ -322,6 +328,7 @@ protected GrpcFlowsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings importFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -332,6 +339,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -342,6 +350,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                                    index bbe7b5ef623d..76c87a0e0dc3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcGeneratorsStub.java
                                                    @@ -193,6 +193,7 @@ protected GrpcGeneratorsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -203,6 +204,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -213,6 +215,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -233,6 +236,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                                    index 3a1a2552422c..7a3fc108730d 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcIntentsStub.java
                                                    @@ -219,6 +219,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -229,6 +230,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -239,6 +241,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -259,6 +262,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings importIntentsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -269,6 +273,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportIntentsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -279,6 +284,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                                    index c3ca8fc99c1d..a28d40425a96 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java
                                                    @@ -179,6 +179,7 @@ protected GrpcPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getPageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -189,6 +190,7 @@ protected GrpcPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createPageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -199,6 +201,7 @@ protected GrpcPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updatePageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -219,6 +222,7 @@ protected GrpcPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                                    index 9ff5ca0a531b..887dcbd37083 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPlaybooksStub.java
                                                    @@ -304,6 +304,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deletePlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -314,6 +315,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listPlaybooksTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -324,6 +326,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -334,6 +337,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings exportPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -344,6 +348,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings importPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -354,6 +359,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updatePlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -375,6 +381,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getPlaybookVersionTransportSettings =
                                                    @@ -386,6 +393,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             restorePlaybookVersionTransportSettings =
                                                    @@ -398,6 +406,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             listPlaybookVersionsTransportSettings =
                                                    @@ -409,6 +418,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deletePlaybookVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -419,6 +429,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                                    index 9f7a6aea8e90..892455c2b172 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSecuritySettingsServiceStub.java
                                                    @@ -206,6 +206,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getSecuritySettingsTransportSettings =
                                                    @@ -217,6 +218,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateSecuritySettingsTransportSettings =
                                                    @@ -241,6 +243,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deleteSecuritySettingsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -251,6 +254,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                                    index 188c10db41ff..b2d7bdaca2c9 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionEntityTypesStub.java
                                                    @@ -209,6 +209,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getSessionEntityTypeTransportSettings =
                                                    @@ -220,6 +221,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             createSessionEntityTypeTransportSettings =
                                                    @@ -231,6 +233,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateSessionEntityTypeTransportSettings =
                                                    @@ -255,6 +258,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                                    index fd12ddb2976c..9845c62e2a50 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
                                                    @@ -208,6 +208,7 @@ protected GrpcSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         GrpcCallSettings
                                                             serverStreamingDetectIntentTransportSettings =
                                                    @@ -219,12 +220,14 @@ protected GrpcSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings
                                                             streamingDetectIntentTransportSettings =
                                                                 GrpcCallSettings
                                                                     .newBuilder()
                                                                     .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings matchIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -235,6 +238,7 @@ protected GrpcSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         GrpcCallSettings fulfillIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -258,6 +262,7 @@ protected GrpcSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                                    index fa4ee5fc4ae3..66a539ba1012 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java
                                                    @@ -310,6 +310,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings batchDeleteTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -320,6 +321,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -330,6 +332,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -340,6 +343,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -360,6 +364,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings batchRunTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -370,6 +375,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings
                                                             calculateCoverageTransportSettings =
                                                    @@ -381,6 +387,7 @@ protected GrpcTestCasesStub(
                                                                           builder.add("agent", String.valueOf(request.getAgent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getAgent())
                                                                     .build();
                                                         GrpcCallSettings importTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -391,6 +398,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -401,6 +409,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listTestCaseResultsTransportSettings =
                                                    @@ -412,6 +421,7 @@ protected GrpcTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getTestCaseResultTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -422,6 +432,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                                    index ca931f15216c..dad63a483a60 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcToolsStub.java
                                                    @@ -254,6 +254,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listToolsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -264,6 +265,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getToolTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -274,6 +276,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateToolTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -294,6 +297,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listToolVersionsTransportSettings =
                                                    @@ -305,6 +309,7 @@ protected GrpcToolsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings createToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -315,6 +320,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -325,6 +331,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings deleteToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -335,6 +342,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             restoreToolVersionTransportSettings =
                                                    @@ -346,6 +354,7 @@ protected GrpcToolsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                                    index ee86e54e0252..89adddfc0645 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTransitionRouteGroupsStub.java
                                                    @@ -213,6 +213,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getTransitionRouteGroupTransportSettings =
                                                    @@ -224,6 +225,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             createTransitionRouteGroupTransportSettings =
                                                    @@ -235,6 +237,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateTransitionRouteGroupTransportSettings =
                                                    @@ -259,6 +262,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                                    index 5049ada5faf9..94527bed1833 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java
                                                    @@ -219,6 +219,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -229,6 +230,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -239,6 +241,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -259,6 +262,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings loadVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -269,6 +273,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             compareVersionsTransportSettings =
                                                    @@ -280,6 +285,7 @@ protected GrpcVersionsStub(
                                                                           builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                                    index a73e992edc99..fb10f6224f15 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcWebhooksStub.java
                                                    @@ -185,6 +185,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -195,6 +196,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -205,6 +207,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -225,6 +228,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                                    index 26e6b59fd413..6b7318c75080 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonAgentsStub.java
                                                    @@ -662,6 +662,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -673,6 +674,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -684,6 +686,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -706,6 +709,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings exportAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -717,6 +721,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings restoreAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -728,6 +733,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             validateAgentTransportSettings =
                                                    @@ -740,6 +746,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getAgentValidationResultTransportSettings =
                                                    @@ -753,6 +760,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getGenerativeSettingsTransportSettings =
                                                    @@ -765,6 +773,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateGenerativeSettingsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                                    index dba70485bbb8..ac503d59bcb5 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonChangelogsStub.java
                                                    @@ -259,6 +259,7 @@ protected HttpJsonChangelogsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getChangelogTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -270,6 +271,7 @@ protected HttpJsonChangelogsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                                    index fbe17b02bcf5..3ac247b2e28c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonDeploymentsStub.java
                                                    @@ -259,6 +259,7 @@ protected HttpJsonDeploymentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getDeploymentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -270,6 +271,7 @@ protected HttpJsonDeploymentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                                    index 9902c6ef5753..2426024027d1 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
                                                    @@ -525,6 +525,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createEntityTypeTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -536,6 +537,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -559,6 +561,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listEntityTypesTransportSettings =
                                                    @@ -571,6 +574,7 @@ protected HttpJsonEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings exportEntityTypesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -582,6 +586,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings importEntityTypesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -593,6 +598,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                                    index f50b028df95e..192889405a3b 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEnvironmentsStub.java
                                                    @@ -627,6 +627,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -638,6 +639,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -649,6 +651,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -672,6 +675,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             lookupEnvironmentHistoryTransportSettings =
                                                    @@ -685,6 +689,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings runContinuousTestTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -696,6 +701,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listContinuousTestResultsTransportSettings =
                                                    @@ -709,6 +715,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings deployFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -720,6 +727,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                                    index 29ad421e2e93..6e49bbd8b4a8 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExamplesStub.java
                                                    @@ -374,6 +374,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deleteExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -385,6 +386,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings listExamplesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -396,6 +398,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -407,6 +410,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                                    index f9752db6d991..969b955e7ec1 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonExperimentsStub.java
                                                    @@ -454,6 +454,7 @@ protected HttpJsonExperimentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -465,6 +466,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -476,6 +478,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -498,6 +501,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings startExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -509,6 +513,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings stopExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -520,6 +525,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                                    index a101ec64075e..62929842b077 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonFlowsStub.java
                                                    @@ -628,6 +628,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deleteFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -639,6 +640,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings listFlowsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -650,6 +652,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -661,6 +664,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -683,6 +687,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings validateFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -694,6 +699,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             getFlowValidationResultTransportSettings =
                                                    @@ -706,6 +712,7 @@ protected HttpJsonFlowsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings importFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -717,6 +724,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -728,6 +736,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                                    index fbb5688d7ef0..4ad71c84a0e6 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonGeneratorsStub.java
                                                    @@ -384,6 +384,7 @@ protected HttpJsonGeneratorsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -395,6 +396,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -406,6 +408,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -428,6 +431,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                                    index 11d0bda77d2c..2d593b0dfc44 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonIntentsStub.java
                                                    @@ -520,6 +520,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -531,6 +532,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -542,6 +544,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -564,6 +567,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings importIntentsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -575,6 +579,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportIntentsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -586,6 +591,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                                    index d32a5a4c558a..252975174ea3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPagesStub.java
                                                    @@ -369,6 +369,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getPageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -380,6 +381,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createPageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -391,6 +393,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updatePageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -413,6 +416,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                                    index 643bc878b538..4a6395571768 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonPlaybooksStub.java
                                                    @@ -712,6 +712,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deletePlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -723,6 +724,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listPlaybooksTransportSettings =
                                                    @@ -735,6 +737,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -746,6 +749,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings exportPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -757,6 +761,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings importPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -768,6 +773,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updatePlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -791,6 +797,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getPlaybookVersionTransportSettings =
                                                    @@ -803,6 +810,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             restorePlaybookVersionTransportSettings =
                                                    @@ -816,6 +824,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listPlaybookVersionsTransportSettings =
                                                    @@ -829,6 +838,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             deletePlaybookVersionTransportSettings =
                                                    @@ -841,6 +851,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    index d6d8601a59a0..490af42f2dd8 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    @@ -391,6 +391,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getSecuritySettingsTransportSettings =
                                                    @@ -403,6 +404,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateSecuritySettingsTransportSettings =
                                                    @@ -430,6 +432,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             deleteSecuritySettingsTransportSettings =
                                                    @@ -442,6 +445,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                                    index 7f85983a1bc9..86b9101308f7 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionEntityTypesStub.java
                                                    @@ -404,6 +404,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getSessionEntityTypeTransportSettings =
                                                    @@ -416,6 +417,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             createSessionEntityTypeTransportSettings =
                                                    @@ -428,6 +430,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateSessionEntityTypeTransportSettings =
                                                    @@ -454,6 +457,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                                    index c7b43ae59adf..6bf2d4262fc8 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
                                                    @@ -393,6 +393,7 @@ protected HttpJsonSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             serverStreamingDetectIntentTransportSettings =
                                                    @@ -405,6 +406,7 @@ protected HttpJsonSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         HttpJsonCallSettings matchIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -416,6 +418,7 @@ protected HttpJsonSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             fulfillIntentTransportSettings =
                                                    @@ -442,6 +445,7 @@ protected HttpJsonSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                                    index 0b7d3d248ccd..941faeed6e36 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTestCasesStub.java
                                                    @@ -736,6 +736,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings batchDeleteTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -747,6 +748,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -758,6 +760,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -769,6 +772,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -791,6 +795,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings batchRunTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -802,6 +807,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             calculateCoverageTransportSettings =
                                                    @@ -814,6 +820,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("agent", String.valueOf(request.getAgent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getAgent())
                                                                     .build();
                                                         HttpJsonCallSettings importTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -825,6 +832,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -836,6 +844,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listTestCaseResultsTransportSettings =
                                                    @@ -849,6 +858,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getTestCaseResultTransportSettings =
                                                    @@ -861,6 +871,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                                    index b6dbd9829e94..3e16f07e44f2 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonToolsStub.java
                                                    @@ -561,6 +561,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings listToolsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -572,6 +573,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getToolTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -583,6 +585,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateToolTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -605,6 +608,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listToolVersionsTransportSettings =
                                                    @@ -617,6 +621,7 @@ protected HttpJsonToolsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings createToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -628,6 +633,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -639,6 +645,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings deleteToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -650,6 +657,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             restoreToolVersionTransportSettings =
                                                    @@ -662,6 +670,7 @@ protected HttpJsonToolsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    index e608f80f80b8..a49b010aacf1 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    @@ -418,6 +418,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getTransitionRouteGroupTransportSettings =
                                                    @@ -430,6 +431,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             createTransitionRouteGroupTransportSettings =
                                                    @@ -443,6 +445,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateTransitionRouteGroupTransportSettings =
                                                    @@ -470,6 +473,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                                    index 7893cb545bf0..558010e6d5a8 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonVersionsStub.java
                                                    @@ -512,6 +512,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -523,6 +524,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -534,6 +536,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -556,6 +559,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings loadVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -567,6 +571,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             compareVersionsTransportSettings =
                                                    @@ -579,6 +584,7 @@ protected HttpJsonVersionsStub(
                                                                           builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                                    index 36c97d47e676..b84e0644430d 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonWebhooksStub.java
                                                    @@ -373,6 +373,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -384,6 +385,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -395,6 +397,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -417,6 +420,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                                    index 6ae12b796e63..4c760072cf37 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java
                                                    @@ -469,6 +469,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                                    index 9616b4ac766a..7245b88d8136 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java
                                                    @@ -399,6 +399,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                                    index 2e89171b66b3..2aa8d1869327 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java
                                                    @@ -589,6 +589,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                                    index 432f74db3a31..0cdb865c6326 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java
                                                    @@ -429,6 +429,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                                    index 94258b447381..c3e500ba070c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java
                                                    @@ -434,6 +434,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                                    index 9f8b2437028c..16be9142c507 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
                                                    @@ -364,6 +364,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                                    index 7f019d61d912..c1852f76dea2 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java
                                                    @@ -607,6 +607,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                                    index 9a8b3063fef9..873f10eedf82 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java
                                                    @@ -506,6 +506,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                                    index c3aba1cb568e..1df4787d29c5 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java
                                                    @@ -443,6 +443,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java
                                                    new file mode 100644
                                                    index 000000000000..b3e191f2f8e2
                                                    --- /dev/null
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java
                                                    @@ -0,0 +1,27 @@
                                                    +/*
                                                    + * Copyright 2026 Google LLC
                                                    + *
                                                    + * Licensed under the Apache License, Version 2.0 (the "License");
                                                    + * you may not use this file except in compliance with the License.
                                                    + * You may obtain a copy of the License at
                                                    + *
                                                    + *      https://www.apache.org/licenses/LICENSE-2.0
                                                    + *
                                                    + * Unless required by applicable law or agreed to in writing, software
                                                    + * distributed under the License is distributed on an "AS IS" BASIS,
                                                    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                    + * See the License for the specific language governing permissions and
                                                    + * limitations under the License.
                                                    + */
                                                    +
                                                    +package com.google.cloud.dialogflow.cx.v3.stub;
                                                    +
                                                    +import com.google.api.core.InternalApi;
                                                    +
                                                    +@InternalApi("For internal use only")
                                                    +final class Version {
                                                    +  // {x-version-update-start:google-cloud-dialogflow-cx:current}
                                                    +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                    +  // {x-version-update-end}
                                                    +
                                                    +}
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                                    index 1cf625e1c82f..e524b29fd74f 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java
                                                    @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(com.google.cloud.dialogflow.cx.v3.stub.Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                                    index a01e141dfa80..e5ef0c028387 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java
                                                    @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                                    index 8f41c16433b7..7c34799ca524 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java
                                                    @@ -506,6 +506,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                                    index 3420084c7962..a5d35ba42a9d 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java
                                                    @@ -380,6 +380,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                                    index c2bca88d0bfc..877ac7aa22b5 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java
                                                    @@ -398,6 +398,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                                    index b4332ee8859d..e3f88f5430f0 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java
                                                    @@ -383,6 +383,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                                    index 9b0f495be7ff..41524440c44e 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
                                                    @@ -483,6 +483,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                                    index c14d3c1417ca..62d8ef88ca0c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java
                                                    @@ -684,6 +684,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                                    index 1e703a13a966..47812ebd8f21 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java
                                                    @@ -401,6 +401,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                                    index a7817be39c44..fcf2540919b9 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java
                                                    @@ -424,6 +424,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                                    index cae9afbc0a9f..9088e15c2329 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java
                                                    @@ -501,6 +501,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                                    index bd25cee5ee8f..b6359774e2a4 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java
                                                    @@ -405,6 +405,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                                    index bbd3e07a7be5..8d036479790a 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcAgentsStub.java
                                                    @@ -272,6 +272,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -282,6 +283,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -292,6 +294,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -312,6 +315,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings exportAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -322,6 +326,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings restoreAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -332,6 +337,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings validateAgentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -342,6 +348,7 @@ protected GrpcAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             getAgentValidationResultTransportSettings =
                                                    @@ -353,6 +360,7 @@ protected GrpcAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getGenerativeSettingsTransportSettings =
                                                    @@ -364,6 +372,7 @@ protected GrpcAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateGenerativeSettingsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                                    index 5934edbbd246..1e965d3b998e 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java
                                                    @@ -155,6 +155,7 @@ protected GrpcChangelogsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getChangelogTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -165,6 +166,7 @@ protected GrpcChangelogsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                                    index cb15820a749f..a0facd9638e3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcConversationHistoryStub.java
                                                    @@ -176,6 +176,7 @@ protected GrpcConversationHistoryStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getConversationTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -186,6 +187,7 @@ protected GrpcConversationHistoryStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings deleteConversationTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -196,6 +198,7 @@ protected GrpcConversationHistoryStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                                    index 3119710f5a50..42b5c6a9c529 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java
                                                    @@ -157,6 +157,7 @@ protected GrpcDeploymentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getDeploymentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -167,6 +168,7 @@ protected GrpcDeploymentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                                    index dd43db4fdcc8..154976a3388e 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
                                                    @@ -234,6 +234,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createEntityTypeTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -244,6 +245,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateEntityTypeTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -265,6 +267,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listEntityTypesTransportSettings =
                                                    @@ -276,6 +279,7 @@ protected GrpcEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings exportEntityTypesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -286,6 +290,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings importEntityTypesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -296,6 +301,7 @@ protected GrpcEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                                    index 7613e4a46a27..c8c6f04af08a 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java
                                                    @@ -287,6 +287,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -297,6 +298,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -307,6 +309,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateEnvironmentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -328,6 +331,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             lookupEnvironmentHistoryTransportSettings =
                                                    @@ -340,6 +344,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings runContinuousTestTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -350,6 +355,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listContinuousTestResultsTransportSettings =
                                                    @@ -362,6 +368,7 @@ protected GrpcEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deployFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -372,6 +379,7 @@ protected GrpcEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                                    index 5f47e645e1be..dde6f5868a96 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExamplesStub.java
                                                    @@ -187,6 +187,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deleteExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -197,6 +198,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listExamplesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -207,6 +209,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -217,6 +220,7 @@ protected GrpcExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateExampleTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                                    index 891acbccf4db..31d125eecf5e 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcExperimentsStub.java
                                                    @@ -223,6 +223,7 @@ protected GrpcExperimentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -233,6 +234,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -243,6 +245,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -263,6 +266,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings startExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -273,6 +277,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings stopExperimentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -283,6 +288,7 @@ protected GrpcExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                                    index 0d7db7578778..3c30a78c1064 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcFlowsStub.java
                                                    @@ -253,6 +253,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deleteFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -263,6 +264,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listFlowsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -273,6 +275,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -283,6 +286,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -303,6 +307,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings validateFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -313,6 +318,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             getFlowValidationResultTransportSettings =
                                                    @@ -324,6 +330,7 @@ protected GrpcFlowsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings importFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -334,6 +341,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportFlowTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -344,6 +352,7 @@ protected GrpcFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                                    index 798973e099f9..df567a84e078 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcGeneratorsStub.java
                                                    @@ -195,6 +195,7 @@ protected GrpcGeneratorsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -205,6 +206,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -215,6 +217,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateGeneratorTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -235,6 +238,7 @@ protected GrpcGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                                    index b3349595b99e..6e2af9a977ac 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcIntentsStub.java
                                                    @@ -221,6 +221,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -231,6 +232,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -241,6 +243,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -261,6 +264,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings importIntentsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -271,6 +275,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportIntentsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -281,6 +286,7 @@ protected GrpcIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                                    index 276f46fae213..a358da914496 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPagesStub.java
                                                    @@ -181,6 +181,7 @@ protected GrpcPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getPageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -191,6 +192,7 @@ protected GrpcPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createPageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -201,6 +203,7 @@ protected GrpcPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updatePageTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -221,6 +224,7 @@ protected GrpcPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                                    index 8ec617a0902c..f7492434ef6d 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcPlaybooksStub.java
                                                    @@ -310,6 +310,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings deletePlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -320,6 +321,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listPlaybooksTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -330,6 +332,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -340,6 +343,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings exportPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -350,6 +354,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings importPlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -360,6 +365,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updatePlaybookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -381,6 +387,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getPlaybookVersionTransportSettings =
                                                    @@ -392,6 +399,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             restorePlaybookVersionTransportSettings =
                                                    @@ -404,6 +412,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             listPlaybookVersionsTransportSettings =
                                                    @@ -415,6 +424,7 @@ protected GrpcPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deletePlaybookVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -425,6 +435,7 @@ protected GrpcPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                                    index 8a5b54c0f561..565e39e67f25 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSecuritySettingsServiceStub.java
                                                    @@ -208,6 +208,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getSecuritySettingsTransportSettings =
                                                    @@ -219,6 +220,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateSecuritySettingsTransportSettings =
                                                    @@ -243,6 +245,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings deleteSecuritySettingsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -253,6 +256,7 @@ protected GrpcSecuritySettingsServiceStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                                    index af8af1fab706..c79499703c83 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionEntityTypesStub.java
                                                    @@ -211,6 +211,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getSessionEntityTypeTransportSettings =
                                                    @@ -222,6 +223,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             createSessionEntityTypeTransportSettings =
                                                    @@ -233,6 +235,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateSessionEntityTypeTransportSettings =
                                                    @@ -257,6 +260,7 @@ protected GrpcSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                                    index d7a13a463b6e..2a9e3939a81b 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
                                                    @@ -211,6 +211,7 @@ protected GrpcSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         GrpcCallSettings
                                                             serverStreamingDetectIntentTransportSettings =
                                                    @@ -222,12 +223,14 @@ protected GrpcSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings
                                                             streamingDetectIntentTransportSettings =
                                                                 GrpcCallSettings
                                                                     .newBuilder()
                                                                     .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings matchIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -238,6 +241,7 @@ protected GrpcSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         GrpcCallSettings fulfillIntentTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -261,6 +265,7 @@ protected GrpcSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                                    index 12062e6ee6e9..6a0a388c2bcb 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java
                                                    @@ -313,6 +313,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings batchDeleteTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -323,6 +324,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -333,6 +335,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -343,6 +346,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateTestCaseTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -363,6 +367,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings batchRunTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -373,6 +378,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings
                                                             calculateCoverageTransportSettings =
                                                    @@ -384,6 +390,7 @@ protected GrpcTestCasesStub(
                                                                           builder.add("agent", String.valueOf(request.getAgent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getAgent())
                                                                     .build();
                                                         GrpcCallSettings importTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -394,6 +401,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportTestCasesTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -404,6 +412,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listTestCaseResultsTransportSettings =
                                                    @@ -415,6 +424,7 @@ protected GrpcTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings getTestCaseResultTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -425,6 +435,7 @@ protected GrpcTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                                    index 9d588ca3f114..2bf3a3dedf88 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcToolsStub.java
                                                    @@ -273,6 +273,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings listToolsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -283,6 +284,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings exportToolsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -293,6 +295,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getToolTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -303,6 +306,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings updateToolTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -323,6 +327,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             listToolVersionsTransportSettings =
                                                    @@ -334,6 +339,7 @@ protected GrpcToolsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings createToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -344,6 +350,7 @@ protected GrpcToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -354,6 +361,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings deleteToolVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -364,6 +372,7 @@ protected GrpcToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             restoreToolVersionTransportSettings =
                                                    @@ -375,6 +384,7 @@ protected GrpcToolsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                                    index f9fb7cb9415e..41a19e973750 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTransitionRouteGroupsStub.java
                                                    @@ -215,6 +215,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             getTransitionRouteGroupTransportSettings =
                                                    @@ -226,6 +227,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings
                                                             createTransitionRouteGroupTransportSettings =
                                                    @@ -237,6 +239,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         GrpcCallSettings
                                                             updateTransitionRouteGroupTransportSettings =
                                                    @@ -261,6 +264,7 @@ protected GrpcTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                                    index 133576384ea9..18a33a0132e1 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java
                                                    @@ -221,6 +221,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -231,6 +232,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -241,6 +243,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -261,6 +264,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings loadVersionTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -271,6 +275,7 @@ protected GrpcVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings
                                                             compareVersionsTransportSettings =
                                                    @@ -282,6 +287,7 @@ protected GrpcVersionsStub(
                                                                           builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                                     .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                                    index b4c5115ed1d5..90e4961a24a9 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcWebhooksStub.java
                                                    @@ -187,6 +187,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings getWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -197,6 +198,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings createWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -207,6 +209,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         GrpcCallSettings updateWebhookTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    @@ -227,6 +230,7 @@ protected GrpcWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         GrpcCallSettings listLocationsTransportSettings =
                                                             GrpcCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                                    index 6a3ae64555d6..c490bb013f05 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonAgentsStub.java
                                                    @@ -667,6 +667,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -678,6 +679,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -689,6 +691,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -711,6 +714,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings exportAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -722,6 +726,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings restoreAgentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -733,6 +738,7 @@ protected HttpJsonAgentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             validateAgentTransportSettings =
                                                    @@ -745,6 +751,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getAgentValidationResultTransportSettings =
                                                    @@ -758,6 +765,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getGenerativeSettingsTransportSettings =
                                                    @@ -770,6 +778,7 @@ protected HttpJsonAgentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateGenerativeSettingsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                                    index faa9139ba2c8..85adfaa41fe9 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonChangelogsStub.java
                                                    @@ -261,6 +261,7 @@ protected HttpJsonChangelogsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getChangelogTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -272,6 +273,7 @@ protected HttpJsonChangelogsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                                    index 3482ea8a08ba..461fac86cd19 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonConversationHistoryStub.java
                                                    @@ -304,6 +304,7 @@ protected HttpJsonConversationHistoryStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getConversationTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -315,6 +316,7 @@ protected HttpJsonConversationHistoryStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings deleteConversationTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -326,6 +328,7 @@ protected HttpJsonConversationHistoryStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                                    index aef7aee3008c..4b69fd3b7510 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonDeploymentsStub.java
                                                    @@ -261,6 +261,7 @@ protected HttpJsonDeploymentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getDeploymentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -272,6 +273,7 @@ protected HttpJsonDeploymentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                                    index d3adf773580d..417adeaab50f 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEntityTypesStub.java
                                                    @@ -528,6 +528,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createEntityTypeTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -539,6 +540,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -562,6 +564,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listEntityTypesTransportSettings =
                                                    @@ -574,6 +577,7 @@ protected HttpJsonEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings exportEntityTypesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -585,6 +589,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings importEntityTypesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -596,6 +601,7 @@ protected HttpJsonEntityTypesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                                    index fe6492209ac4..c2d5018f3080 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonEnvironmentsStub.java
                                                    @@ -634,6 +634,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -645,6 +646,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -656,6 +658,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -679,6 +682,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             lookupEnvironmentHistoryTransportSettings =
                                                    @@ -692,6 +696,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings runContinuousTestTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -703,6 +708,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listContinuousTestResultsTransportSettings =
                                                    @@ -716,6 +722,7 @@ protected HttpJsonEnvironmentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings deployFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -727,6 +734,7 @@ protected HttpJsonEnvironmentsStub(
                                                                       builder.add("environment", String.valueOf(request.getEnvironment()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getEnvironment())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                                    index aa737c530aad..a28eb27184bb 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExamplesStub.java
                                                    @@ -376,6 +376,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deleteExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -387,6 +388,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings listExamplesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -398,6 +400,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -409,6 +412,7 @@ protected HttpJsonExamplesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateExampleTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                                    index 08c451610fc9..c4ea6c275438 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonExperimentsStub.java
                                                    @@ -456,6 +456,7 @@ protected HttpJsonExperimentsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -467,6 +468,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -478,6 +480,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -500,6 +503,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings startExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -511,6 +515,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings stopExperimentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -522,6 +527,7 @@ protected HttpJsonExperimentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                                    index 80eea71d4fef..25944cdf73f5 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonFlowsStub.java
                                                    @@ -631,6 +631,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deleteFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -642,6 +643,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings listFlowsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -653,6 +655,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -664,6 +667,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -686,6 +690,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings validateFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -697,6 +702,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             getFlowValidationResultTransportSettings =
                                                    @@ -709,6 +715,7 @@ protected HttpJsonFlowsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings importFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -720,6 +727,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportFlowTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -731,6 +739,7 @@ protected HttpJsonFlowsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                                    index 06bce793ef21..ad08e197a571 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonGeneratorsStub.java
                                                    @@ -386,6 +386,7 @@ protected HttpJsonGeneratorsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -397,6 +398,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -408,6 +410,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateGeneratorTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -430,6 +433,7 @@ protected HttpJsonGeneratorsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                                    index 9eb2864803d9..c299fe47d134 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonIntentsStub.java
                                                    @@ -523,6 +523,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -534,6 +535,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -545,6 +547,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -567,6 +570,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings importIntentsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -578,6 +582,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportIntentsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -589,6 +594,7 @@ protected HttpJsonIntentsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                                    index d2122305acf8..76384a2705c3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPagesStub.java
                                                    @@ -371,6 +371,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getPageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -382,6 +383,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createPageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -393,6 +395,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updatePageTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -415,6 +418,7 @@ protected HttpJsonPagesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                                    index 31cb6af2ec97..fab72655db75 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonPlaybooksStub.java
                                                    @@ -719,6 +719,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings deletePlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -730,6 +731,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listPlaybooksTransportSettings =
                                                    @@ -742,6 +744,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings getPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -753,6 +756,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings exportPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -764,6 +768,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings importPlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -775,6 +780,7 @@ protected HttpJsonPlaybooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updatePlaybookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -798,6 +804,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getPlaybookVersionTransportSettings =
                                                    @@ -810,6 +817,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             restorePlaybookVersionTransportSettings =
                                                    @@ -823,6 +831,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listPlaybookVersionsTransportSettings =
                                                    @@ -836,6 +845,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             deletePlaybookVersionTransportSettings =
                                                    @@ -848,6 +858,7 @@ protected HttpJsonPlaybooksStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    index e69f9e8aade9..092ba0c02080 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSecuritySettingsServiceStub.java
                                                    @@ -393,6 +393,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getSecuritySettingsTransportSettings =
                                                    @@ -405,6 +406,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateSecuritySettingsTransportSettings =
                                                    @@ -432,6 +434,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             deleteSecuritySettingsTransportSettings =
                                                    @@ -444,6 +447,7 @@ protected HttpJsonSecuritySettingsServiceStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                    index d3aa6791f88a..2a960492449b 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                    @@ -406,6 +406,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getSessionEntityTypeTransportSettings =
                                                    @@ -418,6 +419,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             createSessionEntityTypeTransportSettings =
                                                    @@ -430,6 +432,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateSessionEntityTypeTransportSettings =
                                                    @@ -456,6 +459,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                                    index c4f648015bce..64555454146c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonSessionsStub.java
                                                    @@ -395,6 +395,7 @@ protected HttpJsonSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             serverStreamingDetectIntentTransportSettings =
                                                    @@ -407,6 +408,7 @@ protected HttpJsonSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         HttpJsonCallSettings matchIntentTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -418,6 +420,7 @@ protected HttpJsonSessionsStub(
                                                                       builder.add("session", String.valueOf(request.getSession()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getSession())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             fulfillIntentTransportSettings =
                                                    @@ -444,6 +447,7 @@ protected HttpJsonSessionsStub(
                                                                           builder.add("session", String.valueOf(request.getSession()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getSession())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                                    index d685689f056c..7a7e27a8a32c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTestCasesStub.java
                                                    @@ -740,6 +740,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings batchDeleteTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -751,6 +752,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -762,6 +764,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -773,6 +776,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateTestCaseTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -795,6 +799,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings batchRunTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -806,6 +811,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             calculateCoverageTransportSettings =
                                                    @@ -818,6 +824,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("agent", String.valueOf(request.getAgent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getAgent())
                                                                     .build();
                                                         HttpJsonCallSettings importTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -829,6 +836,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportTestCasesTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -840,6 +848,7 @@ protected HttpJsonTestCasesStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listTestCaseResultsTransportSettings =
                                                    @@ -853,6 +862,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getTestCaseResultTransportSettings =
                                                    @@ -865,6 +875,7 @@ protected HttpJsonTestCasesStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                                    index 2b30f350607e..839d6f6830b5 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonToolsStub.java
                                                    @@ -655,6 +655,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings listToolsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -666,6 +667,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings exportToolsTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -677,6 +679,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getToolTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -688,6 +691,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings updateToolTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -710,6 +714,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listToolVersionsTransportSettings =
                                                    @@ -722,6 +727,7 @@ protected HttpJsonToolsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings createToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -733,6 +739,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -744,6 +751,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings deleteToolVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -755,6 +763,7 @@ protected HttpJsonToolsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             restoreToolVersionTransportSettings =
                                                    @@ -767,6 +776,7 @@ protected HttpJsonToolsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    index c72e1229d299..c7a9c2c62ad3 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonTransitionRouteGroupsStub.java
                                                    @@ -420,6 +420,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             getTransitionRouteGroupTransportSettings =
                                                    @@ -432,6 +433,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             createTransitionRouteGroupTransportSettings =
                                                    @@ -445,6 +447,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("parent", String.valueOf(request.getParent()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getParent())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             updateTransitionRouteGroupTransportSettings =
                                                    @@ -472,6 +475,7 @@ protected HttpJsonTransitionRouteGroupsStub(
                                                                           builder.add("name", String.valueOf(request.getName()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getName())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                                    index 3ceaa62a9fc0..1661bbc81bea 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonVersionsStub.java
                                                    @@ -515,6 +515,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -526,6 +527,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -537,6 +539,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -559,6 +562,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings loadVersionTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -570,6 +574,7 @@ protected HttpJsonVersionsStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             compareVersionsTransportSettings =
                                                    @@ -582,6 +587,7 @@ protected HttpJsonVersionsStub(
                                                                           builder.add("base_version", String.valueOf(request.getBaseVersion()));
                                                                           return builder.build();
                                                                         })
                                                    +                .setResourceNameExtractor(request -> request.getBaseVersion())
                                                                     .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                                    index 189d9a1adc72..013f2352238a 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/HttpJsonWebhooksStub.java
                                                    @@ -375,6 +375,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings getWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -386,6 +387,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings createWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -397,6 +399,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getParent())
                                                                 .build();
                                                         HttpJsonCallSettings updateWebhookTransportSettings =
                                                             HttpJsonCallSettings.newBuilder()
                                                    @@ -419,6 +422,7 @@ protected HttpJsonWebhooksStub(
                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                       return builder.build();
                                                                     })
                                                    +            .setResourceNameExtractor(request -> request.getName())
                                                                 .build();
                                                         HttpJsonCallSettings
                                                             listLocationsTransportSettings =
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                                    index 8d19802fb11c..79a57c24a07f 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java
                                                    @@ -470,6 +470,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                                    index 837a181fd340..10cac0ae8b62 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java
                                                    @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                                    index 561ef1e22ef1..fe21f7242ef0 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java
                                                    @@ -590,6 +590,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                                    index dfed5e74094d..f51c731b99b9 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java
                                                    @@ -430,6 +430,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                                    index ec23078559ff..47e442e5859e 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java
                                                    @@ -435,6 +435,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                                    index 6e8f52aaab12..e65986105fec 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java
                                                    @@ -365,6 +365,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                                    index d99fdfdd8137..6e5eea79201c 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java
                                                    @@ -608,6 +608,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                                    index 6b8d5d7f4401..8dbcca5a3b5a 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java
                                                    @@ -556,6 +556,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                                    index f7defbea4f75..70e2f50eedfd 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java
                                                    @@ -444,6 +444,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java
                                                    new file mode 100644
                                                    index 000000000000..7d5b8929fe64
                                                    --- /dev/null
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java
                                                    @@ -0,0 +1,27 @@
                                                    +/*
                                                    + * Copyright 2026 Google LLC
                                                    + *
                                                    + * Licensed under the Apache License, Version 2.0 (the "License");
                                                    + * you may not use this file except in compliance with the License.
                                                    + * You may obtain a copy of the License at
                                                    + *
                                                    + *      https://www.apache.org/licenses/LICENSE-2.0
                                                    + *
                                                    + * Unless required by applicable law or agreed to in writing, software
                                                    + * distributed under the License is distributed on an "AS IS" BASIS,
                                                    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                    + * See the License for the specific language governing permissions and
                                                    + * limitations under the License.
                                                    + */
                                                    +
                                                    +package com.google.cloud.dialogflow.cx.v3beta1.stub;
                                                    +
                                                    +import com.google.api.core.InternalApi;
                                                    +
                                                    +@InternalApi("For internal use only")
                                                    +final class Version {
                                                    +  // {x-version-update-start:google-cloud-dialogflow-cx:current}
                                                    +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                    +  // {x-version-update-end}
                                                    +
                                                    +}
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                                    index b3492b9552c2..948bb4c013a1 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java
                                                    @@ -469,6 +469,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(com.google.cloud.dialogflow.cx.v3beta1.stub.Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                                    index 9152c1d0987e..1d3362703cbb 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java
                                                    @@ -401,6 +401,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                         return LibraryMetadata.newBuilder()
                                                             .setArtifactName("com.google.cloud:google-cloud-dialogflow-cx")
                                                             .setRepository("googleapis/google-cloud-java")
                                                    +        .setVersion(Version.VERSION)
                                                             .build();
                                                       }
                                                     
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                                    index c91381cd65c6..338e69ed24ae 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json
                                                    @@ -1,4 +1,58 @@
                                                     [
                                                    +  {
                                                    +    "name": "com.google.api.BatchingConfigProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingConfigProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingDescriptorProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingSettingsProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.api.ClientLibraryDestination",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -116,6 +170,15 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.api.GoSettings",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -2987,6 +3050,24 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.cloud.dialogflow.cx.v3.FlowTransition",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -5741,6 +5822,24 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.cloud.dialogflow.cx.v3.PlaybookTransition",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -6641,6 +6740,24 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -7361,6 +7478,24 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.TraceBlock",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.cloud.dialogflow.cx.v3.TraceBlock$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.cloud.dialogflow.cx.v3.TrainFlowRequest",
                                                         "queryAllDeclaredConstructors": true,
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                                    index 32f820f2a7e1..aea452d2a260 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json
                                                    @@ -1,4 +1,58 @@
                                                     [
                                                    +  {
                                                    +    "name": "com.google.api.BatchingConfigProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingConfigProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingDescriptorProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingDescriptorProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingSettingsProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                    +  {
                                                    +    "name": "com.google.api.BatchingSettingsProto$Builder",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.api.ClientLibraryDestination",
                                                         "queryAllDeclaredConstructors": true,
                                                    @@ -116,6 +170,15 @@
                                                         "allDeclaredClasses": true,
                                                         "allPublicClasses": true
                                                       },
                                                    +  {
                                                    +    "name": "com.google.api.FlowControlLimitExceededBehaviorProto",
                                                    +    "queryAllDeclaredConstructors": true,
                                                    +    "queryAllPublicConstructors": true,
                                                    +    "queryAllDeclaredMethods": true,
                                                    +    "allPublicMethods": true,
                                                    +    "allDeclaredClasses": true,
                                                    +    "allPublicClasses": true
                                                    +  },
                                                       {
                                                         "name": "com.google.api.GoSettings",
                                                         "queryAllDeclaredConstructors": true,
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                                    index 59a67700cc4a..26a349872cec 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientHttpJsonTest.java
                                                    @@ -198,6 +198,7 @@ public void getIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockService.addResponse(expectedResponse);
                                                     
                                                    @@ -249,6 +250,7 @@ public void getIntentTest2() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockService.addResponse(expectedResponse);
                                                     
                                                    @@ -302,6 +304,7 @@ public void createIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockService.addResponse(expectedResponse);
                                                     
                                                    @@ -355,6 +358,7 @@ public void createIntentTest2() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockService.addResponse(expectedResponse);
                                                     
                                                    @@ -408,6 +412,7 @@ public void updateIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockService.addResponse(expectedResponse);
                                                     
                                                    @@ -421,6 +426,7 @@ public void updateIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         FieldMask updateMask = FieldMask.newBuilder().build();
                                                     
                                                    @@ -460,6 +466,7 @@ public void updateIntentExceptionTest() throws Exception {
                                                                   .setIsFallback(true)
                                                                   .putAllLabels(new HashMap())
                                                                   .setDescription("description-1724546052")
                                                    +              .setDtmfPattern("dtmfPattern-1819689689")
                                                                   .build();
                                                           FieldMask updateMask = FieldMask.newBuilder().build();
                                                           client.updateIntent(intent, updateMask);
                                                    diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                                    index 791d5549a75f..99d5cdcd2036 100644
                                                    --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                                    +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java
                                                    @@ -194,6 +194,7 @@ public void getIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockIntents.addResponse(expectedResponse);
                                                     
                                                    @@ -239,6 +240,7 @@ public void getIntentTest2() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockIntents.addResponse(expectedResponse);
                                                     
                                                    @@ -284,6 +286,7 @@ public void createIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockIntents.addResponse(expectedResponse);
                                                     
                                                    @@ -332,6 +335,7 @@ public void createIntentTest2() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockIntents.addResponse(expectedResponse);
                                                     
                                                    @@ -380,6 +384,7 @@ public void updateIntentTest() throws Exception {
                                                                 .setIsFallback(true)
                                                                 .putAllLabels(new HashMap())
                                                                 .setDescription("description-1724546052")
                                                    +            .setDtmfPattern("dtmfPattern-1819689689")
                                                                 .build();
                                                         mockIntents.addResponse(expectedResponse);
                                                     
                                                    diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java
                                                    new file mode 100644
                                                    index 000000000000..897fc34de509
                                                    --- /dev/null
                                                    +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadata.java
                                                    @@ -0,0 +1,813 @@
                                                    +/*
                                                    + * Copyright 2026 Google LLC
                                                    + *
                                                    + * Licensed under the Apache License, Version 2.0 (the "License");
                                                    + * you may not use this file except in compliance with the License.
                                                    + * You may obtain a copy of the License at
                                                    + *
                                                    + *     https://www.apache.org/licenses/LICENSE-2.0
                                                    + *
                                                    + * Unless required by applicable law or agreed to in writing, software
                                                    + * distributed under the License is distributed on an "AS IS" BASIS,
                                                    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                    + * See the License for the specific language governing permissions and
                                                    + * limitations under the License.
                                                    + */
                                                    +// Generated by the protocol buffer compiler.  DO NOT EDIT!
                                                    +// NO CHECKED-IN PROTOBUF GENCODE
                                                    +// source: google/cloud/dialogflow/cx/v3/trace.proto
                                                    +// Protobuf Java Version: 4.33.2
                                                    +
                                                    +package com.google.cloud.dialogflow.cx.v3;
                                                    +
                                                    +/**
                                                    + *
                                                    + *
                                                    + * 
                                                    + * Metadata of the flow trace.
                                                    + * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowTraceMetadata} + */ +@com.google.protobuf.Generated +public final class FlowTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + FlowTraceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FlowTraceMetadata"); + } + + // Use FlowTraceMetadata.newBuilder() to construct. + private FlowTraceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FlowTraceMetadata() { + flow_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder.class); + } + + public static final int FLOW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; + + /** + * + * + *
                                                    +   * Required. The unique identifier of the flow.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +   * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + @java.lang.Override + public java.lang.String getFlow() { + java.lang.Object ref = flow_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flow_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Required. The unique identifier of the flow.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +   * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowBytes() { + java.lang.Object ref = flow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +   * Output only. The display name of the flow.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Output only. The display name of the flow.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flow_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, flow_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flow_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, flow_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) obj; + + if (!getFlow().equals(other.getFlow())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FLOW_FIELD_NUMBER; + hash = (53 * hash) + getFlow().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + flow_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flow_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance()) + return this; + if (!other.getFlow().isEmpty()) { + flow_ = other.flow_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + flow_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object flow_ = ""; + + /** + * + * + *
                                                    +     * Required. The unique identifier of the flow.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +     * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + public java.lang.String getFlow() { + java.lang.Object ref = flow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the flow.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +     * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + public com.google.protobuf.ByteString getFlowBytes() { + java.lang.Object ref = flow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the flow.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +     * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The flow to set. + * @return This builder for chaining. + */ + public Builder setFlow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flow_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the flow.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +     * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFlow() { + flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the flow.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +     * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for flow to set. + * @return This builder for chaining. + */ + public Builder setFlowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flow_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +     * Output only. The display name of the flow.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the flow.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the flow.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the flow.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the flow.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowTraceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..5a81078aa336 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowTraceMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface FlowTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.FlowTraceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                    +   * Required. The unique identifier of the flow.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +   * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flow. + */ + java.lang.String getFlow(); + + /** + * + * + *
                                                    +   * Required. The unique identifier of the flow.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
                                                    +   * 
                                                    + * + * + * string flow = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flow. + */ + com.google.protobuf.ByteString getFlowBytes(); + + /** + * + * + *
                                                    +   * Output only. The display name of the flow.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                                    +   * Output only. The display name of the flow.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java index 2ec37ffaf33c..6ac04009a299 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java @@ -61,6 +61,7 @@ private Intent() { trainingPhrases_ = java.util.Collections.emptyList(); parameters_ = java.util.Collections.emptyList(); description_ = ""; + dtmfPattern_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -4546,6 +4547,59 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int DTMF_PATTERN_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object dtmfPattern_ = ""; + + /** + * + * + *
                                                    +   * Optional. Matching DTMF pattern for the intent.
                                                    +   * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + @java.lang.Override + public java.lang.String getDtmfPattern() { + java.lang.Object ref = dtmfPattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dtmfPattern_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Optional. Matching DTMF pattern for the intent.
                                                    +   * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDtmfPatternBytes() { + java.lang.Object ref = dtmfPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dtmfPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4583,6 +4637,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dtmfPattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, dtmfPattern_); + } getUnknownFields().writeTo(output); } @@ -4623,6 +4680,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, description_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dtmfPattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, dtmfPattern_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4646,6 +4706,7 @@ public boolean equals(final java.lang.Object obj) { if (getIsFallback() != other.getIsFallback()) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (!getDtmfPattern().equals(other.getDtmfPattern())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4679,6 +4740,8 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DTMF_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getDtmfPattern().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4865,6 +4928,7 @@ public Builder clear() { isFallback_ = false; internalGetMutableLabels().clear(); description_ = ""; + dtmfPattern_ = ""; return this; } @@ -4942,6 +5006,9 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dtmfPattern_ = dtmfPattern_; + } } @java.lang.Override @@ -5033,6 +5100,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) { bitField0_ |= 0x00000080; onChanged(); } + if (!other.getDtmfPattern().isEmpty()) { + dtmfPattern_ = other.dtmfPattern_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5129,6 +5201,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 130: + { + dtmfPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6714,6 +6792,117 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object dtmfPattern_ = ""; + + /** + * + * + *
                                                    +     * Optional. Matching DTMF pattern for the intent.
                                                    +     * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + public java.lang.String getDtmfPattern() { + java.lang.Object ref = dtmfPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dtmfPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Optional. Matching DTMF pattern for the intent.
                                                    +     * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + public com.google.protobuf.ByteString getDtmfPatternBytes() { + java.lang.Object ref = dtmfPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dtmfPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Optional. Matching DTMF pattern for the intent.
                                                    +     * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dtmfPattern to set. + * @return This builder for chaining. + */ + public Builder setDtmfPattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dtmfPattern_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. Matching DTMF pattern for the intent.
                                                    +     * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDtmfPattern() { + dtmfPattern_ = getDefaultInstance().getDtmfPattern(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. Matching DTMF pattern for the intent.
                                                    +     * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dtmfPattern to set. + * @return This builder for chaining. + */ + public Builder setDtmfPatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dtmfPattern_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java index 7a081ee21a21..cc03b155a854 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java @@ -398,4 +398,30 @@ java.lang.String getLabelsOrDefault( * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                    +   * Optional. Matching DTMF pattern for the intent.
                                                    +   * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmfPattern. + */ + java.lang.String getDtmfPattern(); + + /** + * + * + *
                                                    +   * Optional. Matching DTMF pattern for the intent.
                                                    +   * 
                                                    + * + * string dtmf_pattern = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmfPattern. + */ + com.google.protobuf.ByteString getDtmfPatternBytes(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java index e8b9ebf591bb..0e63c9efb17a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java @@ -129,7 +129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032\031google/api/resource.proto\032*google/c" + "loud/dialogflow/cx/v3/inline.proto\032#goog" + "le/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\241\006\n" + + " google/protobuf/field_mask.proto\"\274\006\n" + "\006Intent\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022N\n" @@ -141,11 +141,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013is_fallback\030\006 \001(\010\022A\n" + "\006labels\030\007 \003(\01321.google." + "cloud.dialogflow.cx.v3.Intent.LabelsEntry\022\023\n" - + "\013description\030\010 \001(\t\032\267\001\n" + + "\013description\030\010 \001(\t\022\031\n" + + "\014dtmf_pattern\030\020 \001(\tB\003\340A\001\032\267\001\n" + "\016TrainingPhrase\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022M\n" - + "\005parts\030\002 \003(\01329.goog" - + "le.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\003\340A\002\022\024\n" + + "\005parts\030\002 \003(\01329.google.cloud.dial" + + "ogflow.cx.v3.Intent.TrainingPhrase.PartB\003\340A\002\022\024\n" + "\014repeat_count\030\003 \001(\005\032/\n" + "\004Part\022\021\n" + "\004text\030\001 \001(\tB\003\340A\002\022\024\n" @@ -159,8 +160,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:n\352Ak\n" - + " dialogflow.googleapis.com/Intent\022Gprojects/{pro" - + "ject}/locations/{location}/agents/{agent}/intents/{intent}\"\314\001\n" + + " dialogflow.googleapis.com/Intent\022Gprojects/{project}/locatio" + + "ns/{location}/agents/{agent}/intents/{intent}\"\314\001\n" + "\022ListIntentsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022\025\n\r" @@ -179,12 +180,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022:\n" + "\006intent\030\002" - + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n\r" + + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n" + + "\r" + "language_code\030\003 \001(\t\"\231\001\n" + "\023UpdateIntentRequest\022:\n" + "\006intent\030\001" - + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n" - + "\r" + + " \001(\0132%.google.cloud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n\r" + "language_code\030\002 \001(\t\022/\n" + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"M\n" + "\023DeleteIntentRequest\0226\n" @@ -194,10 +195,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022\025\n" + "\013intents_uri\030\002 \001(\tH\000\022F\n" - + "\017intents_content\030\003 \001(\0132" - + "+.google.cloud.dialogflow.cx.v3.InlineSourceH\000\022U\n" - + "\014merge_option\030\004 \001(\0162?.google.cl" - + "oud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption\"~\n" + + "\017intents_content\030\003" + + " \001(\0132+.google.cloud.dialogflow.cx.v3.InlineSourceH\000\022U\n" + + "\014merge_option\030\004 \001(\0162?.google.cloud.dialogflo" + + "w.cx.v3.ImportIntentsRequest.MergeOption\"~\n" + "\013MergeOption\022\034\n" + "\030MERGE_OPTION_UNSPECIFIED\020\000\022\016\n" + "\006REJECT\020\001\032\002\010\001\022\013\n" @@ -210,8 +211,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ImportIntentsResponse\0226\n" + "\007intents\030\001 \003(\tB%\372A\"\n" + " dialogflow.googleapis.com/Intent\022h\n" - + "\025conflicting_resources\030\002 \001(\0132I.google.cloud" - + ".dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources\032R\n" + + "\025conflicting_resources\030\002 \001(\0132I.google.cloud.dialogflow.c" + + "x.v3.ImportIntentsResponse.ConflictingResources\032R\n" + "\024ConflictingResources\022\034\n" + "\024intent_display_names\030\001 \003(\t\022\034\n" + "\024entity_display_names\030\002 \003(\t\"\027\n" @@ -222,8 +223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007intents\030\002 \003(\tB\003\340A\002\022\032\n" + "\013intents_uri\030\003 \001(\tB\003\340A\001H\000\022%\n" + "\026intents_content_inline\030\004 \001(\010B\003\340A\001H\000\022X\n" - + "\013data_format\030\005 \001" - + "(\0162>.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormatB\003\340A\001\"F\n\n" + + "\013data_format\030\005 \001(\0162>.google.c" + + "loud.dialogflow.cx.v3.ExportIntentsRequest.DataFormatB\003\340A\001\"F\n\n" + "DataFormat\022\033\n" + "\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n" + "\004BLOB\020\001\022\010\n" @@ -232,8 +233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013destination\"\206\001\n" + "\025ExportIntentsResponse\022\025\n" + "\013intents_uri\030\001 \001(\tH\000\022K\n" - + "\017intents_content\030\002 \001(\01320.googl" - + "e.cloud.dialogflow.cx.v3.InlineDestinationH\000B\t\n" + + "\017intents_content\030\002" + + " \001(\01320.google.cloud.dialogflow.cx.v3.InlineDestinationH\000B\t\n" + "\007intents\"\027\n" + "\025ExportIntentsMetadata*X\n\n" + "IntentView\022\033\n" @@ -241,40 +242,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023INTENT_VIEW_PARTIAL\020\001\022\024\n" + "\020INTENT_VIEW_FULL\020\0022\334\013\n" + "\007Intents\022\273\001\n" - + "\013ListIntents\0221.google.cloud.dialogflow.cx.v3.ListInten" - + "tsRequest\0322.google.cloud.dialogflow.cx.v" - + "3.ListIntentsResponse\"E\332A\006parent\202\323\344\223\0026\0224" - + "/v3/{parent=projects/*/locations/*/agents/*}/intents\022\250\001\n" - + "\tGetIntent\022/.google.cloud.dialogflow.cx.v3.GetIntentRequest\032%.go" - + "ogle.cloud.dialogflow.cx.v3.Intent\"C\332A\004n" - + "ame\202\323\344\223\0026\0224/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\277\001\n" - + "\014CreateIntent\0222.google.cloud.dialogflow.cx.v3.CreateI" - + "ntentRequest\032%.google.cloud.dialogflow.cx.v3.Intent\"T\332A\r" - + "parent,intent\202\323\344\223\002>\"4/v3" - + "/{parent=projects/*/locations/*/agents/*}/intents:\006intent\022\313\001\n" - + "\014UpdateIntent\0222.google.cloud.dialogflow.cx.v3.UpdateIntentR" - + "equest\032%.google.cloud.dialogflow.cx.v3.I" - + "ntent\"`\332A\022intent,update_mask\202\323\344\223\002E2;/v3/" - + "{intent.name=projects/*/locations/*/agents/*/intents/*}:\006intent\022\237\001\n" - + "\014DeleteIntent\0222.google.cloud.dialogflow.cx.v3.DeleteI" - + "ntentRequest\032\026.google.protobuf.Empty\"C\332A" - + "\004name\202\323\344\223\0026*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\334\001\n\r" - + "ImportIntents\0223.google.cloud.dialogflow.cx.v3.Impo" - + "rtIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" - + "\025ImportIntentsResponse\022\025Imp" - + "ortIntentsMetadata\202\323\344\223\002@\";/v3/{parent=pr" - + "ojects/*/locations/*/agents/*}/intents:import:\001*\022\334\001\n\r" - + "ExportIntents\0223.google.clou" - + "d.dialogflow.cx.v3.ExportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" - + "\025ExportIntentsResponse\022\025ExportIntentsMetadat" - + "a\202\323\344\223\002@\";/v3/{parent=projects/*/location" - + "s/*/agents/*}/intents:export:\001*\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\256\001\n" - + "!com.google.cloud.dialogflow.cx.v3B\013IntentP" - + "rotoP\001Z1cloud.google.com/go/dialogflow/c" - + "x/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Di" - + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" + + "\013ListIntents\0221.google.cloud.dialogflow.cx.v3.ListIntentsRequest\0322.g" + + "oogle.cloud.dialogflow.cx.v3.ListIntents" + + "Response\"E\332A\006parent\202\323\344\223\0026\0224/v3/{parent=p" + + "rojects/*/locations/*/agents/*}/intents\022\250\001\n" + + "\tGetIntent\022/.google.cloud.dialogflow.cx.v3.GetIntentRequest\032%.google.cloud.di" + + "alogflow.cx.v3.Intent\"C\332A\004name\202\323\344\223\0026\0224/v" + + "3/{name=projects/*/locations/*/agents/*/intents/*}\022\277\001\n" + + "\014CreateIntent\0222.google.cloud.dialogflow.cx.v3.CreateIntentRequest\032" + + "%.google.cloud.dialogflow.cx.v3.Intent\"T\332A\r" + + "parent,intent\202\323\344\223\002>\"4/v3/{parent=proj" + + "ects/*/locations/*/agents/*}/intents:\006intent\022\313\001\n" + + "\014UpdateIntent\0222.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\032%.goog" + + "le.cloud.dialogflow.cx.v3.Intent\"`\332A\022int" + + "ent,update_mask\202\323\344\223\002E2;/v3/{intent.name=" + + "projects/*/locations/*/agents/*/intents/*}:\006intent\022\237\001\n" + + "\014DeleteIntent\0222.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\032" + + "\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4" + + "/v3/{name=projects/*/locations/*/agents/*/intents/*}\022\334\001\n\r" + + "ImportIntents\0223.google." + + "cloud.dialogflow.cx.v3.ImportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" + + "\025ImportIntentsResponse\022\025ImportIntentsMet" + + "adata\202\323\344\223\002@\";/v3/{parent=projects/*/locations/*/agents/*}/intents:import:\001*\022\334\001\n\r" + + "ExportIntents\0223.google.cloud.dialogflow." + + "cx.v3.ExportIntentsRequest\032\035.google.longrunning.Operation\"w\312A.\n" + + "\025ExportIntentsResponse\022\025ExportIntentsMetadata\202\323\344\223\002@\";/v3/" + + "{parent=projects/*/locations/*/agents/*}" + + "/intents:export:\001*\032x\312A\031dialogflow.google" + + "apis.com\322AYhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis.com/auth/dialogflowB\256\001\n" + + "!com.google.cloud.dialogflow.cx.v3B\013IntentProtoP\001Z1cloud" + + ".google.com/go/dialogflow/cx/apiv3/cxpb;" + + "cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V" + + "3\352\002!Google::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -303,6 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsFallback", "Labels", "Description", + "DtmfPattern", }); internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Intent_descriptor.getNestedType(0); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java new file mode 100644 index 000000000000..0a2b9a9c0a3f --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadata.java @@ -0,0 +1,814 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                                    + * Metadata of the playbook trace.
                                                    + * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata} + */ +@com.google.protobuf.Generated +public final class PlaybookTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + PlaybookTraceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PlaybookTraceMetadata"); + } + + // Use PlaybookTraceMetadata.newBuilder() to construct. + private PlaybookTraceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PlaybookTraceMetadata() { + playbook_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder.class); + } + + public static final int PLAYBOOK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object playbook_ = ""; + + /** + * + * + *
                                                    +   * Required. The unique identifier of the playbook.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +   * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + @java.lang.Override + public java.lang.String getPlaybook() { + java.lang.Object ref = playbook_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + playbook_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Required. The unique identifier of the playbook.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +   * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaybookBytes() { + java.lang.Object ref = playbook_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + playbook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +   * Output only. The display name of the playbook.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Output only. The display name of the playbook.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(playbook_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, playbook_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(playbook_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, playbook_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) obj; + + if (!getPlaybook().equals(other.getPlaybook())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PLAYBOOK_FIELD_NUMBER; + hash = (53 * hash) + getPlaybook().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + playbook_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.playbook_ = playbook_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance()) + return this; + if (!other.getPlaybook().isEmpty()) { + playbook_ = other.playbook_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + playbook_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object playbook_ = ""; + + /** + * + * + *
                                                    +     * Required. The unique identifier of the playbook.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +     * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + public java.lang.String getPlaybook() { + java.lang.Object ref = playbook_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + playbook_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the playbook.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +     * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + public com.google.protobuf.ByteString getPlaybookBytes() { + java.lang.Object ref = playbook_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + playbook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the playbook.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +     * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The playbook to set. + * @return This builder for chaining. + */ + public Builder setPlaybook(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + playbook_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the playbook.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +     * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPlaybook() { + playbook_ = getDefaultInstance().getPlaybook(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Required. The unique identifier of the playbook.
                                                    +     * Format:
                                                    +     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +     * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for playbook to set. + * @return This builder for chaining. + */ + public Builder setPlaybookBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + playbook_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +     * Output only. The display name of the playbook.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the playbook.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the playbook.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the playbook.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the playbook.
                                                    +     * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlaybookTraceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..4ed4e9fe555f --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookTraceMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface PlaybookTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                    +   * Required. The unique identifier of the playbook.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +   * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The playbook. + */ + java.lang.String getPlaybook(); + + /** + * + * + *
                                                    +   * Required. The unique identifier of the playbook.
                                                    +   * Format:
                                                    +   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
                                                    +   * 
                                                    + * + * + * string playbook = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for playbook. + */ + com.google.protobuf.ByteString getPlaybookBytes(); + + /** + * + * + *
                                                    +   * Output only. The display name of the playbook.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                                    +   * Output only. The display name of the playbook.
                                                    +   * 
                                                    + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index bc0a1fd85eb3..e9475e1c4b00 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -1342,7 +1342,7 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5903,7 +5903,7 @@ public com.google.cloud.dialogflow.cx.v3.SearchConfigOrBuilder getSearchConfigOr * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5928,7 +5928,7 @@ public boolean getPopulateDataStoreConnectionSignals() { * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @param value The populateDataStoreConnectionSignals to set. * @return This builder for chaining. */ @@ -5957,7 +5957,7 @@ public Builder setPopulateDataStoreConnectionSignals(boolean value) { * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java index ad9c40ee6b52..70c0d211a7a0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java @@ -958,7 +958,7 @@ java.lang.String getWebhookHeadersOrDefault( * * @deprecated * google.cloud.dialogflow.cx.v3.QueryParameters.populate_data_store_connection_signals is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=770 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=771 * @return The populateDataStoreConnectionSignals. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index b31304a75a0a..8446a8ed3cae 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -56,6 +56,7 @@ private QueryResult() { responseMessages_ = java.util.Collections.emptyList(); webhookStatuses_ = java.util.Collections.emptyList(); webhookPayloads_ = java.util.Collections.emptyList(); + traceBlocks_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1044,7 +1045,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Override @@ -1068,7 +1069,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Override @@ -1122,7 +1123,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -1497,6 +1498,107 @@ public boolean hasDataStoreConnectionSignals() { : dataStoreConnectionSignals_; } + public static final int TRACE_BLOCKS_FIELD_NUMBER = 37; + + @SuppressWarnings("serial") + private java.util.List traceBlocks_; + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTraceBlocksList() { + return traceBlocks_; + } + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTraceBlocksOrBuilderList() { + return traceBlocks_; + } + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTraceBlocksCount() { + return traceBlocks_.size(); + } + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index) { + return traceBlocks_.get(index); + } + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder(int index) { + return traceBlocks_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1571,6 +1673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(35, getDataStoreConnectionSignals()); } + for (int i = 0; i < traceBlocks_.size(); i++) { + output.writeMessage(37, traceBlocks_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1646,6 +1751,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 35, getDataStoreConnectionSignals()); } + for (int i = 0; i < traceBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, traceBlocks_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1706,6 +1814,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDataStoreConnectionSignals().equals(other.getDataStoreConnectionSignals())) return false; } + if (!getTraceBlocksList().equals(other.getTraceBlocksList())) return false; if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 1: @@ -1791,6 +1900,10 @@ public int hashCode() { hash = (37 * hash) + DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER; hash = (53 * hash) + getDataStoreConnectionSignals().hashCode(); } + if (getTraceBlocksCount() > 0) { + hash = (37 * hash) + TRACE_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getTraceBlocksList().hashCode(); + } switch (queryCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -1968,6 +2081,7 @@ private void maybeForceBuilderInitialization() { internalGetSentimentAnalysisResultFieldBuilder(); internalGetAdvancedSettingsFieldBuilder(); internalGetDataStoreConnectionSignalsFieldBuilder(); + internalGetTraceBlocksFieldBuilder(); } } @@ -2047,6 +2161,13 @@ public Builder clear() { dataStoreConnectionSignalsBuilder_.dispose(); dataStoreConnectionSignalsBuilder_ = null; } + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + } else { + traceBlocks_ = null; + traceBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); queryCase_ = 0; query_ = null; return this; @@ -2113,6 +2234,15 @@ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.QueryR } else { result.webhookPayloads_ = webhookPayloadsBuilder_.build(); } + if (traceBlocksBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0)) { + traceBlocks_ = java.util.Collections.unmodifiableList(traceBlocks_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.traceBlocks_ = traceBlocks_; + } else { + result.traceBlocks_ = traceBlocksBuilder_.build(); + } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryResult result) { @@ -2315,6 +2445,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (other.hasDataStoreConnectionSignals()) { mergeDataStoreConnectionSignals(other.getDataStoreConnectionSignals()); } + if (traceBlocksBuilder_ == null) { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocks_.isEmpty()) { + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureTraceBlocksIsMutable(); + traceBlocks_.addAll(other.traceBlocks_); + } + onChanged(); + } + } else { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocksBuilder_.isEmpty()) { + traceBlocksBuilder_.dispose(); + traceBlocksBuilder_ = null; + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x00100000); + traceBlocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTraceBlocksFieldBuilder() + : null; + } else { + traceBlocksBuilder_.addAllMessages(other.traceBlocks_); + } + } + } switch (other.getQueryCase()) { case TEXT: { @@ -2533,6 +2690,19 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 282 + case 298: + { + com.google.cloud.dialogflow.cx.v3.TraceBlock m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.TraceBlock.parser(), extensionRegistry); + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(m); + } else { + traceBlocksBuilder_.addMessage(m); + } + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5480,7 +5650,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getCurrentFlowOrBuilder() * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -5503,7 +5673,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Deprecated @@ -5729,7 +5899,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -5756,7 +5926,7 @@ public float getIntentDetectionConfidence() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @param value The intentDetectionConfidence to set. * @return This builder for chaining. */ @@ -5787,7 +5957,7 @@ public Builder setIntentDetectionConfidence(float value) { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7088,6 +7258,465 @@ public Builder clearDataStoreConnectionSignals() { return dataStoreConnectionSignalsBuilder_; } + private java.util.List traceBlocks_ = + java.util.Collections.emptyList(); + + private void ensureTraceBlocksIsMutable() { + if (!((bitField0_ & 0x00100000) != 0)) { + traceBlocks_ = + new java.util.ArrayList(traceBlocks_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder> + traceBlocksBuilder_; + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTraceBlocksList() { + if (traceBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(traceBlocks_); + } else { + return traceBlocksBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTraceBlocksCount() { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.size(); + } else { + return traceBlocksBuilder_.getCount(); + } + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index) { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.get(index); + } else { + return traceBlocksBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks(int index, com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.set(index, value); + onChanged(); + } else { + traceBlocksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks(com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.add(value); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks(int index, com.google.cloud.dialogflow.cx.v3.TraceBlock value) { + if (traceBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTraceBlocksIsMutable(); + traceBlocks_.add(index, value); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder builderForValue) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + traceBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTraceBlocks( + java.lang.Iterable values) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, traceBlocks_); + onChanged(); + } else { + traceBlocksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTraceBlocks() { + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + traceBlocksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTraceBlocks(int index) { + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.remove(index); + onChanged(); + } else { + traceBlocksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder getTraceBlocksBuilder(int index) { + return internalGetTraceBlocksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder( + int index) { + if (traceBlocksBuilder_ == null) { + return traceBlocks_.get(index); + } else { + return traceBlocksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTraceBlocksOrBuilderList() { + if (traceBlocksBuilder_ != null) { + return traceBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(traceBlocks_); + } + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder addTraceBlocksBuilder() { + return internalGetTraceBlocksFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()); + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder addTraceBlocksBuilder(int index) { + return internalGetTraceBlocksFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()); + } + + /** + * + * + *
                                                    +     * Optional. Contains the sequence of trace blocks from the current
                                                    +     * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +     * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +     * playbook invocations, agent utterances and user utterances.
                                                    +     * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTraceBlocksBuilderList() { + return internalGetTraceBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder> + internalGetTraceBlocksFieldBuilder() { + if (traceBlocksBuilder_ == null) { + traceBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.TraceBlock, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder>( + traceBlocks_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); + traceBlocks_ = null; + } + return traceBlocksBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.QueryResult) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index 6f533381d851..3390ee060d32 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -647,7 +647,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -668,7 +668,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=1080 + * google/cloud/dialogflow/cx/v3/session.proto;l=1081 * @return The intent. */ @java.lang.Deprecated @@ -709,7 +709,7 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1091 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=1092 * @return The intentDetectionConfidence. */ @java.lang.Deprecated @@ -997,5 +997,86 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr com.google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsOrBuilder getDataStoreConnectionSignalsOrBuilder(); + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTraceBlocksList(); + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.TraceBlock getTraceBlocks(int index); + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTraceBlocksCount(); + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTraceBlocksOrBuilderList(); + + /** + * + * + *
                                                    +   * Optional. Contains the sequence of trace blocks from the current
                                                    +   * conversation turn. Trace blocks are ordered chronologically and contain
                                                    +   * detailed traces of runtime behavior such as tool calls, LLM calls, flow and
                                                    +   * playbook invocations, agent utterances and user utterances.
                                                    +   * 
                                                    + * + * + * repeated .google.cloud.dialogflow.cx.v3.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder getTraceBlocksOrBuilder(int index); + com.google.cloud.dialogflow.cx.v3.QueryResult.QueryCase getQueryCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index 827dad7d462d..5c0e355c6d1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -185,14 +185,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "settings.proto\032*google/cloud/dialogflow/cx/v3/intent.proto\032(google/cloud/dialogf" + "low/cx/v3/page.proto\0324google/cloud/dialogflow/cx/v3/response_message.proto\0327goog" + "le/cloud/dialogflow/cx/v3/session_entity_type.proto\032-google/cloud/dialogflow/cx/" - + "v3/tool_call.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\032\027goog" - + "le/rpc/status.proto\032\030google/type/latlng.proto\"\324\002\n" + + "v3/tool_call.proto\032)google/cloud/dialogf" + + "low/cx/v3/trace.proto\032\036google/protobuf/duration.proto\032" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\032\027g" + + "oogle/rpc/status.proto\032\030google/type/latlng.proto\"\324\002\n" + "\016AnswerFeedback\022I\n" - + "\006rating\030\001 \001(\016" - + "24.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingB\003\340A\001\022V\n\r" - + "rating_reason\030\002 \001" - + "(\0132:.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReasonB\003\340A\001\022\032\n\r" + + "\006rating\030\001 " + + "\001(\01624.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingB\003\340A\001\022V\n\r" + + "rating_reason\030\002" + + " \001(\0132:.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReasonB\003\340A\001\022\032\n\r" + "custom_rating\030\003 \001(\tB\003\340A\001\032A\n" + "\014RatingReason\022\032\n\r" + "reason_labels\030\003 \003(\tB\003\340A\001\022\025\n" @@ -218,18 +219,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132).google.cloud.dialogflow.cx.v3.QueryInputB\003\340A\002\022M\n" + "\023output_audio_config\030\004" + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022S\n\r" - + "response_view\030\t \001" - + "(\01627.google.cloud.dialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\216\003\n" + + "response_view\030\t" + + " \001(\01627.google.cloud.dialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\216\003\n" + "\024DetectIntentResponse\022\023\n" + "\013response_id\030\001 \001(\t\022@\n" + "\014query_result\030\002" + " \001(\0132*.google.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + "\014output_audio\030\004 \001(\014\022M\n" - + "\023output_audio_config\030\005" - + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022W\n" - + "\r" - + "response_type\030\006 \001(\0162@.google.cloud.dial" - + "ogflow.cx.v3.DetectIntentResponse.ResponseType\022\032\n" + + "\023output_audio_config\030\005 \001(\01320.google." + + "cloud.dialogflow.cx.v3.OutputAudioConfig\022W\n\r" + + "response_type\030\006 \001(\0162@.google.cloud.d" + + "ialogflow.cx.v3.DetectIntentResponse.ResponseType\022\032\n" + "\022allow_cancellation\030\007 \001(\010\"E\n" + "\014ResponseType\022\035\n" + "\031RESPONSE_TYPE_UNSPECIFIED\020\000\022\013\n" @@ -242,13 +242,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.dialogflow.cx.v3.QueryParameters\022C\n" + "\013query_input\030\003" + " \001(\0132).google.cloud.dialogflow.cx.v3.QueryInputB\003\340A\002\022M\n" - + "\023output_audio_config\030\004 " - + "\001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022\037\n" + + "\023output_audio_config\030\004" + + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\022\037\n" + "\027enable_partial_response\030\005 \001(\010\022\035\n" - + "\025enable_debugging_info\030\010 \001(\010\022S\n" - + "\r" - + "response_view\030\020 \001(\01627.google.cloud.dial" - + "ogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\260\007\n" + + "\025enable_debugging_info\030\010 \001(\010\022S\n\r" + + "response_view\030\020 \001(\01627.google.cloud.d" + + "ialogflow.cx.v3.DetectIntentResponseViewB\003\340A\001\"\260\007\n" + "\036CloudConversationDebuggingInfo\022\031\n" + "\021audio_data_chunks\030\001 \001(\005\0229\n" + "\026result_end_time_offset\030\002 \001(\0132\031.google.protobuf.Duration\0227\n" @@ -278,14 +277,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035StreamingDetectIntentResponse\022W\n" + "\022recognition_result\030\001" + " \001(\01329.google.cloud.dialogflow.cx.v3.StreamingRecognitionResultH\000\022U\n" - + "\026detect_intent_response\030\002 \001(\01323.google.cloud." - + "dialogflow.cx.v3.DetectIntentResponseH\000\022U\n" - + "\016debugging_info\030\004 \001(\0132=.google.cloud.d" - + "ialogflow.cx.v3.CloudConversationDebuggingInfoB\n\n" + + "\026detect_intent_response\030\002 \001(\01323.google.clo" + + "ud.dialogflow.cx.v3.DetectIntentResponseH\000\022U\n" + + "\016debugging_info\030\004 \001(\0132=.google.clou" + + "d.dialogflow.cx.v3.CloudConversationDebuggingInfoB\n\n" + "\010response\"\266\003\n" + "\032StreamingRecognitionResult\022[\n" - + "\014message_type\030\001 \001(\0162E.google" - + ".cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType\022\022\n\n" + + "\014message_type\030\001 \001(\0162E.goo" + + "gle.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType\022\022\n\n" + "transcript\030\002 \001(\t\022\020\n" + "\010is_final\030\003 \001(\010\022\022\n\n" + "confidence\030\004 \001(\002\022\021\n" @@ -312,46 +311,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017disable_webhook\030\007 \001(\010\022$\n" + "\034analyze_query_text_sentiment\030\010 \001(\010\022[\n" + "\017webhook_headers\030\n" - + " \003(\013" - + "2B.google.cloud.dialogflow.cx.v3.QueryParameters.WebhookHeadersEntry\022=\n\r" + + " \003(\0132B.google.cloud.dialogflow.cx.v3.QueryParameters.WebhookHeadersEntry\022=\n\r" + "flow_versions\030\016 \003(\tB&\372A#\n" + "!dialogflow.googleapis.com/Version\022D\n" + "\020current_playbook\030\023 \001(\tB*\340A\001\372A$\n" + "\"dialogflow.googleapis.com/Playbook\022P\n" - + "\022llm_model_settings\030\025 \001(\0132/.google.c" - + "loud.dialogflow.cx.v3.LlmModelSettingsB\003\340A\001\022\017\n" + + "\022llm_model_settings\030\025 \001(\0132/.googl" + + "e.cloud.dialogflow.cx.v3.LlmModelSettingsB\003\340A\001\022\017\n" + "\007channel\030\017 \001(\t\0223\n" + "\013session_ttl\030\020 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" + "\021end_user_metadata\030\022" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022G\n\r" - + "search_config\030\024 \001(\0132+.goog" - + "le.cloud.dialogflow.cx.v3.SearchConfigB\003\340A\001\0225\n" + + "search_config\030\024 \001(\0132+.g" + + "oogle.cloud.dialogflow.cx.v3.SearchConfigB\003\340A\001\0225\n" + "&populate_data_store_connection_signals\030\031 \001(\010B\005\030\001\340A\001\0325\n" + "\023WebhookHeadersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\232\001\n" + "\014SearchConfig\022C\n" - + "\013boost_specs\030\001 \003(\0132).google" - + ".cloud.dialogflow.cx.v3.BoostSpecsB\003\340A\001\022E\n" + + "\013boost_specs\030\001 \003(\0132).goo" + + "gle.cloud.dialogflow.cx.v3.BoostSpecsB\003\340A\001\022E\n" + "\014filter_specs\030\002" + " \003(\0132*.google.cloud.dialogflow.cx.v3.FilterSpecsB\003\340A\001\"\233\007\n" + "\tBoostSpec\022_\n" - + "\025condition_boost_specs\030\001 \003(\0132;.go" - + "ogle.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpecB\003\340A\001\032\254\006\n" + + "\025condition_boost_specs\030\001 \003(\0132;" + + ".google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpecB\003\340A\001\032\254\006\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022m\n" - + "\022boost_control_spec\030\004 \001(\0132L.google.cloud.dialogflow.cx.v3.BoostSpec.C" - + "onditionBoostSpec.BoostControlSpecB\003\340A\001\032\372\004\n" + + "\022boost_control_spec\030\004 \001(\0132L.google.cloud.dialogflow.cx.v3.BoostSpe" + + "c.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\372\004\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022w\n" - + "\016attribute_type\030\002 \001(\0162Z.google.c" - + "loud.dialogflow.cx.v3.BoostSpec.Conditio" - + "nBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\177\n" - + "\022interpolation_type\030\003 \001(\0162^.google.cloud.dialogflow.cx.v3.BoostSpec.Con" - + "ditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022v\n" - + "\016control_points\030\004 \003(\0132Y.google.cloud.dialogflow.cx.v3.BoostSpe" - + "c.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162Z.google.cloud.dialogflow.cx.v3.BoostSpec.Condi" + + "tionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\177\n" + + "\022interpolation_type\030\003 \001(\0162^.google.cloud.dialogflow.cx.v3.BoostSpec." + + "ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022v\n" + + "\016control_points\030\004 \003(\0132Y.google.cloud.dialogflow.cx.v3.Boost" + + "Spec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -361,8 +358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tFRESHNESS\020\002\"C\n" + "\021InterpolationType\022\"\n" + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006LINEAR\020\001\"\220\001\n" - + "\n" + + "\006LINEAR\020\001\"\220\001\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022;\n" @@ -378,18 +374,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005audio\030\005 \001(\0132).google.cloud.dialogflow.cx.v3.AudioInputH\000\022:\n" + "\005event\030\006 \001(\0132).google.cloud.dialogflow.cx.v3.EventInputH\000\0228\n" + "\004dtmf\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022I\n" - + "\020tool_call_result\030\013 \001(\0132-.google.c" - + "loud.dialogflow.cx.v3.ToolCallResultH\000\022\032\n\r" + + "\020tool_call_result\030\013 \001(\0132-.googl" + + "e.cloud.dialogflow.cx.v3.ToolCallResultH\000\022\032\n\r" + "language_code\030\004 \001(\tB\003\340A\002B\007\n" - + "\005input\"\256\010\n" + + "\005input\"\364\010\n" + "\013QueryResult\022\016\n" + "\004text\030\001 \001(\tH\000\022?\n" + "\016trigger_intent\030\013 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\000\022\024\n\n" - + "transcript\030\014 \001(\tH\000\022\027\n\r" - + "trigger_event\030\016 \001(\tH\000\0228\n" - + "\004dtmf\030\027 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022\025\n" + + "transcript\030\014 \001(\tH\000\022\027\n" + "\r" + + "trigger_event\030\016 \001(\tH\000\0228\n" + + "\004dtmf\030\027 \001(\0132(.google.cloud.dialogflow.cx.v3.DtmfInputH\000\022\025\n\r" + "language_code\030\002 \001(\t\022+\n\n" + "parameters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n" + "\021response_messages\030\004" @@ -405,13 +401,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005match\030\017 \001(\0132$.google.cloud.dialogflow.cx.v3.Match\0220\n" + "\017diagnostic_info\030\n" + " \001(\0132\027.google.protobuf.Struct\022Y\n" - + "\031sentiment_analysis_result\030\021 \001(\01326.goog" - + "le.cloud.dialogflow.cx.v3.SentimentAnalysisResult\022J\n" - + "\021advanced_settings\030\025 \001(\0132/.g" - + "oogle.cloud.dialogflow.cx.v3.AdvancedSettings\022\035\n" + + "\031sentiment_analysis_result\030\021 \001(\01326.g" + + "oogle.cloud.dialogflow.cx.v3.SentimentAnalysisResult\022J\n" + + "\021advanced_settings\030\025 \001(\0132" + + "/.google.cloud.dialogflow.cx.v3.AdvancedSettings\022\035\n" + "\025allow_answer_feedback\030 \001(\010\022e\n" - + "\035data_store_connection_signals\030# \001(\01329.go" - + "ogle.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsB\003\340A\001B\007\n" + + "\035data_store_connection_signals\030# \001(\01329" + + ".google.cloud.dialogflow.cx.v3.DataStoreConnectionSignalsB\003\340A\001\022D\n" + + "\014trace_blocks\030%" + + " \003(\0132).google.cloud.dialogflow.cx.v3.TraceBlockB\003\340A\001B\007\n" + "\005query\"\036\n" + "\tTextInput\022\021\n" + "\004text\030\001 \001(\tB\003\340A\002\"G\n" @@ -419,8 +417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006intent\030\001 \001(\tB(\340A\002\372A\"\n" + " dialogflow.googleapis.com/Intent\"a\n\n" + "AudioInput\022D\n" - + "\006config\030\001 " - + "\001(\0132/.google.cloud.dialogflow.cx.v3.InputAudioConfigB\003\340A\002\022\r\n" + + "\006config\030\001 \001(\0132/.g" + + "oogle.cloud.dialogflow.cx.v3.InputAudioConfigB\003\340A\002\022\r\n" + "\005audio\030\002 \001(\014\"\033\n\n" + "EventInput\022\r\n" + "\005event\030\001 \001(\t\"1\n" @@ -432,8 +430,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005event\030\006 \001(\t\022+\n\n" + "parameters\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n" + "\016resolved_input\030\003 \001(\t\022B\n\n" - + "match_type\030\004 \001(" - + "\0162..google.cloud.dialogflow.cx.v3.Match.MatchType\022\022\n\n" + + "match_type\030\004 \001(\0162..goo" + + "gle.cloud.dialogflow.cx.v3.Match.MatchType\022\022\n\n" + "confidence\030\005 \001(\002\"\253\001\n" + "\tMatchType\022\032\n" + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -463,15 +461,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014current_page\030\005 \001(\0132#.google.cloud.dialogflow.cx.v3.PageB\007\n" + "\005query\"\353\001\n" + "\024FulfillIntentRequest\022O\n" - + "\024match_intent_request\030\001 \001(\01321.google." - + "cloud.dialogflow.cx.v3.MatchIntentRequest\0223\n" + + "\024match_intent_request\030\001" + + " \001(\01321.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0223\n" + "\005match\030\002 \001(\0132$.google.cloud.dialogflow.cx.v3.Match\022M\n" - + "\023output_audio_config\030\003 " - + "\001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\"\323\001\n" + + "\023output_audio_config\030\003 \001(\01320.g" + + "oogle.cloud.dialogflow.cx.v3.OutputAudioConfig\"\323\001\n" + "\025FulfillIntentResponse\022\023\n" + "\013response_id\030\001 \001(\t\022@\n" - + "\014query_result\030\002 \001" - + "(\0132*.google.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + + "\014query_result\030\002 \001(\0132*.go" + + "ogle.cloud.dialogflow.cx.v3.QueryResult\022\024\n" + "\014output_audio\030\003 \001(\014\022M\n" + "\023output_audio_config\030\004" + " \001(\01320.google.cloud.dialogflow.cx.v3.OutputAudioConfig\";\n" @@ -484,48 +482,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!DETECT_INTENT_RESPONSE_VIEW_BASIC\020\002\022\'\n" + "#DETECT_INTENT_RESPONSE_VIEW_DEFAULT\020\0032\372\r\n" + "\010Sessions\022\246\002\n" - + "\014DetectIntent\0222.google.cloud.dialogflow.cx.v3.DetectIntentReque" - + "st\0323.google.cloud.dialogflow.cx.v3.Detec" - + "tIntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=" - + "projects/*/locations/*/agents/*/sessions/*}:detectIntent:\001*ZY\"T/v3/{session=proj" - + "ects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent:\001*\022\325\002\n" - + "\033ServerStreamingDetectIntent\0222.google.cloud.di" - + "alogflow.cx.v3.DetectIntentRequest\0323.google.cloud.dialogflow.cx.v3.DetectIntentR" - + "esponse\"\312\001\202\323\344\223\002\303\001\"T/v3/{session=projects" - + "/*/locations/*/agents/*/sessions/*}:serverStreamingDetectIntent:\001*Zh\"c/v3/{sessi" - + "on=projects/*/locations/*/agents/*/envir" - + "onments/*/sessions/*}:serverStreamingDetectIntent:\001*0\001\022\230\001\n" - + "\025StreamingDetectIntent\022;.google.cloud.dialogflow.cx.v3.Streami" - + "ngDetectIntentRequest\032<.google.cloud.dia" - + "logflow.cx.v3.StreamingDetectIntentResponse\"\000(\0010\001\022\241\002\n" - + "\013MatchIntent\0221.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0322.g" - + "oogle.cloud.dialogflow.cx.v3.MatchIntent" - + "Response\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=project" - + "s/*/locations/*/agents/*/sessions/*}:matchIntent:\001*ZX\"S/v3/{session=projects/*/l" - + "ocations/*/agents/*/environments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" - + "FulfillIntent\0223.google.cloud.dialogflow.cx.v3.FulfillI" - + "ntentRequest\0324.google.cloud.dialogflow.c" - + "x.v3.FulfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v" - + "3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulf" - + "illIntent:\001*Zo\"j/v3/{match_intent_request.session=projects/*/locations/*/agents/" - + "*/environments/*/sessions/*}:fulfillIntent:\001*\022\333\001\n" - + "\024SubmitAnswerFeedback\022:.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedb" - + "ackRequest\032-.google.cloud.dialogflow.cx." - + "v3.AnswerFeedback\"X\202\323\344\223\002R\"M/v3/{session=" - + "projects/*/locations/*/agents/*/sessions" - + "/*}:submitAnswerFeedback:\001*\032x\312A\031dialogfl" - + "ow.googleapis.com\322AYhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\320\004\n" - + "!com.google.cloud.dialogflow.cx.v3B\014SessionProt" - + "oP\001Z1cloud.google.com/go/dialogflow/cx/a" - + "piv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialo" - + "gflow.Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\324\001\n" - + "!dialogflow.googleapis.com/Session\022Iprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/sessions/{session}\022dprojects/{project}/locations/{locatio" - + "n}/agents/{agent}/environments/{environment}/sessions/{session}\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022?projects/" - + "{project}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locat" - + "ions/{location}/collections/{collection}/dataStores/{data_store}b\006proto3" + + "\014DetectIntent\0222.google.cloud.dialogflow.cx.v3.DetectIntentRequest\0323.go" + + "ogle.cloud.dialogflow.cx.v3.DetectIntent" + + "Response\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=project" + + "s/*/locations/*/agents/*/sessions/*}:detectIntent:\001*ZY\"T/v3/{session=projects/*/" + + "locations/*/agents/*/environments/*/sessions/*}:detectIntent:\001*\022\325\002\n" + + "\033ServerStreamingDetectIntent\0222.google.cloud.dialogflo" + + "w.cx.v3.DetectIntentRequest\0323.google.cloud.dialogflow.cx.v3.DetectIntentResponse" + + "\"\312\001\202\323\344\223\002\303\001\"T/v3/{session=projects/*/loca" + + "tions/*/agents/*/sessions/*}:serverStreamingDetectIntent:\001*Zh\"c/v3/{session=proj" + + "ects/*/locations/*/agents/*/environments" + + "/*/sessions/*}:serverStreamingDetectIntent:\001*0\001\022\230\001\n" + + "\025StreamingDetectIntent\022;.google.cloud.dialogflow.cx.v3.StreamingDetec" + + "tIntentRequest\032<.google.cloud.dialogflow" + + ".cx.v3.StreamingDetectIntentResponse\"\000(\0010\001\022\241\002\n" + + "\013MatchIntent\0221.google.cloud.dialogflow.cx.v3.MatchIntentRequest\0322.google.c" + + "loud.dialogflow.cx.v3.MatchIntentRespons" + + "e\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/loc" + + "ations/*/agents/*/sessions/*}:matchIntent:\001*ZX\"S/v3/{session=projects/*/location" + + "s/*/agents/*/environments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" + + "FulfillIntent\0223.google.cloud.dialogflow.cx.v3.FulfillIntentRe" + + "quest\0324.google.cloud.dialogflow.cx.v3.Fu" + + "lfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{matc" + + "h_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillInte" + + "nt:\001*Zo\"j/v3/{match_intent_request.session=projects/*/locations/*/agents/*/envir" + + "onments/*/sessions/*}:fulfillIntent:\001*\022\333\001\n" + + "\024SubmitAnswerFeedback\022:.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequ" + + "est\032-.google.cloud.dialogflow.cx.v3.Answ" + + "erFeedback\"X\202\323\344\223\002R\"M/v3/{session=project" + + "s/*/locations/*/agents/*/sessions/*}:sub" + + "mitAnswerFeedback:\001*\032x\312A\031dialogflow.goog" + + "leapis.com\322AYhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\320\004\n" + + "!com.google.cloud.dialogflow.cx.v3B\014SessionProtoP\001Z1cl" + + "oud.google.com/go/dialogflow/cx/apiv3/cx" + + "pb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialogflow.C" + + "x.V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\324\001\n" + + "!dialogflow.googleapis.com/Session\022Iprojects/{project}/locations/{location}" + + "/agents/{agent}/sessions/{session}\022dprojects/{project}/locations/{location}/agen" + + "ts/{agent}/environments/{environment}/sessions/{session}\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{projec" + + "t}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locations/{l" + + "ocation}/collections/{collection}/dataStores/{data_store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -545,6 +543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.SessionEntityTypeProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3.TraceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -783,6 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdvancedSettings", "AllowAnswerFeedback", "DataStoreConnectionSignals", + "TraceBlocks", "Query", }); internal_static_google_cloud_dialogflow_cx_v3_TextInput_descriptor = @@ -894,6 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.SessionEntityTypeProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3.TraceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java new file mode 100644 index 000000000000..705d91f2f8e9 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadata.java @@ -0,0 +1,597 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                                    + * Metadata of the speech-to-text and text-to-speech processing.
                                                    + * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata} + */ +@com.google.protobuf.Generated +public final class SpeechProcessingMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + SpeechProcessingMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SpeechProcessingMetadata"); + } + + // Use SpeechProcessingMetadata.newBuilder() to construct. + private SpeechProcessingMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SpeechProcessingMetadata() { + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +   * Output only. The display name of the speech processing.
                                                    +   * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                                                    +   * Output only. The display name of the speech processing.
                                                    +   * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata other = + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and text-to-speech processing.
                                                    +   * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata build() { + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result = + new com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                                                    +     * Output only. The display name of the speech processing.
                                                    +     * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the speech processing.
                                                    +     * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                    +     * Output only. The display name of the speech processing.
                                                    +     * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the speech processing.
                                                    +     * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. The display name of the speech processing.
                                                    +     * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + private static final com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechProcessingMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java new file mode 100644 index 000000000000..890739ce1073 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechProcessingMetadataOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface SpeechProcessingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                    +   * Output only. The display name of the speech processing.
                                                    +   * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                                                    +   * Output only. The display name of the speech processing.
                                                    +   * 
                                                    + * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java new file mode 100644 index 000000000000..0d865aa68725 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlock.java @@ -0,0 +1,3344 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
                                                    + * The trace block tracks a sequence of actions taken by the agent in a flow or
                                                    + * a playbook.
                                                    + * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.TraceBlock} + */ +@com.google.protobuf.Generated +public final class TraceBlock extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.TraceBlock) + TraceBlockOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TraceBlock"); + } + + // Use TraceBlock.newBuilder() to construct. + private TraceBlock(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TraceBlock() { + actions_ = java.util.Collections.emptyList(); + endState_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder.class); + } + + private int bitField0_; + private int traceMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object traceMetadata_; + + public enum TraceMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLAYBOOK_TRACE_METADATA(1), + FLOW_TRACE_METADATA(2), + SPEECH_PROCESSING_METADATA(8), + TRACEMETADATA_NOT_SET(0); + private final int value; + + private TraceMetadataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TraceMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TraceMetadataCase forNumber(int value) { + switch (value) { + case 1: + return PLAYBOOK_TRACE_METADATA; + case 2: + return FLOW_TRACE_METADATA; + case 8: + return SPEECH_PROCESSING_METADATA; + case 0: + return TRACEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TraceMetadataCase getTraceMetadataCase() { + return TraceMetadataCase.forNumber(traceMetadataCase_); + } + + public static final int PLAYBOOK_TRACE_METADATA_FIELD_NUMBER = 1; + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return Whether the playbookTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasPlaybookTraceMetadata() { + return traceMetadataCase_ == 1; + } + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + + public static final int FLOW_TRACE_METADATA_FIELD_NUMBER = 2; + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasFlowTraceMetadata() { + return traceMetadataCase_ == 2; + } + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + + public static final int SPEECH_PROCESSING_METADATA_FIELD_NUMBER = 8; + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + @java.lang.Override + public boolean hasSpeechProcessingMetadata() { + return traceMetadataCase_ == 8; + } + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getSpeechProcessingMetadata() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + + public static final int ACTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List actions_; + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public java.util.List getActionsList() { + return actions_; + } + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public java.util.List + getActionsOrBuilderList() { + return actions_; + } + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Action getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index) { + return actions_.get(index); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + public static final int INPUT_PARAMETERS_FIELD_NUMBER = 9; + private com.google.protobuf.Struct inputParameters_; + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + @java.lang.Override + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getInputParameters() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + public static final int OUTPUT_PARAMETERS_FIELD_NUMBER = 6; + private com.google.protobuf.Struct outputParameters_; + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + @java.lang.Override + public boolean hasOutputParameters() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getOutputParameters() { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder() { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + + public static final int END_STATE_FIELD_NUMBER = 7; + private int endState_ = 0; + + /** + * + * + *
                                                    +   * Optional. Output only. The end state of the trace block.
                                                    +   * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + @java.lang.Override + public int getEndStateValue() { + return endState_; + } + + /** + * + * + *
                                                    +   * Optional. Output only. The end state of the trace block.
                                                    +   * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3.OutputState result = + com.google.cloud.dialogflow.cx.v3.OutputState.forNumber(endState_); + return result == null ? com.google.cloud.dialogflow.cx.v3.OutputState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (traceMetadataCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_); + } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(3, actions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getOutputParameters()); + } + if (endState_ + != com.google.cloud.dialogflow.cx.v3.OutputState.OUTPUT_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, endState_); + } + if (traceMetadataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getInputParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (traceMetadataCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_); + } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, actions_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputParameters()); + } + if (endState_ + != com.google.cloud.dialogflow.cx.v3.OutputState.OUTPUT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, endState_); + } + if (traceMetadataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getInputParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.TraceBlock)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.TraceBlock other = + (com.google.cloud.dialogflow.cx.v3.TraceBlock) obj; + + if (!getActionsList().equals(other.getActionsList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (hasInputParameters() != other.hasInputParameters()) return false; + if (hasInputParameters()) { + if (!getInputParameters().equals(other.getInputParameters())) return false; + } + if (hasOutputParameters() != other.hasOutputParameters()) return false; + if (hasOutputParameters()) { + if (!getOutputParameters().equals(other.getOutputParameters())) return false; + } + if (endState_ != other.endState_) return false; + if (!getTraceMetadataCase().equals(other.getTraceMetadataCase())) return false; + switch (traceMetadataCase_) { + case 1: + if (!getPlaybookTraceMetadata().equals(other.getPlaybookTraceMetadata())) return false; + break; + case 2: + if (!getFlowTraceMetadata().equals(other.getFlowTraceMetadata())) return false; + break; + case 8: + if (!getSpeechProcessingMetadata().equals(other.getSpeechProcessingMetadata())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + if (hasInputParameters()) { + hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputParameters().hashCode(); + } + if (hasOutputParameters()) { + hash = (37 * hash) + OUTPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOutputParameters().hashCode(); + } + hash = (37 * hash) + END_STATE_FIELD_NUMBER; + hash = (53 * hash) + endState_; + switch (traceMetadataCase_) { + case 1: + hash = (37 * hash) + PLAYBOOK_TRACE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookTraceMetadata().hashCode(); + break; + case 2: + hash = (37 * hash) + FLOW_TRACE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getFlowTraceMetadata().hashCode(); + break; + case 8: + hash = (37 * hash) + SPEECH_PROCESSING_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSpeechProcessingMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.TraceBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                    +   * The trace block tracks a sequence of actions taken by the agent in a flow or
                                                    +   * a playbook.
                                                    +   * 
                                                    + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.TraceBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.TraceBlock) + com.google.cloud.dialogflow.cx.v3.TraceBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3.TraceBlock.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.TraceBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActionsFieldBuilder(); + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + internalGetInputParametersFieldBuilder(); + internalGetOutputParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (playbookTraceMetadataBuilder_ != null) { + playbookTraceMetadataBuilder_.clear(); + } + if (flowTraceMetadataBuilder_ != null) { + flowTraceMetadataBuilder_.clear(); + } + if (speechProcessingMetadataBuilder_ != null) { + speechProcessingMetadataBuilder_.clear(); + } + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + } else { + actions_ = null; + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + outputParameters_ = null; + if (outputParametersBuilder_ != null) { + outputParametersBuilder_.dispose(); + outputParametersBuilder_ = null; + } + endState_ = 0; + traceMetadataCase_ = 0; + traceMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock build() { + com.google.cloud.dialogflow.cx.v3.TraceBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock buildPartial() { + com.google.cloud.dialogflow.cx.v3.TraceBlock result = + new com.google.cloud.dialogflow.cx.v3.TraceBlock(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.inputParameters_ = + inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.outputParameters_ = + outputParametersBuilder_ == null ? outputParameters_ : outputParametersBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.endState_ = endState_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.TraceBlock result) { + result.traceMetadataCase_ = traceMetadataCase_; + result.traceMetadata_ = this.traceMetadata_; + if (traceMetadataCase_ == 1 && playbookTraceMetadataBuilder_ != null) { + result.traceMetadata_ = playbookTraceMetadataBuilder_.build(); + } + if (traceMetadataCase_ == 2 && flowTraceMetadataBuilder_ != null) { + result.traceMetadata_ = flowTraceMetadataBuilder_.build(); + } + if (traceMetadataCase_ == 8 && speechProcessingMetadataBuilder_ != null) { + result.traceMetadata_ = speechProcessingMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.TraceBlock) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.TraceBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TraceBlock other) { + if (other == com.google.cloud.dialogflow.cx.v3.TraceBlock.getDefaultInstance()) return this; + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + actionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActionsFieldBuilder() + : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (other.hasInputParameters()) { + mergeInputParameters(other.getInputParameters()); + } + if (other.hasOutputParameters()) { + mergeOutputParameters(other.getOutputParameters()); + } + if (other.endState_ != 0) { + setEndStateValue(other.getEndStateValue()); + } + switch (other.getTraceMetadataCase()) { + case PLAYBOOK_TRACE_METADATA: + { + mergePlaybookTraceMetadata(other.getPlaybookTraceMetadata()); + break; + } + case FLOW_TRACE_METADATA: + { + mergeFlowTraceMetadata(other.getFlowTraceMetadata()); + break; + } + case SPEECH_PROCESSING_METADATA: + { + mergeSpeechProcessingMetadata(other.getSpeechProcessingMetadata()); + break; + } + case TRACEMETADATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetPlaybookTraceMetadataFieldBuilder().getBuilder(), extensionRegistry); + traceMetadataCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFlowTraceMetadataFieldBuilder().getBuilder(), extensionRegistry); + traceMetadataCase_ = 2; + break; + } // case 18 + case 26: + { + com.google.cloud.dialogflow.cx.v3.Action m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Action.parser(), extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetOutputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 56: + { + endState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetSpeechProcessingMetadataFieldBuilder().getBuilder(), + extensionRegistry); + traceMetadataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int traceMetadataCase_ = 0; + private java.lang.Object traceMetadata_; + + public TraceMetadataCase getTraceMetadataCase() { + return TraceMetadataCase.forNumber(traceMetadataCase_); + } + + public Builder clearTraceMetadata() { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder> + playbookTraceMetadataBuilder_; + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return Whether the playbookTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasPlaybookTraceMetadata() { + return traceMetadataCase_ == 1; + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 1) { + return playbookTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata value) { + if (playbookTraceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + playbookTraceMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder builderForValue) { + if (playbookTraceMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + playbookTraceMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder mergePlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata value) { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 1) { + playbookTraceMetadataBuilder_.mergeFrom(value); + } else { + playbookTraceMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 1; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder clearPlaybookTraceMetadata() { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 1) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + playbookTraceMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder + getPlaybookTraceMetadataBuilder() { + return internalGetPlaybookTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 1) && (playbookTraceMetadataBuilder_ != null)) { + return playbookTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the playbook trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder> + internalGetPlaybookTraceMetadataFieldBuilder() { + if (playbookTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 1)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.getDefaultInstance(); + } + playbookTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 1; + onChanged(); + return playbookTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder> + flowTraceMetadataBuilder_; + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + @java.lang.Override + public boolean hasFlowTraceMetadata() { + return traceMetadataCase_ == 2; + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata() { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 2) { + return flowTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata(com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata value) { + if (flowTraceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + flowTraceMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder builderForValue) { + if (flowTraceMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + flowTraceMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder mergeFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata value) { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 2) { + flowTraceMetadataBuilder_.mergeFrom(value); + } else { + flowTraceMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 2; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder clearFlowTraceMetadata() { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 2) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + flowTraceMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder + getFlowTraceMetadataBuilder() { + return internalGetFlowTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 2) && (flowTraceMetadataBuilder_ != null)) { + return flowTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the flow trace.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder> + internalGetFlowTraceMetadataFieldBuilder() { + if (flowTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 2)) { + traceMetadata_ = com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.getDefaultInstance(); + } + flowTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 2; + onChanged(); + return flowTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder> + speechProcessingMetadataBuilder_; + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + @java.lang.Override + public boolean hasSpeechProcessingMetadata() { + return traceMetadataCase_ == 8; + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata + getSpeechProcessingMetadata() { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 8) { + return speechProcessingMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata value) { + if (speechProcessingMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + traceMetadata_ = value; + onChanged(); + } else { + speechProcessingMetadataBuilder_.setMessage(value); + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder builderForValue) { + if (speechProcessingMetadataBuilder_ == null) { + traceMetadata_ = builderForValue.build(); + onChanged(); + } else { + speechProcessingMetadataBuilder_.setMessage(builderForValue.build()); + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder mergeSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata value) { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata + .getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + traceMetadata_ = value; + } + onChanged(); + } else { + if (traceMetadataCase_ == 8) { + speechProcessingMetadataBuilder_.mergeFrom(value); + } else { + speechProcessingMetadataBuilder_.setMessage(value); + } + } + traceMetadataCase_ = 8; + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder clearSpeechProcessingMetadata() { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + onChanged(); + } + } else { + if (traceMetadataCase_ == 8) { + traceMetadataCase_ = 0; + traceMetadata_ = null; + } + speechProcessingMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder + getSpeechProcessingMetadataBuilder() { + return internalGetSpeechProcessingMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if ((traceMetadataCase_ == 8) && (speechProcessingMetadataBuilder_ != null)) { + return speechProcessingMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                    +     * Metadata of the speech-to-text and speech-to-text processing.
                                                    +     * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder> + internalGetSpeechProcessingMetadataFieldBuilder() { + if (speechProcessingMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 8)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.getDefaultInstance(); + } + speechProcessingMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 8; + onChanged(); + return speechProcessingMetadataBuilder_; + } + + private java.util.List actions_ = + java.util.Collections.emptyList(); + + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder> + actionsBuilder_; + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder setActions(int index, com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder setActions( + int index, com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(int index, com.google.cloud.dialogflow.cx.v3.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions(com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addActions( + int index, com.google.cloud.dialogflow.cx.v3.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder addAllActions( + java.lang.Iterable values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder getActionsBuilder(int index) { + return internalGetActionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder addActionsBuilder() { + return internalGetActionsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.Action.getDefaultInstance()); + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3.Action.Builder addActionsBuilder(int index) { + return internalGetActionsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.Action.getDefaultInstance()); + } + + /** + * + * + *
                                                    +     * The actions performed by the agent and the user during this session.
                                                    +     * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + public java.util.List + getActionsBuilderList() { + return internalGetActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder> + internalGetActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3.Action, + com.google.cloud.dialogflow.cx.v3.Action.Builder, + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder>( + actions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + actions_ = null; + } + return actionsBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the start of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                                    +     * Output only. Timestamp of the end of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + private com.google.protobuf.Struct inputParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputParametersBuilder_; + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + public com.google.protobuf.Struct getInputParameters() { + if (inputParametersBuilder_ == null) { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } else { + return inputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputParameters_ = value; + } else { + inputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputParametersBuilder_ == null) { + inputParameters_ = builderForValue.build(); + } else { + inputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && inputParameters_ != null + && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputParametersBuilder().mergeFrom(value); + } else { + inputParameters_ = value; + } + } else { + inputParametersBuilder_.mergeFrom(value); + } + if (inputParameters_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputParameters() { + bitField0_ = (bitField0_ & ~0x00000040); + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getInputParametersBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetInputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + if (inputParametersBuilder_ != null) { + return inputParametersBuilder_.getMessageOrBuilder(); + } else { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + } + + /** + * + * + *
                                                    +     * Optional. A list of input parameters of the trace block.
                                                    +     * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetInputParametersFieldBuilder() { + if (inputParametersBuilder_ == null) { + inputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputParameters(), getParentForChildren(), isClean()); + inputParameters_ = null; + } + return inputParametersBuilder_; + } + + private com.google.protobuf.Struct outputParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputParametersBuilder_; + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + public boolean hasOutputParameters() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + public com.google.protobuf.Struct getOutputParameters() { + if (outputParametersBuilder_ == null) { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } else { + return outputParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputParameters(com.google.protobuf.Struct value) { + if (outputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputParameters_ = value; + } else { + outputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (outputParametersBuilder_ == null) { + outputParameters_ = builderForValue.build(); + } else { + outputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputParameters(com.google.protobuf.Struct value) { + if (outputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && outputParameters_ != null + && outputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputParametersBuilder().mergeFrom(value); + } else { + outputParameters_ = value; + } + } else { + outputParametersBuilder_.mergeFrom(value); + } + if (outputParameters_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputParameters() { + bitField0_ = (bitField0_ & ~0x00000080); + outputParameters_ = null; + if (outputParametersBuilder_ != null) { + outputParametersBuilder_.dispose(); + outputParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getOutputParametersBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetOutputParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder() { + if (outputParametersBuilder_ != null) { + return outputParametersBuilder_.getMessageOrBuilder(); + } else { + return outputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputParameters_; + } + } + + /** + * + * + *
                                                    +     * Optional. A list of output parameters of the trace block.
                                                    +     * 
                                                    + * + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOutputParametersFieldBuilder() { + if (outputParametersBuilder_ == null) { + outputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputParameters(), getParentForChildren(), isClean()); + outputParameters_ = null; + } + return outputParametersBuilder_; + } + + private int endState_ = 0; + + /** + * + * + *
                                                    +     * Optional. Output only. The end state of the trace block.
                                                    +     * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + @java.lang.Override + public int getEndStateValue() { + return endState_; + } + + /** + * + * + *
                                                    +     * Optional. Output only. The end state of the trace block.
                                                    +     * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for endState to set. + * @return This builder for chaining. + */ + public Builder setEndStateValue(int value) { + endState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. Output only. The end state of the trace block.
                                                    +     * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3.OutputState result = + com.google.cloud.dialogflow.cx.v3.OutputState.forNumber(endState_); + return result == null ? com.google.cloud.dialogflow.cx.v3.OutputState.UNRECOGNIZED : result; + } + + /** + * + * + *
                                                    +     * Optional. Output only. The end state of the trace block.
                                                    +     * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The endState to set. + * @return This builder for chaining. + */ + public Builder setEndState(com.google.cloud.dialogflow.cx.v3.OutputState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + endState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                    +     * Optional. Output only. The end state of the trace block.
                                                    +     * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEndState() { + bitField0_ = (bitField0_ & ~0x00000100); + endState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.TraceBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.TraceBlock) + private static final com.google.cloud.dialogflow.cx.v3.TraceBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.TraceBlock(); + } + + public static com.google.cloud.dialogflow.cx.v3.TraceBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TraceBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TraceBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java new file mode 100644 index 000000000000..ac65fc45cf6b --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceBlockOrBuilder.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/cx/v3/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3; + +@com.google.protobuf.Generated +public interface TraceBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.TraceBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return Whether the playbookTraceMetadata field is set. + */ + boolean hasPlaybookTraceMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * @return The playbookTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata getPlaybookTraceMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the playbook trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.PlaybookTraceMetadata playbook_trace_metadata = 1; + */ + com.google.cloud.dialogflow.cx.v3.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder(); + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + boolean hasFlowTraceMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadata getFlowTraceMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the flow trace.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.FlowTraceMetadata flow_trace_metadata = 2; + */ + com.google.cloud.dialogflow.cx.v3.FlowTraceMetadataOrBuilder getFlowTraceMetadataOrBuilder(); + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return Whether the speechProcessingMetadata field is set. + */ + boolean hasSpeechProcessingMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata getSpeechProcessingMetadata(); + + /** + * + * + *
                                                    +   * Metadata of the speech-to-text and speech-to-text processing.
                                                    +   * 
                                                    + * + * .google.cloud.dialogflow.cx.v3.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + com.google.cloud.dialogflow.cx.v3.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder(); + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + java.util.List getActionsList(); + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3.Action getActions(int index); + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + int getActionsCount(); + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + java.util.List + getActionsOrBuilderList(); + + /** + * + * + *
                                                    +   * The actions performed by the agent and the user during this session.
                                                    +   * 
                                                    + * + * repeated .google.cloud.dialogflow.cx.v3.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3.ActionOrBuilder getActionsOrBuilder(int index); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the start of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                                    +   * Output only. Timestamp of the end of the trace block.
                                                    +   * 
                                                    + * + * + * .google.protobuf.Timestamp complete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + boolean hasInputParameters(); + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + com.google.protobuf.Struct getInputParameters(); + + /** + * + * + *
                                                    +   * Optional. A list of input parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct input_parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getInputParametersOrBuilder(); + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputParameters field is set. + */ + boolean hasOutputParameters(); + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputParameters. + */ + com.google.protobuf.Struct getOutputParameters(); + + /** + * + * + *
                                                    +   * Optional. A list of output parameters of the trace block.
                                                    +   * 
                                                    + * + * .google.protobuf.Struct output_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder(); + + /** + * + * + *
                                                    +   * Optional. Output only. The end state of the trace block.
                                                    +   * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for endState. + */ + int getEndStateValue(); + + /** + * + * + *
                                                    +   * Optional. Output only. The end state of the trace block.
                                                    +   * 
                                                    + * + * + * .google.cloud.dialogflow.cx.v3.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + com.google.cloud.dialogflow.cx.v3.OutputState getEndState(); + + com.google.cloud.dialogflow.cx.v3.TraceBlock.TraceMetadataCase getTraceMetadataCase(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java index 26b403887ecb..c337aa032f48 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TraceProto.java @@ -40,6 +40,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -89,79 +105,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ")google/cloud/dialogflow/cx/v3/trace.pr" + "\n)google/cloud/dialogflow/cx/v3/trace.pr" + "oto\022\035google.cloud.dialogflow.cx.v3\032\037goog" + "le/api/field_behavior.proto\032\031google/api/" - + "resource.proto\032\034google/protobuf/struct.proto\"<\n\r" - + "PlaybookInput\022+\n" - + "\036preceding_conversation_summary\030\001 \001(\tB\003\340A\001\"0\n" - + "\016PlaybookOutput\022\036\n" - + "\021execution_summary\030\001 \001(\tB\003\340A\001\"\273\004\n" - + "\006Action\022K\n" - + "\016user_utterance\030\001 \001(\0132,.google" - + ".cloud.dialogflow.cx.v3.UserUtteranceB\003\340A\001H\000\022M\n" - + "\017agent_utterance\030\002 \001(\0132-.google.c" - + "loud.dialogflow.cx.v3.AgentUtteranceB\003\340A\001H\000\022?\n" - + "\010tool_use\030\003" - + " \001(\0132&.google.cloud.dialogflow.cx.v3.ToolUseB\003\340A\001H\000\022U\n" - + "\023playbook_invocation\030\004" - + " \001(\01321.google.cloud.dialogflow.cx.v3.PlaybookInvocationB\003\340A\001H\000\022M\n" - + "\017flow_invocation\030\005" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.FlowInvocationB\003\340A\001H\000\022U\n" - + "\023playbook_transition\030\014 \001(\01321.google.cloud.d" - + "ialogflow.cx.v3.PlaybookTransitionB\003\340A\001H\000\022M\n" - + "\017flow_transition\030\r" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.FlowTransitionB\003\340A\001H\000B\010\n" - + "\006action\"\"\n\r" - + "UserUtterance\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\002\"#\n" - + "\016AgentUtterance\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\002\"\356\001\n" - + "\007ToolUse\0224\n" - + "\004tool\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Tool\022\031\n" - + "\014display_name\030\010 \001(\tB\003\340A\003\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\022=\n" - + "\027input_action_parameters\030\005" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022>\n" - + "\030output_action_parameters\030\006" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n" - + "\022PlaybookInvocation\022<\n" - + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Playbook\022\031\n" - + "\014display_name\030\005 \001(\tB\003\340A\003\022I\n" - + "\016playbook_input\030\002" - + " \001(\0132,.google.cloud.dialogflow.cx.v3.PlaybookInputB\003\340A\001\022K\n" - + "\017playbook_output\030\003" - + " \001(\0132-.google.cloud.dialogflow.cx.v3.PlaybookOutputB\003\340A\001\022G\n" - + "\016playbook_state\030\004" - + " \001(\0162*.google.cloud.dialogflow.cx.v3.OutputStateB\003\340A\002\"\246\001\n" - + "\016FlowInvocation\0224\n" - + "\004flow\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Flow\022\031\n" - + "\014display_name\030\007 \001(\tB\003\340A\003\022C\n\n" - + "flow_state\030\004" - + " \001(\0162*.google.cloud.dialogflow.cx.v3.OutputStateB\003\340A\002\"m\n" - + "\022PlaybookTransition\022<\n" - + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Playbook\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\003\"a\n" - + "\016FlowTransition\0224\n" - + "\004flow\030\001 \001(\tB&\340A\002\372A \n" - + "\036dialogflow.googleapis.com/Flow\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\003*\253\001\n" - + "\013OutputState\022\034\n" - + "\030OUTPUT_STATE_UNSPECIFIED\020\000\022\023\n" - + "\017OUTPUT_STATE_OK\020\001\022\032\n" - + "\026OUTPUT_STATE_CANCELLED\020\002\022\027\n" - + "\023OUTPUT_STATE_FAILED\020\003\022\032\n" - + "\026OUTPUT_STATE_ESCALATED\020\004\022\030\n" - + "\024OUTPUT_STATE_PENDING\020\005B\255\001\n" - + "!com.google.cloud.dialogflow.cx.v3B\n" - + "TraceProtoP\001Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\242\002\002" - + "DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goo" - + "gle::Cloud::Dialogflow::CX::V3b\006proto3" + + "resource.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\"\204\005" + + "\n\nTraceBlock\022W\n\027playbook_trace_metadata\030" + + "\001 \001(\01324.google.cloud.dialogflow.cx.v3.Pl" + + "aybookTraceMetadataH\000\022O\n\023flow_trace_meta" + + "data\030\002 \001(\01320.google.cloud.dialogflow.cx." + + "v3.FlowTraceMetadataH\000\022]\n\032speech_process" + + "ing_metadata\030\010 \001(\01327.google.cloud.dialog" + + "flow.cx.v3.SpeechProcessingMetadataH\000\0226\n" + + "\007actions\030\003 \003(\0132%.google.cloud.dialogflow" + + ".cx.v3.Action\0223\n\nstart_time\030\004 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0226\n\rcomplete_t" + + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0226\n\020input_parameters\030\t \001(\0132\027.google.pr" + + "otobuf.StructB\003\340A\001\0227\n\021output_parameters\030" + + "\006 \001(\0132\027.google.protobuf.StructB\003\340A\001\022E\n\te" + + "nd_state\030\007 \001(\0162*.google.cloud.dialogflow" + + ".cx.v3.OutputStateB\006\340A\003\340A\001B\020\n\016trace_meta" + + "data\"5\n\030SpeechProcessingMetadata\022\031\n\014disp" + + "lay_name\030\001 \001(\tB\003\340A\003\"p\n\025PlaybookTraceMeta" + + "data\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"dialogfl" + + "ow.googleapis.com/Playbook\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\003\"d\n\021FlowTraceMetadata\0224\n\004fl" + + "ow\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis." + + "com/Flow\022\031\n\014display_name\030\002 \001(\tB\003\340A\003\"<\n\rP" + + "laybookInput\022+\n\036preceding_conversation_s" + + "ummary\030\001 \001(\tB\003\340A\001\"0\n\016PlaybookOutput\022\036\n\021e" + + "xecution_summary\030\001 \001(\tB\003\340A\001\"\273\004\n\006Action\022K" + + "\n\016user_utterance\030\001 \001(\0132,.google.cloud.di" + + "alogflow.cx.v3.UserUtteranceB\003\340A\001H\000\022M\n\017a" + + "gent_utterance\030\002 \001(\0132-.google.cloud.dial" + + "ogflow.cx.v3.AgentUtteranceB\003\340A\001H\000\022?\n\010to" + + "ol_use\030\003 \001(\0132&.google.cloud.dialogflow.c" + + "x.v3.ToolUseB\003\340A\001H\000\022U\n\023playbook_invocati" + + "on\030\004 \001(\01321.google.cloud.dialogflow.cx.v3" + + ".PlaybookInvocationB\003\340A\001H\000\022M\n\017flow_invoc" + + "ation\030\005 \001(\0132-.google.cloud.dialogflow.cx" + + ".v3.FlowInvocationB\003\340A\001H\000\022U\n\023playbook_tr" + + "ansition\030\014 \001(\01321.google.cloud.dialogflow" + + ".cx.v3.PlaybookTransitionB\003\340A\001H\000\022M\n\017flow" + + "_transition\030\r \001(\0132-.google.cloud.dialogf" + + "low.cx.v3.FlowTransitionB\003\340A\001H\000B\010\n\006actio" + + "n\"\"\n\rUserUtterance\022\021\n\004text\030\001 \001(\tB\003\340A\002\"#\n" + + "\016AgentUtterance\022\021\n\004text\030\001 \001(\tB\003\340A\002\"\356\001\n\007T" + + "oolUse\0224\n\004tool\030\001 \001(\tB&\340A\002\372A \n\036dialogflow" + + ".googleapis.com/Tool\022\031\n\014display_name\030\010 \001" + + "(\tB\003\340A\003\022\023\n\006action\030\002 \001(\tB\003\340A\001\022=\n\027input_ac" + + "tion_parameters\030\005 \001(\0132\027.google.protobuf." + + "StructB\003\340A\001\022>\n\030output_action_parameters\030" + + "\006 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n\022" + + "PlaybookInvocation\022<\n\010playbook\030\001 \001(\tB*\340A" + + "\002\372A$\n\"dialogflow.googleapis.com/Playbook" + + "\022\031\n\014display_name\030\005 \001(\tB\003\340A\003\022I\n\016playbook_" + + "input\030\002 \001(\0132,.google.cloud.dialogflow.cx" + + ".v3.PlaybookInputB\003\340A\001\022K\n\017playbook_outpu" + + "t\030\003 \001(\0132-.google.cloud.dialogflow.cx.v3." + + "PlaybookOutputB\003\340A\001\022G\n\016playbook_state\030\004 " + + "\001(\0162*.google.cloud.dialogflow.cx.v3.Outp" + + "utStateB\003\340A\002\"\246\001\n\016FlowInvocation\0224\n\004flow\030" + + "\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com" + + "/Flow\022\031\n\014display_name\030\007 \001(\tB\003\340A\003\022C\n\nflow" + + "_state\030\004 \001(\0162*.google.cloud.dialogflow.c" + + "x.v3.OutputStateB\003\340A\002\"m\n\022PlaybookTransit" + + "ion\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"dialogflo" + + "w.googleapis.com/Playbook\022\031\n\014display_nam" + + "e\030\003 \001(\tB\003\340A\003\"a\n\016FlowTransition\0224\n\004flow\030\001" + + " \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/" + + "Flow\022\031\n\014display_name\030\003 \001(\tB\003\340A\003*\253\001\n\013Outp" + + "utState\022\034\n\030OUTPUT_STATE_UNSPECIFIED\020\000\022\023\n" + + "\017OUTPUT_STATE_OK\020\001\022\032\n\026OUTPUT_STATE_CANCE" + + "LLED\020\002\022\027\n\023OUTPUT_STATE_FAILED\020\003\022\032\n\026OUTPU" + + "T_STATE_ESCALATED\020\004\022\030\n\024OUTPUT_STATE_PEND" + + "ING\020\005B\255\001\n!com.google.cloud.dialogflow.cx" + + ".v3B\nTraceProtoP\001Z1cloud.google.com/go/d" + + "ialogflow/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Goog" + + "le.Cloud.Dialogflow.Cx.V3\352\002!Google::Clou" + + "d::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -170,9 +193,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_TraceBlock_descriptor, + new java.lang.String[] { + "PlaybookTraceMetadata", + "FlowTraceMetadata", + "SpeechProcessingMetadata", + "Actions", + "StartTime", + "CompleteTime", + "InputParameters", + "OutputParameters", + "EndState", + "TraceMetadata", + }); + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_SpeechProcessingMetadata_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_PlaybookTraceMetadata_descriptor, + new java.lang.String[] { + "Playbook", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_FlowTraceMetadata_descriptor, + new java.lang.String[] { + "Flow", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookInput_descriptor, @@ -180,7 +245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrecedingConversationSummary", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(5); internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookOutput_descriptor, @@ -188,7 +253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionSummary", }); internal_static_google_cloud_dialogflow_cx_v3_Action_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(6); internal_static_google_cloud_dialogflow_cx_v3_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Action_descriptor, @@ -203,7 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Action", }); internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(7); internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_UserUtterance_descriptor, @@ -211,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(8); internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_AgentUtterance_descriptor, @@ -219,7 +284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_dialogflow_cx_v3_ToolUse_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(9); internal_static_google_cloud_dialogflow_cx_v3_ToolUse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_ToolUse_descriptor, @@ -227,7 +292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tool", "DisplayName", "Action", "InputActionParameters", "OutputActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(10); internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookInvocation_descriptor, @@ -235,7 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", "PlaybookInput", "PlaybookOutput", "PlaybookState", }); internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(11); internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_FlowInvocation_descriptor, @@ -243,7 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Flow", "DisplayName", "FlowState", }); internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(12); internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PlaybookTransition_descriptor, @@ -251,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", }); internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_FlowTransition_descriptor, @@ -262,6 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto index 3fa8505106cb..38e3d9fb8332 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto @@ -281,6 +281,9 @@ message Intent { // Human readable description for better understanding an intent like its // scope, content, result etc. Maximum character limit: 140 characters. string description = 8; + + // Optional. Matching DTMF pattern for the intent. + string dtmf_pattern = 16 [(google.api.field_behavior) = OPTIONAL]; } // The request message for diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 37dbb8ab3538..bf7a6f42f352 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -30,6 +30,7 @@ import "google/cloud/dialogflow/cx/v3/page.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; import "google/cloud/dialogflow/cx/v3/session_entity_type.proto"; import "google/cloud/dialogflow/cx/v3/tool_call.proto"; +import "google/cloud/dialogflow/cx/v3/trace.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; @@ -1134,6 +1135,13 @@ message QueryResult { // Filled only when data stores are involved in serving the query. DataStoreConnectionSignals data_store_connection_signals = 35 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contains the sequence of trace blocks from the current + // conversation turn. Trace blocks are ordered chronologically and contain + // detailed traces of runtime behavior such as tool calls, LLM calls, flow and + // playbook invocations, agent utterances and user utterances. + repeated TraceBlock trace_blocks = 37 + [(google.api.field_behavior) = OPTIONAL]; } // Represents the natural language text to be processed. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto index 797f9b2e85a9..c9473dcc749b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/trace.proto @@ -19,6 +19,7 @@ package google.cloud.dialogflow.cx.v3; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; @@ -28,6 +29,83 @@ option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; +// The trace block tracks a sequence of actions taken by the agent in a flow or +// a playbook. +message TraceBlock { + // Metadata of the trace. + oneof trace_metadata { + // Metadata of the playbook trace. + PlaybookTraceMetadata playbook_trace_metadata = 1; + + // Metadata of the flow trace. + FlowTraceMetadata flow_trace_metadata = 2; + + // Metadata of the speech-to-text and speech-to-text processing. + SpeechProcessingMetadata speech_processing_metadata = 8; + } + + // The actions performed by the agent and the user during this session. + repeated Action actions = 3; + + // Output only. Timestamp of the start of the trace block. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp of the end of the trace block. + google.protobuf.Timestamp complete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A list of input parameters of the trace block. + google.protobuf.Struct input_parameters = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of output parameters of the trace block. + google.protobuf.Struct output_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. The end state of the trace block. + OutputState end_state = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Metadata of the speech-to-text and text-to-speech processing. +message SpeechProcessingMetadata { + // Output only. The display name of the speech processing. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata of the playbook trace. +message PlaybookTraceMetadata { + // Required. The unique identifier of the playbook. + // Format: + // `projects//locations//agents//playbooks/`. + string playbook = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Playbook" + } + ]; + + // Output only. The display name of the playbook. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata of the flow trace. +message FlowTraceMetadata { + // Required. The unique identifier of the flow. + // Format: + // `projects//locations//agents//flows/`. + string flow = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } + ]; + + // Output only. The display name of the flow. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Input of the playbook. message PlaybookInput { // Optional. Summary string of the preceding conversation for the child diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index ba31c5e1ee17..0013ded924fa 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.93.0 + 4.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.93.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.94.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index 437523e592b2..1865fe2a86f3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -256,7 +256,10 @@ * * *

                                                    ListLocations - *

                                                    Lists information about the supported locations for this service. + *

                                                    Lists information about the supported locations for this service. + *

                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                    *
                                                      @@ -1808,6 +1811,19 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req /** * Lists information about the supported locations for this service. * + *

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      @@ -1841,6 +1857,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                         /**
                                                          * Lists information about the supported locations for this service.
                                                          *
                                                      +   * 

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      @@ -1874,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                         /**
                                                          * Lists information about the supported locations for this service.
                                                          *
                                                      +   * 

                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                      Sample code: * *

                                                      {@code
                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                                      index 39f66ebef174..529cb3afe1a4 100644
                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java
                                                      @@ -109,7 +109,10 @@
                                                        *    
                                                        *    
                                                        *      

                                                      ListLocations - *

                                                      Lists information about the supported locations for this service. + *

                                                      Lists information about the supported locations for this service. + *

                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                      *
                                                        @@ -537,6 +540,19 @@ public final UnaryCallable updateAnswer /** * Lists information about the supported locations for this service. * + *

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        @@ -570,6 +586,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                           /**
                                                            * Lists information about the supported locations for this service.
                                                            *
                                                        +   * 

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        @@ -604,6 +633,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                           /**
                                                            * Lists information about the supported locations for this service.
                                                            *
                                                        +   * 

                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                        Sample code: * *

                                                        {@code
                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                        index d271b0fd7087..0c3b0c5b53f4 100644
                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java
                                                        @@ -185,7 +185,10 @@
                                                          *    
                                                          *    
                                                          *      

                                                        ListLocations - *

                                                        Lists information about the supported locations for this service. + *

                                                        Lists information about the supported locations for this service. + *

                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                        *
                                                          @@ -1074,6 +1077,19 @@ public final UnaryCallable deleteAllContextsCal /** * Lists information about the supported locations for this service. * + *

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          @@ -1107,6 +1123,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                             /**
                                                              * Lists information about the supported locations for this service.
                                                              *
                                                          +   * 

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          @@ -1140,6 +1169,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                             /**
                                                              * Lists information about the supported locations for this service.
                                                              *
                                                          +   * 

                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                          Sample code: * *

                                                          {@code
                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                          index a2583bed75e2..334c3ed866c7 100644
                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java
                                                          @@ -178,7 +178,10 @@
                                                            *    
                                                            *    
                                                            *      

                                                          ListLocations - *

                                                          Lists information about the supported locations for this service. + *

                                                          Lists information about the supported locations for this service. + *

                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                          *
                                                            @@ -1160,6 +1163,19 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( /** * Lists information about the supported locations for this service. * + *

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            @@ -1194,6 +1210,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                               /**
                                                                * Lists information about the supported locations for this service.
                                                                *
                                                            +   * 

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            @@ -1229,6 +1258,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                               /**
                                                                * Lists information about the supported locations for this service.
                                                                *
                                                            +   * 

                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                            Sample code: * *

                                                            {@code
                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                            index 83a37790831a..3cce465d6dfe 100644
                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java
                                                            @@ -244,7 +244,10 @@
                                                              *    
                                                              *    
                                                              *      

                                                            ListLocations - *

                                                            Lists information about the supported locations for this service. + *

                                                            Lists information about the supported locations for this service. + *

                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                            *
                                                              @@ -1586,6 +1589,19 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel /** * Lists information about the supported locations for this service. * + *

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              @@ -1619,6 +1635,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                 /**
                                                                  * Lists information about the supported locations for this service.
                                                                  *
                                                              +   * 

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              @@ -1653,6 +1682,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                 /**
                                                                  * Lists information about the supported locations for this service.
                                                                  *
                                                              +   * 

                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                              Sample code: * *

                                                              {@code
                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                              index 786efeb69f81..1b004e718765 100644
                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java
                                                              @@ -223,7 +223,10 @@
                                                                *    
                                                                *    
                                                                *      

                                                              ListLocations - *

                                                              Lists information about the supported locations for this service. + *

                                                              Lists information about the supported locations for this service. + *

                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                              *
                                                                @@ -1660,6 +1663,19 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req /** * Lists information about the supported locations for this service. * + *

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                @@ -1694,6 +1710,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                   /**
                                                                    * Lists information about the supported locations for this service.
                                                                    *
                                                                +   * 

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                @@ -1729,6 +1758,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                   /**
                                                                    * Lists information about the supported locations for this service.
                                                                    *
                                                                +   * 

                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                Sample code: * *

                                                                {@code
                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                                index 119a4418d059..4e9f777a93c3 100644
                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java
                                                                @@ -272,7 +272,10 @@
                                                                  *    
                                                                  *    
                                                                  *      

                                                                ListLocations - *

                                                                Lists information about the supported locations for this service. + *

                                                                Lists information about the supported locations for this service. + *

                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                *
                                                                  @@ -1950,6 +1953,19 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions /** * Lists information about the supported locations for this service. * + *

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  @@ -1983,6 +1999,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                     /**
                                                                      * Lists information about the supported locations for this service.
                                                                      *
                                                                  +   * 

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  @@ -2017,6 +2046,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                     /**
                                                                      * Lists information about the supported locations for this service.
                                                                      *
                                                                  +   * 

                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                  Sample code: * *

                                                                  {@code
                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                                  index 3ad3c3a03821..e82c366ed258 100644
                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java
                                                                  @@ -238,7 +238,10 @@
                                                                    *    
                                                                    *    
                                                                    *      

                                                                  ListLocations - *

                                                                  Lists information about the supported locations for this service. + *

                                                                  Lists information about the supported locations for this service. + *

                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                  *
                                                                    @@ -1748,6 +1751,19 @@ public final UnaryCallable exportDocumentCalla /** * Lists information about the supported locations for this service. * + *

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    @@ -1781,6 +1797,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                       /**
                                                                        * Lists information about the supported locations for this service.
                                                                        *
                                                                    +   * 

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    @@ -1814,6 +1843,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                       /**
                                                                        * Lists information about the supported locations for this service.
                                                                        *
                                                                    +   * 

                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                    Sample code: * *

                                                                    {@code
                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                                    index a31cccf255df..076cadadc67f 100644
                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java
                                                                    @@ -112,7 +112,10 @@
                                                                      *    
                                                                      *    
                                                                      *      

                                                                    ListLocations - *

                                                                    Lists information about the supported locations for this service. + *

                                                                    Lists information about the supported locations for this service. + *

                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                    *
                                                                      @@ -532,6 +535,19 @@ public final UnaryCallable getEncrypti /** * Lists information about the supported locations for this service. * + *

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      @@ -566,6 +582,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                         /**
                                                                          * Lists information about the supported locations for this service.
                                                                          *
                                                                      +   * 

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      @@ -601,6 +630,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                         /**
                                                                          * Lists information about the supported locations for this service.
                                                                          *
                                                                      +   * 

                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                      Sample code: * *

                                                                      {@code
                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                                      index dd2244dec335..ac34fe16dc17 100644
                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java
                                                                      @@ -295,7 +295,10 @@
                                                                        *    
                                                                        *    
                                                                        *      

                                                                      ListLocations - *

                                                                      Lists information about the supported locations for this service. + *

                                                                      Lists information about the supported locations for this service. + *

                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                      *
                                                                        @@ -2706,6 +2709,19 @@ public final UnaryCallable batchDeleteEnt /** * Lists information about the supported locations for this service. * + *

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        @@ -2739,6 +2755,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                           /**
                                                                            * Lists information about the supported locations for this service.
                                                                            *
                                                                        +   * 

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        @@ -2773,6 +2802,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                           /**
                                                                            * Lists information about the supported locations for this service.
                                                                            *
                                                                        +   * 

                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                        Sample code: * *

                                                                        {@code
                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                        index b151d1669ec3..b2ff195f4a8a 100644
                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java
                                                                        @@ -164,7 +164,10 @@
                                                                          *    
                                                                          *    
                                                                          *      

                                                                        ListLocations - *

                                                                        Lists information about the supported locations for this service. + *

                                                                        Lists information about the supported locations for this service. + *

                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                        *
                                                                          @@ -830,6 +833,19 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( /** * Lists information about the supported locations for this service. * + *

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          @@ -863,6 +879,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                             /**
                                                                              * Lists information about the supported locations for this service.
                                                                              *
                                                                          +   * 

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          @@ -897,6 +926,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                             /**
                                                                              * Lists information about the supported locations for this service.
                                                                              *
                                                                          +   * 

                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                          Sample code: * *

                                                                          {@code
                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                          index 18f0f9eb74d6..2fea4c43a379 100644
                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java
                                                                          @@ -105,7 +105,10 @@
                                                                            *    
                                                                            *    
                                                                            *      

                                                                          ListLocations - *

                                                                          Lists information about the supported locations for this service. + *

                                                                          Lists information about the supported locations for this service. + *

                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                          *
                                                                            @@ -441,6 +444,19 @@ public final UnaryCallable updateFulfillm /** * Lists information about the supported locations for this service. * + *

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            @@ -474,6 +490,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                               /**
                                                                                * Lists information about the supported locations for this service.
                                                                                *
                                                                            +   * 

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            @@ -508,6 +537,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                               /**
                                                                                * Lists information about the supported locations for this service.
                                                                                *
                                                                            +   * 

                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                            Sample code: * *

                                                                            {@code
                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                            index 8eecfa0549dd..baa94027c703 100644
                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java
                                                                            @@ -154,7 +154,10 @@
                                                                              *    
                                                                              *    
                                                                              *      

                                                                            ListLocations - *

                                                                            Lists information about the supported locations for this service. + *

                                                                            Lists information about the supported locations for this service. + *

                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                            *
                                                                              @@ -933,6 +936,19 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req /** * Lists information about the supported locations for this service. * + *

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              @@ -967,6 +983,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                 /**
                                                                                  * Lists information about the supported locations for this service.
                                                                                  *
                                                                              +   * 

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              @@ -1002,6 +1031,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                 /**
                                                                                  * Lists information about the supported locations for this service.
                                                                                  *
                                                                              +   * 

                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                              Sample code: * *

                                                                              {@code
                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                              index 35ffdd1cc08b..1006649c04aa 100644
                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java
                                                                              @@ -169,7 +169,10 @@
                                                                                *    
                                                                                *    
                                                                                *      

                                                                              ListLocations - *

                                                                              Lists information about the supported locations for this service. + *

                                                                              Lists information about the supported locations for this service. + *

                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                              *
                                                                                @@ -923,6 +926,19 @@ public final UnaryCallable updateGeneratorCal /** * Lists information about the supported locations for this service. * + *

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                @@ -956,6 +972,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                   /**
                                                                                    * Lists information about the supported locations for this service.
                                                                                    *
                                                                                +   * 

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                @@ -990,6 +1019,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                   /**
                                                                                    * Lists information about the supported locations for this service.
                                                                                    *
                                                                                +   * 

                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                Sample code: * *

                                                                                {@code
                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                                index 0d1d6c959b05..91469ac7b216 100644
                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java
                                                                                @@ -228,7 +228,10 @@
                                                                                  *    
                                                                                  *    
                                                                                  *      

                                                                                ListLocations - *

                                                                                Lists information about the supported locations for this service. + *

                                                                                Lists information about the supported locations for this service. + *

                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                *
                                                                                  @@ -1854,6 +1857,19 @@ public final UnaryCallable batchDeleteInte /** * Lists information about the supported locations for this service. * + *

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  @@ -1887,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                     /**
                                                                                      * Lists information about the supported locations for this service.
                                                                                      *
                                                                                  +   * 

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  @@ -1920,6 +1949,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                     /**
                                                                                      * Lists information about the supported locations for this service.
                                                                                      *
                                                                                  +   * 

                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                  Sample code: * *

                                                                                  {@code
                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                                  index 9384a69ddb8d..dcad96966805 100644
                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java
                                                                                  @@ -168,7 +168,10 @@
                                                                                    *    
                                                                                    *    
                                                                                    *      

                                                                                  ListLocations - *

                                                                                  Lists information about the supported locations for this service. + *

                                                                                  Lists information about the supported locations for this service. + *

                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                  *
                                                                                    @@ -997,6 +1000,19 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques /** * Lists information about the supported locations for this service. * + *

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    @@ -1030,6 +1046,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                       /**
                                                                                        * Lists information about the supported locations for this service.
                                                                                        *
                                                                                    +   * 

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    @@ -1064,6 +1093,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                       /**
                                                                                        * Lists information about the supported locations for this service.
                                                                                        *
                                                                                    +   * 

                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                    Sample code: * *

                                                                                    {@code
                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                                    index c808a90a795e..1c4f2e224e28 100644
                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java
                                                                                    @@ -254,7 +254,10 @@
                                                                                      *    
                                                                                      *    
                                                                                      *      

                                                                                    ListLocations - *

                                                                                    Lists information about the supported locations for this service. + *

                                                                                    Lists information about the supported locations for this service. + *

                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                    *
                                                                                      @@ -1269,6 +1272,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .setCxParameters(Struct.newBuilder().build()) * .setEnableExtendedStreaming(true) * .setEnablePartialAutomatedAgentReply(true) + * .setOutputMultipleUtterances(true) * .setEnableDebuggingInfo(true) * .build(); * bidiStream.send(request); @@ -1783,6 +1787,19 @@ public final SuggestKnowledgeAssistResponse suggestKnowledgeAssist( /** * Lists information about the supported locations for this service. * + *

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      @@ -1816,6 +1833,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                         /**
                                                                                          * Lists information about the supported locations for this service.
                                                                                          *
                                                                                      +   * 

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      @@ -1850,6 +1880,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                         /**
                                                                                          * Lists information about the supported locations for this service.
                                                                                          *
                                                                                      +   * 

                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                      Sample code: * *

                                                                                      {@code
                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                                      index 323de706dda9..1d242260d5f5 100644
                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java
                                                                                      @@ -175,7 +175,10 @@
                                                                                        *    
                                                                                        *    
                                                                                        *      

                                                                                      ListLocations - *

                                                                                      Lists information about the supported locations for this service. + *

                                                                                      Lists information about the supported locations for this service. + *

                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      *
                                                                                        @@ -1086,6 +1089,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        @@ -1119,6 +1135,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                           /**
                                                                                            * Lists information about the supported locations for this service.
                                                                                            *
                                                                                        +   * 

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        @@ -1153,6 +1182,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                           /**
                                                                                            * Lists information about the supported locations for this service.
                                                                                            *
                                                                                        +   * 

                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                        Sample code: * *

                                                                                        {@code
                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                        index 750a8a23d545..f959485f41c0 100644
                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java
                                                                                        @@ -105,7 +105,10 @@
                                                                                          *    
                                                                                          *    
                                                                                          *      

                                                                                        ListLocations - *

                                                                                        Lists information about the supported locations for this service. + *

                                                                                        Lists information about the supported locations for this service. + *

                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                        *
                                                                                          @@ -490,6 +493,19 @@ public final UnaryCallable detectInte /** * Lists information about the supported locations for this service. * + *

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          @@ -523,6 +539,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                             /**
                                                                                              * Lists information about the supported locations for this service.
                                                                                              *
                                                                                          +   * 

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          @@ -556,6 +585,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                             /**
                                                                                              * Lists information about the supported locations for this service.
                                                                                              *
                                                                                          +   * 

                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                          Sample code: * *

                                                                                          {@code
                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                          index 5f24d6a8a58a..655e68435be5 100644
                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java
                                                                                          @@ -165,7 +165,10 @@
                                                                                            *    
                                                                                            *    
                                                                                            *      

                                                                                          ListLocations - *

                                                                                          Lists information about the supported locations for this service. + *

                                                                                          Lists information about the supported locations for this service. + *

                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                          *
                                                                                            @@ -888,6 +891,19 @@ public final UnaryCallable updateSipTrunkCallab /** * Lists information about the supported locations for this service. * + *

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -921,6 +937,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            @@ -954,6 +983,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                               /**
                                                                                                * Lists information about the supported locations for this service.
                                                                                                *
                                                                                            +   * 

                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                            Sample code: * *

                                                                                            {@code
                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                            index 6c9cae7ff2b1..16d8192d8710 100644
                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java
                                                                                            @@ -167,7 +167,10 @@
                                                                                              *    
                                                                                              *    
                                                                                              *      

                                                                                            ListLocations - *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            Lists information about the supported locations for this service. + *

                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                            *
                                                                                              @@ -905,6 +908,19 @@ public final UnaryCallable updateToolCallable() { /** * Lists information about the supported locations for this service. * + *

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -938,6 +954,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              @@ -971,6 +1000,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                 /**
                                                                                                  * Lists information about the supported locations for this service.
                                                                                                  *
                                                                                              +   * 

                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                              Sample code: * *

                                                                                              {@code
                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                              index 634193d2cd67..eac319a2bee0 100644
                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java
                                                                                              @@ -166,7 +166,10 @@
                                                                                                *    
                                                                                                *    
                                                                                                *      

                                                                                              ListLocations - *

                                                                                              Lists information about the supported locations for this service. + *

                                                                                              Lists information about the supported locations for this service. + *

                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                              *
                                                                                                @@ -920,6 +923,19 @@ public final UnaryCallable deleteVersionCallable() /** * Lists information about the supported locations for this service. * + *

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                @@ -953,6 +969,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                   /**
                                                                                                    * Lists information about the supported locations for this service.
                                                                                                    *
                                                                                                +   * 

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                @@ -986,6 +1015,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                   /**
                                                                                                    * Lists information about the supported locations for this service.
                                                                                                    *
                                                                                                +   * 

                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                Sample code: * *

                                                                                                {@code
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                                index 11f84fe8ec79..6e7f1ec41776 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java
                                                                                                @@ -499,6 +499,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                                index f46b346ad45c..e4bfcc0208e2 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java
                                                                                                @@ -388,6 +388,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                                index 6b35d73837f9..633f0e73be37 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java
                                                                                                @@ -408,6 +408,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                                index a24793d8c869..be6c017d0ced 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java
                                                                                                @@ -518,6 +518,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                                index 5ff7f3218cbb..78c2ecba5550 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java
                                                                                                @@ -671,6 +671,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                                index 2e1ae88d29a6..6729a9a774b0 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java
                                                                                                @@ -526,6 +526,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                                index e8be9260a76d..2aa9e1c51424 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java
                                                                                                @@ -541,6 +541,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                                index c5203d085ef5..670a8bd75858 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java
                                                                                                @@ -512,6 +512,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                                index 15fada7873cc..9c2ebfe29985 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java
                                                                                                @@ -376,6 +376,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                                index 6782448113c0..6a3393c0c7fe 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java
                                                                                                @@ -539,6 +539,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                                index 1d0c86a6e111..8dacba277ec1 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java
                                                                                                @@ -484,6 +484,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                                index 556b59ab6e17..e8cfcbb75299 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java
                                                                                                @@ -322,6 +322,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                                index c1ee36218207..f5d1411557d2 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java
                                                                                                @@ -477,6 +477,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                                index 9fce8a102bf6..4d15183cf2cf 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java
                                                                                                @@ -404,6 +404,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                                index 137d33b5ff99..3c99c9a9dbc9 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java
                                                                                                @@ -239,6 +239,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings setAgentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -259,6 +260,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings searchAgentsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -269,6 +271,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings trainAgentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -279,6 +282,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings exportAgentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -289,6 +293,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings importAgentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -299,6 +304,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings restoreAgentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -309,6 +315,7 @@ protected GrpcAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         getValidationResultTransportSettings =
                                                                                                @@ -320,6 +327,7 @@ protected GrpcAgentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                                index 30867a5aa72a..dc9f0f82bc1b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java
                                                                                                @@ -155,6 +155,7 @@ protected GrpcAnswerRecordsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings updateAnswerRecordTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                                index 6566a6cba27f..d9f26ea4c0b1 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java
                                                                                                @@ -198,6 +198,7 @@ protected GrpcContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getContextTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -208,6 +209,7 @@ protected GrpcContextsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createContextTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -218,6 +220,7 @@ protected GrpcContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateContextTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -238,6 +241,7 @@ protected GrpcContextsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings deleteAllContextsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -248,6 +252,7 @@ protected GrpcContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                                index f5a90ad46e3e..d2775a898815 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationDatasetsStub.java
                                                                                                @@ -240,6 +240,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         listConversationDatasetsTransportSettings =
                                                                                                @@ -252,6 +253,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         deleteConversationDatasetTransportSettings =
                                                                                                @@ -263,6 +265,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         importConversationDataTransportSettings =
                                                                                                @@ -274,6 +277,7 @@ protected GrpcConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                                index 16d26f41cda6..5f5194406fe9 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationModelsStub.java
                                                                                                @@ -404,6 +404,7 @@ protected GrpcConversationModelsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                                index 6c7d285336a2..03713f7b7dab 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java
                                                                                                @@ -257,6 +257,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         getConversationProfileTransportSettings =
                                                                                                @@ -268,6 +269,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         createConversationProfileTransportSettings =
                                                                                                @@ -279,6 +281,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         updateConversationProfileTransportSettings =
                                                                                                @@ -303,6 +306,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         setSuggestionFeatureConfigTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                                index c878639edf3a..aec9c4a6d013 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java
                                                                                                @@ -306,6 +306,7 @@ protected GrpcConversationsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         listConversationsTransportSettings =
                                                                                                @@ -317,6 +318,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings getConversationTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -327,6 +329,7 @@ protected GrpcConversationsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         completeConversationTransportSettings =
                                                                                                @@ -338,6 +341,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         ingestContextReferencesTransportSettings =
                                                                                                @@ -350,6 +354,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listMessagesTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -360,6 +365,7 @@ protected GrpcConversationsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         suggestConversationSummaryTransportSettings =
                                                                                                @@ -372,6 +378,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         generateStatelessSummaryTransportSettings =
                                                                                                @@ -386,6 +393,7 @@ protected GrpcConversationsStub(
                                                                                                                           String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         generateStatelessSuggestionTransportSettings =
                                                                                                @@ -399,6 +407,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         searchKnowledgeTransportSettings =
                                                                                                @@ -411,6 +420,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         generateSuggestionsTransportSettings =
                                                                                                @@ -422,6 +432,7 @@ protected GrpcConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                                index 80cd394c9225..cbdd594cbb9e 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java
                                                                                                @@ -246,6 +246,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getDocumentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -256,6 +257,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createDocumentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -266,6 +268,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings importDocumentsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -276,6 +279,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings deleteDocumentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -286,6 +290,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateDocumentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -306,6 +311,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings exportDocumentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -316,6 +322,7 @@ protected GrpcDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                index 55e38c50d9c4..e94213585506 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                @@ -162,6 +162,7 @@ protected GrpcEncryptionSpecServiceStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         initializeEncryptionSpecTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                                index 29b839787529..296e6af9dfbd 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java
                                                                                                @@ -277,6 +277,7 @@ protected GrpcEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings getEntityTypeTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -287,6 +288,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createEntityTypeTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -297,6 +299,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateEntityTypeTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -318,6 +321,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         batchUpdateEntityTypesTransportSettings =
                                                                                                @@ -329,6 +333,7 @@ protected GrpcEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         batchDeleteEntityTypesTransportSettings =
                                                                                                @@ -340,6 +345,7 @@ protected GrpcEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings batchCreateEntitiesTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -350,6 +356,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings batchUpdateEntitiesTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -360,6 +367,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings batchDeleteEntitiesTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -370,6 +378,7 @@ protected GrpcEntityTypesStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                                index a00a9e03fe46..f0758fde81fe 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java
                                                                                                @@ -213,6 +213,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings getEnvironmentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -223,6 +224,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createEnvironmentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -233,6 +235,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateEnvironmentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -254,6 +257,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         getEnvironmentHistoryTransportSettings =
                                                                                                @@ -265,6 +269,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                                index 018f8387623f..b05c1c4b0034 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java
                                                                                                @@ -148,6 +148,7 @@ protected GrpcFulfillmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateFulfillmentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                index b7083595a76b..aeb2272c422b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                @@ -203,6 +203,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         getGeneratorEvaluationTransportSettings =
                                                                                                @@ -214,6 +215,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         listGeneratorEvaluationsTransportSettings =
                                                                                                @@ -226,6 +228,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         deleteGeneratorEvaluationTransportSettings =
                                                                                                @@ -237,6 +240,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                                index ad3d92954486..883e83935e94 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcGeneratorsStub.java
                                                                                                @@ -192,6 +192,7 @@ protected GrpcGeneratorsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getGeneratorTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -202,6 +203,7 @@ protected GrpcGeneratorsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         listGeneratorsTransportSettings =
                                                                                                @@ -213,6 +215,7 @@ protected GrpcGeneratorsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings deleteGeneratorTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -223,6 +226,7 @@ protected GrpcGeneratorsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateGeneratorTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                                index 7f57f633ce42..05ad013b7052 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java
                                                                                                @@ -215,6 +215,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getIntentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -225,6 +226,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createIntentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -235,6 +237,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateIntentTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -255,6 +258,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings batchUpdateIntentsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -265,6 +269,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings batchDeleteIntentsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -275,6 +280,7 @@ protected GrpcIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                                index 781c0e105a2d..128a668eab46 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java
                                                                                                @@ -199,6 +199,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings getKnowledgeBaseTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -209,6 +210,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         createKnowledgeBaseTransportSettings =
                                                                                                @@ -220,6 +222,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -230,6 +233,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         updateKnowledgeBaseTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                                index 1d5e4058e028..13d899dd3509 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java
                                                                                                @@ -281,6 +281,7 @@ protected GrpcParticipantsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getParticipantTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -291,6 +292,7 @@ protected GrpcParticipantsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         listParticipantsTransportSettings =
                                                                                                @@ -302,6 +304,7 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings updateParticipantTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -324,12 +327,14 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         streamingAnalyzeContentTransportSettings =
                                                                                                             GrpcCallSettings
                                                                                                                 .newBuilder()
                                                                                                                 .setMethodDescriptor(streamingAnalyzeContentMethodDescriptor)
                                                                                                +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         suggestArticlesTransportSettings =
                                                                                                @@ -341,6 +346,7 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         suggestFaqAnswersTransportSettings =
                                                                                                @@ -352,6 +358,7 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         suggestSmartRepliesTransportSettings =
                                                                                                @@ -363,6 +370,7 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         suggestKnowledgeAssistTransportSettings =
                                                                                                @@ -375,6 +383,7 @@ protected GrpcParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                                index f803e4edeaeb..1ffe2c5e1f82 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java
                                                                                                @@ -209,6 +209,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         getSessionEntityTypeTransportSettings =
                                                                                                @@ -220,6 +221,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         createSessionEntityTypeTransportSettings =
                                                                                                @@ -231,6 +233,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings
                                                                                                         updateSessionEntityTypeTransportSettings =
                                                                                                @@ -255,6 +258,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                                index 0b48483b1aa6..36702573e854 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java
                                                                                                @@ -149,12 +149,14 @@ protected GrpcSessionsStub(
                                                                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                             .build();
                                                                                                     GrpcCallSettings
                                                                                                         streamingDetectIntentTransportSettings =
                                                                                                             GrpcCallSettings
                                                                                                                 .newBuilder()
                                                                                                                 .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                                                                +                .setResourceNameExtractor(request -> request.getSession())
                                                                                                                 .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                                index 343b65f36936..8e97cd0e9897 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSipTrunksStub.java
                                                                                                @@ -190,6 +190,7 @@ protected GrpcSipTrunksStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings deleteSipTrunkTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -200,6 +201,7 @@ protected GrpcSipTrunksStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listSipTrunksTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -210,6 +212,7 @@ protected GrpcSipTrunksStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getSipTrunkTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -220,6 +223,7 @@ protected GrpcSipTrunksStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateSipTrunkTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                                index b1f1749035fb..af05c78c010b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcToolsStub.java
                                                                                                @@ -179,6 +179,7 @@ protected GrpcToolsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getToolTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -189,6 +190,7 @@ protected GrpcToolsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listToolsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -199,6 +201,7 @@ protected GrpcToolsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings deleteToolTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -209,6 +212,7 @@ protected GrpcToolsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateToolTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                                index 113c1406962a..4af039edad96 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java
                                                                                                @@ -185,6 +185,7 @@ protected GrpcVersionsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings getVersionTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -195,6 +196,7 @@ protected GrpcVersionsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings createVersionTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -205,6 +207,7 @@ protected GrpcVersionsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     GrpcCallSettings updateVersionTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                @@ -225,6 +228,7 @@ protected GrpcVersionsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     GrpcCallSettings listLocationsTransportSettings =
                                                                                                         GrpcCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                                index 08040c5fe865..6959b47815ae 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAgentsStub.java
                                                                                                @@ -599,6 +599,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings setAgentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -621,6 +622,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings searchAgentsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -632,6 +634,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings trainAgentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -643,6 +646,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings exportAgentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -654,6 +658,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings importAgentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -665,6 +670,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings restoreAgentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -676,6 +682,7 @@ protected HttpJsonAgentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         getValidationResultTransportSettings =
                                                                                                @@ -688,6 +695,7 @@ protected HttpJsonAgentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                                index 2427a91e0675..034cbf6d1bcd 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonAnswerRecordsStub.java
                                                                                                @@ -268,6 +268,7 @@ protected HttpJsonAnswerRecordsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         updateAnswerRecordTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                                index f59fbf9145a6..068800c078ba 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonContextsStub.java
                                                                                                @@ -432,6 +432,7 @@ protected HttpJsonContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getContextTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -443,6 +444,7 @@ protected HttpJsonContextsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createContextTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -454,6 +456,7 @@ protected HttpJsonContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateContextTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -476,6 +479,7 @@ protected HttpJsonContextsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings deleteAllContextsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -487,6 +491,7 @@ protected HttpJsonContextsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                                index 47c08939721f..e8adc8d5e6c7 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationDatasetsStub.java
                                                                                                @@ -484,6 +484,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listConversationDatasetsTransportSettings =
                                                                                                @@ -497,6 +498,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         deleteConversationDatasetTransportSettings =
                                                                                                @@ -509,6 +511,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         importConversationDataTransportSettings =
                                                                                                @@ -521,6 +524,7 @@ protected HttpJsonConversationDatasetsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                                index 5252806e1b01..0f83b4877603 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationModelsStub.java
                                                                                                @@ -765,6 +765,7 @@ protected HttpJsonConversationModelsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                                index 53207a7f6dff..a33bf0511c5b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationProfilesStub.java
                                                                                                @@ -567,6 +567,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         getConversationProfileTransportSettings =
                                                                                                @@ -579,6 +580,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         createConversationProfileTransportSettings =
                                                                                                @@ -591,6 +593,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         updateConversationProfileTransportSettings =
                                                                                                @@ -617,6 +620,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         setSuggestionFeatureConfigTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                                index 2b205b2322bc..42e6b4ea19c8 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonConversationsStub.java
                                                                                                @@ -673,6 +673,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listConversationsTransportSettings =
                                                                                                @@ -685,6 +686,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getConversationTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -696,6 +698,7 @@ protected HttpJsonConversationsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         completeConversationTransportSettings =
                                                                                                @@ -708,6 +711,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         ingestContextReferencesTransportSettings =
                                                                                                @@ -721,6 +725,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings listMessagesTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -732,6 +737,7 @@ protected HttpJsonConversationsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         suggestConversationSummaryTransportSettings =
                                                                                                @@ -745,6 +751,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         generateStatelessSummaryTransportSettings =
                                                                                                @@ -760,6 +767,7 @@ protected HttpJsonConversationsStub(
                                                                                                                           String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         generateStatelessSuggestionTransportSettings =
                                                                                                @@ -774,6 +782,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         searchKnowledgeTransportSettings =
                                                                                                @@ -787,6 +796,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         generateSuggestionsTransportSettings =
                                                                                                @@ -800,6 +810,7 @@ protected HttpJsonConversationsStub(
                                                                                                                       builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                                index 824daae72353..14040252e63e 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonDocumentsStub.java
                                                                                                @@ -594,6 +594,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getDocumentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -605,6 +606,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createDocumentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -616,6 +618,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings importDocumentsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -627,6 +630,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings deleteDocumentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -638,6 +642,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateDocumentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -660,6 +665,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings exportDocumentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -671,6 +677,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                index 29b24041921b..e5776356c12c 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                @@ -318,6 +318,7 @@ protected HttpJsonEncryptionSpecServiceStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         initializeEncryptionSpecTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                                index a25f9e76c644..1e0eddde0fa9 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEntityTypesStub.java
                                                                                                @@ -671,6 +671,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getEntityTypeTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -682,6 +683,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createEntityTypeTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -693,6 +695,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -716,6 +719,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         batchUpdateEntityTypesTransportSettings =
                                                                                                @@ -728,6 +732,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         batchDeleteEntityTypesTransportSettings =
                                                                                                @@ -740,6 +745,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         batchCreateEntitiesTransportSettings =
                                                                                                @@ -752,6 +758,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         batchUpdateEntitiesTransportSettings =
                                                                                                @@ -764,6 +771,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         batchDeleteEntitiesTransportSettings =
                                                                                                @@ -776,6 +784,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                                index e0e4af2eaf04..1eaf6ad67626 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonEnvironmentsStub.java
                                                                                                @@ -433,6 +433,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getEnvironmentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -444,6 +445,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createEnvironmentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -455,6 +457,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -478,6 +481,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         getEnvironmentHistoryTransportSettings =
                                                                                                @@ -490,6 +494,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                                index 2c02d9690456..5a8803d40cad 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonFulfillmentsStub.java
                                                                                                @@ -259,6 +259,7 @@ protected HttpJsonFulfillmentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateFulfillmentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                index 49504acd24cb..221f350daf1b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                @@ -404,6 +404,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         getGeneratorEvaluationTransportSettings =
                                                                                                @@ -416,6 +417,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listGeneratorEvaluationsTransportSettings =
                                                                                                @@ -429,6 +431,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         deleteGeneratorEvaluationTransportSettings =
                                                                                                @@ -441,6 +444,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                                index a7764a2c1867..b0b96a3a835b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonGeneratorsStub.java
                                                                                                @@ -378,6 +378,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getGeneratorTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -389,6 +390,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listGeneratorsTransportSettings =
                                                                                                @@ -401,6 +403,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings deleteGeneratorTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -412,6 +415,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateGeneratorTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                                index 33c0cdb2e302..a3939a23ef10 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonIntentsStub.java
                                                                                                @@ -534,6 +534,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getIntentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -545,6 +546,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createIntentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -556,6 +558,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateIntentTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -578,6 +581,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings batchUpdateIntentsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -589,6 +593,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings batchDeleteIntentsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -600,6 +605,7 @@ protected HttpJsonIntentsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                index 1bb4785113b8..2d2829cbb6bb 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                @@ -395,6 +395,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getKnowledgeBaseTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -406,6 +407,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         createKnowledgeBaseTransportSettings =
                                                                                                @@ -418,6 +420,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -429,6 +432,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         updateKnowledgeBaseTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                                index e52dfbc87b55..f63623993a8d 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonParticipantsStub.java
                                                                                                @@ -567,6 +567,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getParticipantTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -578,6 +579,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listParticipantsTransportSettings =
                                                                                                @@ -590,6 +592,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings updateParticipantTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -614,6 +617,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         suggestArticlesTransportSettings =
                                                                                                @@ -626,6 +630,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         suggestFaqAnswersTransportSettings =
                                                                                                @@ -638,6 +643,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         suggestSmartRepliesTransportSettings =
                                                                                                @@ -651,6 +657,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         suggestKnowledgeAssistTransportSettings =
                                                                                                @@ -664,6 +671,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                index 7e9ba12c20e2..35e6fc5c7f2d 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                @@ -414,6 +414,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         getSessionEntityTypeTransportSettings =
                                                                                                @@ -426,6 +427,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         createSessionEntityTypeTransportSettings =
                                                                                                @@ -438,6 +440,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         updateSessionEntityTypeTransportSettings =
                                                                                                @@ -464,6 +467,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                       builder.add("name", String.valueOf(request.getName()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                                index d18edf0c8559..fff512ebd05b 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSessionsStub.java
                                                                                                @@ -224,6 +224,7 @@ protected HttpJsonSessionsStub(
                                                                                                                   builder.add("session", String.valueOf(request.getSession()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                                index 419f5cf193ba..f105008e443c 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonSipTrunksStub.java
                                                                                                @@ -373,6 +373,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings deleteSipTrunkTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -384,6 +385,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listSipTrunksTransportSettings =
                                                                                                @@ -396,6 +398,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                       builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                       return builder.build();
                                                                                                                     })
                                                                                                +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                 .build();
                                                                                                     HttpJsonCallSettings getSipTrunkTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -407,6 +410,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateSipTrunkTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                                index c84e159e5297..79a94d8850dd 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonToolsStub.java
                                                                                                @@ -364,6 +364,7 @@ protected HttpJsonToolsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getToolTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -375,6 +376,7 @@ protected HttpJsonToolsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings listToolsTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -386,6 +388,7 @@ protected HttpJsonToolsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings deleteToolTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -397,6 +400,7 @@ protected HttpJsonToolsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateToolTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                                index 493496e4aac5..59fe04992ad1 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/HttpJsonVersionsStub.java
                                                                                                @@ -378,6 +378,7 @@ protected HttpJsonVersionsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings getVersionTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -389,6 +390,7 @@ protected HttpJsonVersionsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings createVersionTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -400,6 +402,7 @@ protected HttpJsonVersionsStub(
                                                                                                                   builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings updateVersionTransportSettings =
                                                                                                         HttpJsonCallSettings.newBuilder()
                                                                                                @@ -422,6 +425,7 @@ protected HttpJsonVersionsStub(
                                                                                                                   builder.add("name", String.valueOf(request.getName()));
                                                                                                                   return builder.build();
                                                                                                                 })
                                                                                                +            .setResourceNameExtractor(request -> request.getName())
                                                                                                             .build();
                                                                                                     HttpJsonCallSettings
                                                                                                         listLocationsTransportSettings =
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                                index 34820746d926..b401e4c56f12 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java
                                                                                                @@ -467,6 +467,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                                index 58f09fd6e0b2..9c6606a02f6f 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java
                                                                                                @@ -416,6 +416,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                                index 451a42a74ca6..b0849d85485f 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java
                                                                                                @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                                index c19bcf646eca..09b1b92844f8 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java
                                                                                                @@ -434,6 +434,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                                index 36d1d5398cb3..1a1e324d1c16 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java
                                                                                                @@ -323,6 +323,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                                index 780fa6e90961..c6fdb13904f9 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java
                                                                                                @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                                index 2913369f2726..1471202e8591 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java
                                                                                                @@ -399,6 +399,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java
                                                                                                new file mode 100644
                                                                                                index 000000000000..286cf86ef8b6
                                                                                                --- /dev/null
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java
                                                                                                @@ -0,0 +1,27 @@
                                                                                                +/*
                                                                                                + * Copyright 2026 Google LLC
                                                                                                + *
                                                                                                + * Licensed under the Apache License, Version 2.0 (the "License");
                                                                                                + * you may not use this file except in compliance with the License.
                                                                                                + * You may obtain a copy of the License at
                                                                                                + *
                                                                                                + *      https://www.apache.org/licenses/LICENSE-2.0
                                                                                                + *
                                                                                                + * Unless required by applicable law or agreed to in writing, software
                                                                                                + * distributed under the License is distributed on an "AS IS" BASIS,
                                                                                                + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                                                                + * See the License for the specific language governing permissions and
                                                                                                + * limitations under the License.
                                                                                                + */
                                                                                                +
                                                                                                +package com.google.cloud.dialogflow.v2.stub;
                                                                                                +
                                                                                                +import com.google.api.core.InternalApi;
                                                                                                +
                                                                                                +@InternalApi("For internal use only")
                                                                                                +final class Version {
                                                                                                +  // {x-version-update-start:google-cloud-dialogflow:current}
                                                                                                +  static final String VERSION = "0.0.0-SNAPSHOT";
                                                                                                +  // {x-version-update-end}
                                                                                                +
                                                                                                +}
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                                index 093268ffc21d..c97243a33f69 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java
                                                                                                @@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                     return LibraryMetadata.newBuilder()
                                                                                                         .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                         .setRepository("googleapis/google-cloud-java")
                                                                                                +        .setVersion(com.google.cloud.dialogflow.v2.stub.Version.VERSION)
                                                                                                         .build();
                                                                                                   }
                                                                                                 
                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                                index 244456e9b99a..a1d9016b8c9c 100644
                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java
                                                                                                @@ -255,7 +255,10 @@
                                                                                                  *    
                                                                                                  *    
                                                                                                  *      

                                                                                                ListLocations - *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                Lists information about the supported locations for this service. + *

                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                *
                                                                                                  @@ -1808,6 +1811,19 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  @@ -1841,6 +1857,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                     /**
                                                                                                      * Lists information about the supported locations for this service.
                                                                                                      *
                                                                                                  +   * 

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  @@ -1874,6 +1903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                     /**
                                                                                                      * Lists information about the supported locations for this service.
                                                                                                      *
                                                                                                  +   * 

                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                  Sample code: * *

                                                                                                  {@code
                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                                  index 56a844afcd40..e2053860f98f 100644
                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java
                                                                                                  @@ -124,7 +124,10 @@
                                                                                                    *    
                                                                                                    *    
                                                                                                    *      

                                                                                                  ListLocations - *

                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                  *
                                                                                                    @@ -610,6 +613,19 @@ public final UnaryCallable updateAnswer /** * Lists information about the supported locations for this service. * + *

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    @@ -643,6 +659,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                       /**
                                                                                                        * Lists information about the supported locations for this service.
                                                                                                        *
                                                                                                    +   * 

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    @@ -677,6 +706,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                       /**
                                                                                                        * Lists information about the supported locations for this service.
                                                                                                        *
                                                                                                    +   * 

                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                    Sample code: * *

                                                                                                    {@code
                                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                                    index a32c027a715b..83942101a190 100644
                                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
                                                                                                    @@ -187,7 +187,10 @@
                                                                                                      *    
                                                                                                      *    
                                                                                                      *      

                                                                                                    ListLocations - *

                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                    *
                                                                                                      @@ -1153,6 +1156,19 @@ public final UnaryCallable deleteAllContextsCal /** * Lists information about the supported locations for this service. * + *

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      @@ -1186,6 +1202,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                         /**
                                                                                                          * Lists information about the supported locations for this service.
                                                                                                          *
                                                                                                      +   * 

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      @@ -1219,6 +1248,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                         /**
                                                                                                          * Lists information about the supported locations for this service.
                                                                                                          *
                                                                                                      +   * 

                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                      Sample code: * *

                                                                                                      {@code
                                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                                      index 61e8a68628ff..4f43c5d878fc 100644
                                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java
                                                                                                      @@ -223,7 +223,10 @@
                                                                                                        *    
                                                                                                        *    
                                                                                                        *      

                                                                                                      ListLocations - *

                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                      *
                                                                                                        @@ -1645,6 +1648,19 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        @@ -1679,6 +1695,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                           /**
                                                                                                            * Lists information about the supported locations for this service.
                                                                                                            *
                                                                                                        +   * 

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        @@ -1714,6 +1743,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                           /**
                                                                                                            * Lists information about the supported locations for this service.
                                                                                                            *
                                                                                                        +   * 

                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                        Sample code: * *

                                                                                                        {@code
                                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                        index 1d24143f90dd..b3ba35035005 100644
                                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java
                                                                                                        @@ -289,7 +289,10 @@
                                                                                                          *    
                                                                                                          *    
                                                                                                          *      

                                                                                                        ListLocations - *

                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                        *
                                                                                                          @@ -2110,6 +2113,19 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions /** * Lists information about the supported locations for this service. * + *

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          @@ -2143,6 +2159,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                             /**
                                                                                                              * Lists information about the supported locations for this service.
                                                                                                              *
                                                                                                          +   * 

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          @@ -2177,6 +2206,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                             /**
                                                                                                              * Lists information about the supported locations for this service.
                                                                                                              *
                                                                                                          +   * 

                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                          Sample code: * *

                                                                                                          {@code
                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                          index e3056a19dbc5..1cd765c617fe 100644
                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java
                                                                                                          @@ -227,7 +227,10 @@
                                                                                                            *    
                                                                                                            *    
                                                                                                            *      

                                                                                                          ListLocations - *

                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                          *
                                                                                                            @@ -1728,6 +1731,19 @@ public final UnaryCallable reloadDocumentCalla /** * Lists information about the supported locations for this service. * + *

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            @@ -1761,6 +1777,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                               /**
                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                *
                                                                                                            +   * 

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            @@ -1794,6 +1823,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                               /**
                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                *
                                                                                                            +   * 

                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                            Sample code: * *

                                                                                                            {@code
                                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                            index 8a471a0654b0..9132a17ebc25 100644
                                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java
                                                                                                            @@ -112,7 +112,10 @@
                                                                                                              *    
                                                                                                              *    
                                                                                                              *      

                                                                                                            ListLocations - *

                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                            *
                                                                                                              @@ -533,6 +536,19 @@ public final UnaryCallable getEncrypti /** * Lists information about the supported locations for this service. * + *

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              @@ -567,6 +583,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                 /**
                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                  *
                                                                                                              +   * 

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              @@ -602,6 +631,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                 /**
                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                  *
                                                                                                              +   * 

                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                              Sample code: * *

                                                                                                              {@code
                                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                              index cf04fd3baaab..c2baf76d7358 100644
                                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java
                                                                                                              @@ -298,7 +298,10 @@
                                                                                                                *    
                                                                                                                *    
                                                                                                                *      

                                                                                                              ListLocations - *

                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                              *
                                                                                                                @@ -2795,6 +2798,19 @@ public final UnaryCallable batchDeleteEnt /** * Lists information about the supported locations for this service. * + *

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                @@ -2828,6 +2844,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                   /**
                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                    *
                                                                                                                +   * 

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                @@ -2862,6 +2891,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                   /**
                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                    *
                                                                                                                +   * 

                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                Sample code: * *

                                                                                                                {@code
                                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                                index b174b5f24699..64a7b01939e3 100644
                                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java
                                                                                                                @@ -166,7 +166,10 @@
                                                                                                                  *    
                                                                                                                  *    
                                                                                                                  *      

                                                                                                                ListLocations - *

                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                *
                                                                                                                  @@ -833,6 +836,19 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( /** * Lists information about the supported locations for this service. * + *

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  @@ -866,6 +882,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                     /**
                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                      *
                                                                                                                  +   * 

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  @@ -900,6 +929,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                     /**
                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                      *
                                                                                                                  +   * 

                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                  Sample code: * *

                                                                                                                  {@code
                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                                  index df68576c0cb5..7f079a0bd964 100644
                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java
                                                                                                                  @@ -107,7 +107,10 @@
                                                                                                                    *    
                                                                                                                    *    
                                                                                                                    *      

                                                                                                                  ListLocations - *

                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                  *
                                                                                                                    @@ -446,6 +449,19 @@ public final UnaryCallable updateFulfillm /** * Lists information about the supported locations for this service. * + *

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    @@ -479,6 +495,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                       /**
                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                        *
                                                                                                                    +   * 

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    @@ -513,6 +542,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                       /**
                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                        *
                                                                                                                    +   * 

                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                    Sample code: * *

                                                                                                                    {@code
                                                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                                    index a65b7c00f4b7..bae33359a342 100644
                                                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java
                                                                                                                    @@ -154,7 +154,10 @@
                                                                                                                      *    
                                                                                                                      *    
                                                                                                                      *      

                                                                                                                    ListLocations - *

                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                    *
                                                                                                                      @@ -934,6 +937,19 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req /** * Lists information about the supported locations for this service. * + *

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      @@ -968,6 +984,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                         /**
                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                          *
                                                                                                                      +   * 

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      @@ -1003,6 +1032,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                         /**
                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                          *
                                                                                                                      +   * 

                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                      Sample code: * *

                                                                                                                      {@code
                                                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                                      index 032b840c5370..53de3a85af25 100644
                                                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java
                                                                                                                      @@ -170,7 +170,10 @@
                                                                                                                        *    
                                                                                                                        *    
                                                                                                                        *      

                                                                                                                      ListLocations - *

                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                      *
                                                                                                                        @@ -925,6 +928,19 @@ public final UnaryCallable updateGeneratorCal /** * Lists information about the supported locations for this service. * + *

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        @@ -958,6 +974,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                           /**
                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                            *
                                                                                                                        +   * 

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        @@ -992,6 +1021,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                           /**
                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                            *
                                                                                                                        +   * 

                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                        Sample code: * *

                                                                                                                        {@code
                                                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                        index 20b08728b2b6..a8fda931343c 100644
                                                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
                                                                                                                        @@ -230,7 +230,10 @@
                                                                                                                          *    
                                                                                                                          *    
                                                                                                                          *      

                                                                                                                        ListLocations - *

                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                        *
                                                                                                                          @@ -1942,6 +1945,19 @@ public final UnaryCallable batchDeleteInte /** * Lists information about the supported locations for this service. * + *

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          @@ -1975,6 +1991,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                             /**
                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                              *
                                                                                                                          +   * 

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          @@ -2008,6 +2037,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                             /**
                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                              *
                                                                                                                          +   * 

                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                          Sample code: * *

                                                                                                                          {@code
                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                          index 58effc6fe437..8305f3471e01 100644
                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java
                                                                                                                          @@ -175,7 +175,10 @@
                                                                                                                            *    
                                                                                                                            *    
                                                                                                                            *      

                                                                                                                          ListLocations - *

                                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                                          Lists information about the supported locations for this service. + *

                                                                                                                          This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                          *
                                                                                                                            @@ -1101,6 +1104,19 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques /** * Lists information about the supported locations for this service. * + *

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            @@ -1134,6 +1150,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                               /**
                                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                                *
                                                                                                                            +   * 

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            @@ -1168,6 +1197,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                               /**
                                                                                                                                * Lists information about the supported locations for this service.
                                                                                                                                *
                                                                                                                            +   * 

                                                                                                                            This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                            Sample code: * *

                                                                                                                            {@code
                                                                                                                            diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                            index fc03c19bcf11..244aaa9456ed 100644
                                                                                                                            --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                            +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java
                                                                                                                            @@ -300,7 +300,10 @@
                                                                                                                              *    
                                                                                                                              *    
                                                                                                                              *      

                                                                                                                            ListLocations - *

                                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                                            Lists information about the supported locations for this service. + *

                                                                                                                            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                            *
                                                                                                                              @@ -2128,6 +2131,19 @@ public final CompileSuggestionResponse compileSuggestion(CompileSuggestionReques /** * Lists information about the supported locations for this service. * + *

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              @@ -2161,6 +2177,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                 /**
                                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                                  *
                                                                                                                              +   * 

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              @@ -2195,6 +2224,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                 /**
                                                                                                                                  * Lists information about the supported locations for this service.
                                                                                                                                  *
                                                                                                                              +   * 

                                                                                                                              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                              Sample code: * *

                                                                                                                              {@code
                                                                                                                              diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                              index 0ce20ab276b9..0bb78e93ec1e 100644
                                                                                                                              --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                              +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java
                                                                                                                              @@ -148,7 +148,10 @@
                                                                                                                                *    
                                                                                                                                *    
                                                                                                                                *      

                                                                                                                              ListLocations - *

                                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                                              Lists information about the supported locations for this service. + *

                                                                                                                              This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                              * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                              For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                              *
                                                                                                                                @@ -854,6 +857,19 @@ public final PhoneNumber undeletePhoneNumber(UndeletePhoneNumberRequest request) /** * Lists information about the supported locations for this service. * + *

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                @@ -887,6 +903,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                   /**
                                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                                    *
                                                                                                                                +   * 

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                @@ -921,6 +950,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                   /**
                                                                                                                                    * Lists information about the supported locations for this service.
                                                                                                                                    *
                                                                                                                                +   * 

                                                                                                                                This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                Sample code: * *

                                                                                                                                {@code
                                                                                                                                diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                                index 98358cb7bf79..f186ab41e280 100644
                                                                                                                                --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                                +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
                                                                                                                                @@ -176,7 +176,10 @@
                                                                                                                                  *    
                                                                                                                                  *    
                                                                                                                                  *      

                                                                                                                                ListLocations - *

                                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                                Lists information about the supported locations for this service. + *

                                                                                                                                This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                *
                                                                                                                                  @@ -1132,6 +1135,19 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request /** * Lists information about the supported locations for this service. * + *

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  @@ -1165,6 +1181,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                     /**
                                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                                      *
                                                                                                                                  +   * 

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  @@ -1199,6 +1228,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                     /**
                                                                                                                                      * Lists information about the supported locations for this service.
                                                                                                                                      *
                                                                                                                                  +   * 

                                                                                                                                  This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                  Sample code: * *

                                                                                                                                  {@code
                                                                                                                                  diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                                  index 409fdc453fa6..c9bda589f8de 100644
                                                                                                                                  --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                                  +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java
                                                                                                                                  @@ -106,7 +106,10 @@
                                                                                                                                    *    
                                                                                                                                    *    
                                                                                                                                    *      

                                                                                                                                  ListLocations - *

                                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                                  Lists information about the supported locations for this service. + *

                                                                                                                                  This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                  * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                  For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                  *
                                                                                                                                    @@ -500,6 +503,19 @@ public final UnaryCallable detectInte /** * Lists information about the supported locations for this service. * + *

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    @@ -533,6 +549,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                       /**
                                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                                        *
                                                                                                                                    +   * 

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    @@ -566,6 +595,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                       /**
                                                                                                                                        * Lists information about the supported locations for this service.
                                                                                                                                        *
                                                                                                                                    +   * 

                                                                                                                                    This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                    Sample code: * *

                                                                                                                                    {@code
                                                                                                                                    diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                                    index e2ec6d8c5ff7..b76d81766279 100644
                                                                                                                                    --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                                    +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java
                                                                                                                                    @@ -166,7 +166,10 @@
                                                                                                                                      *    
                                                                                                                                      *    
                                                                                                                                      *      

                                                                                                                                    ListLocations - *

                                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                                    Lists information about the supported locations for this service. + *

                                                                                                                                    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                    * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                    *
                                                                                                                                      @@ -890,6 +893,19 @@ public final UnaryCallable updateSipTrunkCallab /** * Lists information about the supported locations for this service. * + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      @@ -923,6 +939,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                         /**
                                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                                          *
                                                                                                                                      +   * 

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      @@ -956,6 +985,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                         /**
                                                                                                                                          * Lists information about the supported locations for this service.
                                                                                                                                          *
                                                                                                                                      +   * 

                                                                                                                                      This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                      Sample code: * *

                                                                                                                                      {@code
                                                                                                                                      diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                                      index f705030ea888..b97defe0a0be 100644
                                                                                                                                      --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                                      +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java
                                                                                                                                      @@ -168,7 +168,10 @@
                                                                                                                                        *    
                                                                                                                                        *    
                                                                                                                                        *      

                                                                                                                                      ListLocations - *

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      Lists information about the supported locations for this service. + *

                                                                                                                                      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                      *
                                                                                                                                        @@ -907,6 +910,19 @@ public final UnaryCallable updateToolCallable() { /** * Lists information about the supported locations for this service. * + *

                                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                        Sample code: * *

                                                                                                                                        {@code
                                                                                                                                        @@ -940,6 +956,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                           /**
                                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                                            *
                                                                                                                                        +   * 

                                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                        Sample code: * *

                                                                                                                                        {@code
                                                                                                                                        @@ -973,6 +1002,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                           /**
                                                                                                                                            * Lists information about the supported locations for this service.
                                                                                                                                            *
                                                                                                                                        +   * 

                                                                                                                                        This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                        Sample code: * *

                                                                                                                                        {@code
                                                                                                                                        diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                        index d6f8700febe8..b49737579b00 100644
                                                                                                                                        --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                        +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java
                                                                                                                                        @@ -167,7 +167,10 @@
                                                                                                                                          *    
                                                                                                                                          *    
                                                                                                                                          *      

                                                                                                                                        ListLocations - *

                                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                                        Lists information about the supported locations for this service. + *

                                                                                                                                        This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *

                                                                                                                                        * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

                                                                                                                                        For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

                                                                                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                                                                        *
                                                                                                                                          @@ -917,6 +920,19 @@ public final UnaryCallable deleteVersionCallable() /** * Lists information about the supported locations for this service. * + *

                                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                          Sample code: * *

                                                                                                                                          {@code
                                                                                                                                          @@ -950,6 +966,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                             /**
                                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                                              *
                                                                                                                                          +   * 

                                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                          Sample code: * *

                                                                                                                                          {@code
                                                                                                                                          @@ -983,6 +1012,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                                                                                                                                             /**
                                                                                                                                              * Lists information about the supported locations for this service.
                                                                                                                                              *
                                                                                                                                          +   * 

                                                                                                                                          This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *

                                                                                                                                          * **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

                                                                                                                                          For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * *

                                                                                                                                          Sample code: * *

                                                                                                                                          {@code
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                          index 37ba9cf4aebb..8a47d2ed41ad 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java
                                                                                                                                          @@ -500,6 +500,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                          index a07653ac1d53..fbe45def25b3 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java
                                                                                                                                          @@ -402,6 +402,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                          index 4ccfd104559d..350d40f349da 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java
                                                                                                                                          @@ -409,6 +409,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                          index 356959fb9b54..78980be2b736 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java
                                                                                                                                          @@ -527,6 +527,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                          index bead6ed481ab..789c0ae9c287 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java
                                                                                                                                          @@ -553,6 +553,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                          index 39162151ad0a..135f2e37d858 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java
                                                                                                                                          @@ -496,6 +496,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                          index f87d0a16983c..3e0507173a09 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java
                                                                                                                                          @@ -377,6 +377,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                          index 92954a0780b3..94852265f5d1 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java
                                                                                                                                          @@ -540,6 +540,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                          index feb03e7d60b7..cfbadf40062d 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java
                                                                                                                                          @@ -485,6 +485,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                          index d6fddb2f737e..cc1d2ed227e7 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java
                                                                                                                                          @@ -323,6 +323,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                          index 5b09692755c2..54caa757ce6c 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java
                                                                                                                                          @@ -478,6 +478,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                          index 934b1f507e52..ab7552d6dcc0 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java
                                                                                                                                          @@ -405,6 +405,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                          index ce859237ca96..98e29ffc8291 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java
                                                                                                                                          @@ -241,6 +241,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings setAgentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -261,6 +262,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings searchAgentsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -271,6 +273,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings trainAgentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -281,6 +284,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings exportAgentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -291,6 +295,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings importAgentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -301,6 +306,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings restoreAgentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -311,6 +317,7 @@ protected GrpcAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   getValidationResultTransportSettings =
                                                                                                                                          @@ -322,6 +329,7 @@ protected GrpcAgentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                          index d63e07230fbd..26af644646ea 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java
                                                                                                                                          @@ -180,6 +180,7 @@ protected GrpcAnswerRecordsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings updateAnswerRecordTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                          index 0391decb4e03..e47b3bb1124f 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java
                                                                                                                                          @@ -200,6 +200,7 @@ protected GrpcContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getContextTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -210,6 +211,7 @@ protected GrpcContextsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createContextTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -220,6 +222,7 @@ protected GrpcContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateContextTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -240,6 +243,7 @@ protected GrpcContextsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings deleteAllContextsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -250,6 +254,7 @@ protected GrpcContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                          index a4865a127052..1322bd0cfca9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java
                                                                                                                                          @@ -259,6 +259,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   getConversationProfileTransportSettings =
                                                                                                                                          @@ -270,6 +271,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   createConversationProfileTransportSettings =
                                                                                                                                          @@ -281,6 +283,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   updateConversationProfileTransportSettings =
                                                                                                                                          @@ -305,6 +308,7 @@ protected GrpcConversationProfilesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   setSuggestionFeatureConfigTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                          index 91fabb397784..e45e675fd68d 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java
                                                                                                                                          @@ -328,6 +328,7 @@ protected GrpcConversationsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   listConversationsTransportSettings =
                                                                                                                                          @@ -339,6 +340,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings getConversationTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -349,6 +351,7 @@ protected GrpcConversationsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   completeConversationTransportSettings =
                                                                                                                                          @@ -360,6 +363,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   ingestContextReferencesTransportSettings =
                                                                                                                                          @@ -372,6 +376,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   batchCreateMessagesTransportSettings =
                                                                                                                                          @@ -383,6 +388,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listMessagesTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -393,6 +399,7 @@ protected GrpcConversationsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   suggestConversationSummaryTransportSettings =
                                                                                                                                          @@ -405,6 +412,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   generateStatelessSummaryTransportSettings =
                                                                                                                                          @@ -419,6 +427,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                     String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   generateStatelessSuggestionTransportSettings =
                                                                                                                                          @@ -432,6 +441,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   searchKnowledgeTransportSettings =
                                                                                                                                          @@ -444,6 +454,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   generateSuggestionsTransportSettings =
                                                                                                                                          @@ -455,6 +466,7 @@ protected GrpcConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                          index 5789e551a206..a052c912aaec 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java
                                                                                                                                          @@ -233,6 +233,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getDocumentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -243,6 +244,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createDocumentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -253,6 +255,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings importDocumentsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -263,6 +266,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings deleteDocumentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -273,6 +277,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateDocumentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -293,6 +298,7 @@ protected GrpcDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                          index 75dbabfb5815..d9de341b15f7 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEncryptionSpecServiceStub.java
                                                                                                                                          @@ -164,6 +164,7 @@ protected GrpcEncryptionSpecServiceStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   initializeEncryptionSpecTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                          index eb0f9c1a8b56..465f6c353f4e 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java
                                                                                                                                          @@ -281,6 +281,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings getEntityTypeTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -291,6 +292,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createEntityTypeTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -301,6 +303,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateEntityTypeTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -322,6 +325,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   batchUpdateEntityTypesTransportSettings =
                                                                                                                                          @@ -333,6 +337,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   batchDeleteEntityTypesTransportSettings =
                                                                                                                                          @@ -344,6 +349,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings batchCreateEntitiesTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -354,6 +360,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings batchUpdateEntitiesTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -364,6 +371,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings batchDeleteEntitiesTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -374,6 +382,7 @@ protected GrpcEntityTypesStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                          index 2769a48825c0..ff9fe7aa1fd1 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java
                                                                                                                                          @@ -216,6 +216,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings getEnvironmentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -226,6 +227,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createEnvironmentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -236,6 +238,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateEnvironmentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -257,6 +260,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   getEnvironmentHistoryTransportSettings =
                                                                                                                                          @@ -268,6 +272,7 @@ protected GrpcEnvironmentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                          index 90093ac92c90..5f03b0bad517 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java
                                                                                                                                          @@ -150,6 +150,7 @@ protected GrpcFulfillmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateFulfillmentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                          index 22c0a14c92e8..45e8d2b09225 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorEvaluationsStub.java
                                                                                                                                          @@ -205,6 +205,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   getGeneratorEvaluationTransportSettings =
                                                                                                                                          @@ -216,6 +217,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   listGeneratorEvaluationsTransportSettings =
                                                                                                                                          @@ -228,6 +230,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   deleteGeneratorEvaluationTransportSettings =
                                                                                                                                          @@ -239,6 +242,7 @@ protected GrpcGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                          index b991d593e71f..41251121fcc5 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcGeneratorsStub.java
                                                                                                                                          @@ -194,6 +194,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getGeneratorTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -204,6 +205,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   listGeneratorsTransportSettings =
                                                                                                                                          @@ -215,6 +217,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings deleteGeneratorTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -225,6 +228,7 @@ protected GrpcGeneratorsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateGeneratorTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                          index 25dbda5d806a..fb688016857c 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java
                                                                                                                                          @@ -217,6 +217,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getIntentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -227,6 +228,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createIntentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -237,6 +239,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateIntentTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -257,6 +260,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings batchUpdateIntentsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -267,6 +271,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings batchDeleteIntentsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -277,6 +282,7 @@ protected GrpcIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                          index c1c3d3dd905f..186d457472eb 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java
                                                                                                                                          @@ -205,6 +205,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings getKnowledgeBaseTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -215,6 +216,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   createKnowledgeBaseTransportSettings =
                                                                                                                                          @@ -226,6 +228,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -236,6 +239,7 @@ protected GrpcKnowledgeBasesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   updateKnowledgeBaseTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                          index 38603d8f3e98..d8a8ae08ae02 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java
                                                                                                                                          @@ -340,6 +340,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getParticipantTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -350,6 +351,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   listParticipantsTransportSettings =
                                                                                                                                          @@ -361,6 +363,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings updateParticipantTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -383,12 +386,14 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   streamingAnalyzeContentTransportSettings =
                                                                                                                                                       GrpcCallSettings
                                                                                                                                                           .newBuilder()
                                                                                                                                                           .setMethodDescriptor(streamingAnalyzeContentMethodDescriptor)
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   bidiStreamingAnalyzeContentTransportSettings =
                                                                                                                                          @@ -407,6 +412,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   suggestFaqAnswersTransportSettings =
                                                                                                                                          @@ -418,6 +424,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   suggestSmartRepliesTransportSettings =
                                                                                                                                          @@ -429,6 +436,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   suggestKnowledgeAssistTransportSettings =
                                                                                                                                          @@ -441,6 +449,7 @@ protected GrpcParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   listSuggestionsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                          index 3f5c100e2fe8..e42e8cb4255d 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcPhoneNumbersStub.java
                                                                                                                                          @@ -183,6 +183,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings updatePhoneNumberTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -204,6 +205,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings undeletePhoneNumberTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -214,6 +216,7 @@ protected GrpcPhoneNumbersStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                          index 2e797a5bd049..fcba1cf0877e 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java
                                                                                                                                          @@ -211,6 +211,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   getSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -222,6 +223,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   createSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -233,6 +235,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   updateSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -257,6 +260,7 @@ protected GrpcSessionEntityTypesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                          index 5fb782a2b88a..372891752250 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java
                                                                                                                                          @@ -151,12 +151,14 @@ protected GrpcSessionsStub(
                                                                                                                                                             builder.add("session", String.valueOf(request.getSession()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings
                                                                                                                                                   streamingDetectIntentTransportSettings =
                                                                                                                                                       GrpcCallSettings
                                                                                                                                                           .newBuilder()
                                                                                                                                                           .setMethodDescriptor(streamingDetectIntentMethodDescriptor)
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                                           .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                          index 843ab1723295..c8bdac1e0c88 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSipTrunksStub.java
                                                                                                                                          @@ -192,6 +192,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings deleteSipTrunkTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -202,6 +203,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listSipTrunksTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -212,6 +214,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getSipTrunkTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -222,6 +225,7 @@ protected GrpcSipTrunksStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateSipTrunkTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                          index cf08a1db1d05..67d6f525d986 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcToolsStub.java
                                                                                                                                          @@ -181,6 +181,7 @@ protected GrpcToolsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getToolTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -191,6 +192,7 @@ protected GrpcToolsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listToolsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -201,6 +203,7 @@ protected GrpcToolsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings deleteToolTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -211,6 +214,7 @@ protected GrpcToolsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateToolTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                          index 4e25920d0ffc..3663308bd712 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java
                                                                                                                                          @@ -187,6 +187,7 @@ protected GrpcVersionsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings getVersionTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -197,6 +198,7 @@ protected GrpcVersionsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings createVersionTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -207,6 +209,7 @@ protected GrpcVersionsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings updateVersionTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          @@ -227,6 +230,7 @@ protected GrpcVersionsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               GrpcCallSettings listLocationsTransportSettings =
                                                                                                                                                   GrpcCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                          index 44c020a498cd..f95e5117ffb9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAgentsStub.java
                                                                                                                                          @@ -602,6 +602,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings setAgentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -624,6 +625,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings searchAgentsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -635,6 +637,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings trainAgentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -646,6 +649,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings exportAgentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -657,6 +661,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings importAgentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -668,6 +673,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings restoreAgentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -679,6 +685,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   getValidationResultTransportSettings =
                                                                                                                                          @@ -691,6 +698,7 @@ protected HttpJsonAgentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                          index 60e0ddfbbe15..aa8d2db3d609 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonAnswerRecordsStub.java
                                                                                                                                          @@ -318,6 +318,7 @@ protected HttpJsonAnswerRecordsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   updateAnswerRecordTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                          index 485b93b1c570..15dbb8fd3255 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonContextsStub.java
                                                                                                                                          @@ -434,6 +434,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getContextTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -445,6 +446,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createContextTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -456,6 +458,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateContextTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -478,6 +481,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings deleteAllContextsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -489,6 +493,7 @@ protected HttpJsonContextsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                          index 0a00aa745e93..add74a3c1d27 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationProfilesStub.java
                                                                                                                                          @@ -570,6 +570,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   getConversationProfileTransportSettings =
                                                                                                                                          @@ -582,6 +583,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   createConversationProfileTransportSettings =
                                                                                                                                          @@ -594,6 +596,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   updateConversationProfileTransportSettings =
                                                                                                                                          @@ -620,6 +623,7 @@ protected HttpJsonConversationProfilesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   setSuggestionFeatureConfigTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                          index 933891f0803b..eef8c2eb4d6b 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonConversationsStub.java
                                                                                                                                          @@ -722,6 +722,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listConversationsTransportSettings =
                                                                                                                                          @@ -734,6 +735,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getConversationTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -745,6 +747,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   completeConversationTransportSettings =
                                                                                                                                          @@ -757,6 +760,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   ingestContextReferencesTransportSettings =
                                                                                                                                          @@ -770,6 +774,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchCreateMessagesTransportSettings =
                                                                                                                                          @@ -783,6 +788,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings listMessagesTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -794,6 +800,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   suggestConversationSummaryTransportSettings =
                                                                                                                                          @@ -807,6 +814,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   generateStatelessSummaryTransportSettings =
                                                                                                                                          @@ -822,6 +830,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                     String.valueOf(request.getStatelessConversation().getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getLatestMessage())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   generateStatelessSuggestionTransportSettings =
                                                                                                                                          @@ -836,6 +845,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   searchKnowledgeTransportSettings =
                                                                                                                                          @@ -849,6 +859,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversationProfile())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   generateSuggestionsTransportSettings =
                                                                                                                                          @@ -862,6 +873,7 @@ protected HttpJsonConversationsStub(
                                                                                                                                                                 builder.add("conversation", String.valueOf(request.getConversation()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getConversation())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                          index 33b4a99ab2dd..2e849aad9bb9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonDocumentsStub.java
                                                                                                                                          @@ -555,6 +555,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getDocumentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -566,6 +567,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createDocumentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -577,6 +579,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings importDocumentsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -588,6 +591,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings deleteDocumentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -599,6 +603,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateDocumentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -621,6 +626,7 @@ protected HttpJsonDocumentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                          index 205d8afd0f5f..2beb0dd908a8 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEncryptionSpecServiceStub.java
                                                                                                                                          @@ -321,6 +321,7 @@ protected HttpJsonEncryptionSpecServiceStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   initializeEncryptionSpecTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                          index 1c2b632a61db..7fee5641b562 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEntityTypesStub.java
                                                                                                                                          @@ -680,6 +680,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getEntityTypeTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -691,6 +692,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createEntityTypeTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -702,6 +704,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateEntityTypeTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -725,6 +728,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchUpdateEntityTypesTransportSettings =
                                                                                                                                          @@ -737,6 +741,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchDeleteEntityTypesTransportSettings =
                                                                                                                                          @@ -749,6 +754,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchCreateEntitiesTransportSettings =
                                                                                                                                          @@ -761,6 +767,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchUpdateEntitiesTransportSettings =
                                                                                                                                          @@ -773,6 +780,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   batchDeleteEntitiesTransportSettings =
                                                                                                                                          @@ -785,6 +793,7 @@ protected HttpJsonEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                          index d025c165be6c..c74357d2b359 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonEnvironmentsStub.java
                                                                                                                                          @@ -440,6 +440,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getEnvironmentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -451,6 +452,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createEnvironmentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -462,6 +464,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateEnvironmentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -485,6 +488,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   getEnvironmentHistoryTransportSettings =
                                                                                                                                          @@ -497,6 +501,7 @@ protected HttpJsonEnvironmentsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                          index 5c122f31421d..b048507ef2a9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonFulfillmentsStub.java
                                                                                                                                          @@ -262,6 +262,7 @@ protected HttpJsonFulfillmentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateFulfillmentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                          index d2a4e4fc1585..cb2b715e82d5 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorEvaluationsStub.java
                                                                                                                                          @@ -407,6 +407,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   getGeneratorEvaluationTransportSettings =
                                                                                                                                          @@ -419,6 +420,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listGeneratorEvaluationsTransportSettings =
                                                                                                                                          @@ -432,6 +434,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   deleteGeneratorEvaluationTransportSettings =
                                                                                                                                          @@ -444,6 +447,7 @@ protected HttpJsonGeneratorEvaluationsStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                          index f28700333fae..1f58409b8fc9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonGeneratorsStub.java
                                                                                                                                          @@ -380,6 +380,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getGeneratorTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -391,6 +392,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listGeneratorsTransportSettings =
                                                                                                                                          @@ -403,6 +405,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings deleteGeneratorTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -414,6 +417,7 @@ protected HttpJsonGeneratorsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateGeneratorTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                          index d3f775d6a1ad..2521dee8ee22 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonIntentsStub.java
                                                                                                                                          @@ -537,6 +537,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getIntentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -548,6 +549,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createIntentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -559,6 +561,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateIntentTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -581,6 +584,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings batchUpdateIntentsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -592,6 +596,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings batchDeleteIntentsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -603,6 +608,7 @@ protected HttpJsonIntentsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                          index 699d3569bb0a..f75513a09a49 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonKnowledgeBasesStub.java
                                                                                                                                          @@ -401,6 +401,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getKnowledgeBaseTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -412,6 +413,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   createKnowledgeBaseTransportSettings =
                                                                                                                                          @@ -424,6 +426,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings deleteKnowledgeBaseTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -435,6 +438,7 @@ protected HttpJsonKnowledgeBasesStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   updateKnowledgeBaseTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                          index 3494bdf36114..5b5fddffec22 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonParticipantsStub.java
                                                                                                                                          @@ -657,6 +657,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getParticipantTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -668,6 +669,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listParticipantsTransportSettings =
                                                                                                                                          @@ -680,6 +682,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings updateParticipantTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -704,6 +707,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("participant", String.valueOf(request.getParticipant()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParticipant())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   suggestArticlesTransportSettings =
                                                                                                                                          @@ -716,6 +720,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   suggestFaqAnswersTransportSettings =
                                                                                                                                          @@ -728,6 +733,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   suggestSmartRepliesTransportSettings =
                                                                                                                                          @@ -741,6 +747,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   suggestKnowledgeAssistTransportSettings =
                                                                                                                                          @@ -754,6 +761,7 @@ protected HttpJsonParticipantsStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listSuggestionsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                          index ad863a81cdf1..1f0d91a62bb5 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonPhoneNumbersStub.java
                                                                                                                                          @@ -349,6 +349,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings updatePhoneNumberTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -372,6 +373,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   undeletePhoneNumberTransportSettings =
                                                                                                                                          @@ -384,6 +386,7 @@ protected HttpJsonPhoneNumbersStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                          index a84c9f55336e..fb2c2bc40baa 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionEntityTypesStub.java
                                                                                                                                          @@ -416,6 +416,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   getSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -428,6 +429,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   createSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -440,6 +442,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   updateSessionEntityTypeTransportSettings =
                                                                                                                                          @@ -466,6 +469,7 @@ protected HttpJsonSessionEntityTypesStub(
                                                                                                                                                                 builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                          index 077debb42642..e396cad355b0 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSessionsStub.java
                                                                                                                                          @@ -226,6 +226,7 @@ protected HttpJsonSessionsStub(
                                                                                                                                                             builder.add("session", String.valueOf(request.getSession()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getSession())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                          index 1fe54956e316..bfa502b7bea2 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonSipTrunksStub.java
                                                                                                                                          @@ -375,6 +375,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings deleteSipTrunkTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -386,6 +387,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listSipTrunksTransportSettings =
                                                                                                                                          @@ -398,6 +400,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                                 builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                                 return builder.build();
                                                                                                                                                               })
                                                                                                                                          +                .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                           .build();
                                                                                                                                               HttpJsonCallSettings getSipTrunkTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -409,6 +412,7 @@ protected HttpJsonSipTrunksStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateSipTrunkTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                          index 2d07168342cd..fb541d7ace3d 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonToolsStub.java
                                                                                                                                          @@ -366,6 +366,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getToolTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -377,6 +378,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings listToolsTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -388,6 +390,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings deleteToolTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -399,6 +402,7 @@ protected HttpJsonToolsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateToolTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                          index 9fab362bb197..63f780c563cf 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/HttpJsonVersionsStub.java
                                                                                                                                          @@ -380,6 +380,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings getVersionTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -391,6 +392,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings createVersionTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -402,6 +404,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                             builder.add("parent", String.valueOf(request.getParent()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getParent())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings updateVersionTransportSettings =
                                                                                                                                                   HttpJsonCallSettings.newBuilder()
                                                                                                                                          @@ -424,6 +427,7 @@ protected HttpJsonVersionsStub(
                                                                                                                                                             builder.add("name", String.valueOf(request.getName()));
                                                                                                                                                             return builder.build();
                                                                                                                                                           })
                                                                                                                                          +            .setResourceNameExtractor(request -> request.getName())
                                                                                                                                                       .build();
                                                                                                                                               HttpJsonCallSettings
                                                                                                                                                   listLocationsTransportSettings =
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                          index 23567e888faa..8bec90a29533 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java
                                                                                                                                          @@ -468,6 +468,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                          index 0006f35a7089..bbeb94e5ce76 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java
                                                                                                                                          @@ -417,6 +417,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                          index 501727f5c1b0..4e3212cb62bb 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java
                                                                                                                                          @@ -573,6 +573,7 @@ protected LibraryMetadata getLibraryMetadata() {
                                                                                                                                               return LibraryMetadata.newBuilder()
                                                                                                                                                   .setArtifactName("com.google.cloud:google-cloud-dialogflow")
                                                                                                                                                   .setRepository("googleapis/google-cloud-java")
                                                                                                                                          +        .setVersion(Version.VERSION)
                                                                                                                                                   .build();
                                                                                                                                             }
                                                                                                                                           
                                                                                                                                          @@ -629,7 +630,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
                                                                                                                                                 definitions.put(
                                                                                                                                          -          "retry_policy_8_codes", ImmutableSet.copyOf(Lists.newArrayList()));
                                                                                                                                          +          "retry_policy_7_codes", ImmutableSet.copyOf(Lists.newArrayList()));
                                                                                                                                                 RETRYABLE_CODE_DEFINITIONS = definitions.build();
                                                                                                                                               }
                                                                                                                                           
                                                                                                                                          @@ -678,7 +679,7 @@ public static class Builder extends StubSettings.Builder())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -159,7 +161,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -216,7 +220,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -423,7 +429,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -480,7 +488,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -535,7 +545,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -592,7 +604,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -1076,6 +1090,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                                   SearchKnowledgeResponse.newBuilder()
                                                                                                                                                       .addAllAnswers(new ArrayList())
                                                                                                                                                       .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                          +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                          index 70dada9108aa..8c1440426df4 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java
                                                                                                                                          @@ -108,7 +108,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -160,7 +162,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -212,7 +216,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -396,7 +402,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -447,7 +455,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -496,7 +506,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -548,7 +560,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -989,6 +1003,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                                   SearchKnowledgeResponse.newBuilder()
                                                                                                                                                       .addAllAnswers(new ArrayList())
                                                                                                                                                       .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                          +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                          index 0ebecf09593b..5b00315da7f9 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientHttpJsonTest.java
                                                                                                                                          @@ -97,6 +97,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -152,6 +155,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -207,6 +213,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -258,6 +267,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -489,6 +501,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -502,6 +517,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                           
                                                                                                                                          @@ -541,6 +559,9 @@ public void updateGeneratorExceptionTest() throws Exception {
                                                                                                                                                         .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                         .addAllTools(new ArrayList())
                                                                                                                                                         .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +              .addAllToolsetTools(new ArrayList())
                                                                                                                                          +              .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +              .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                         .build();
                                                                                                                                                 FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                                 client.updateGenerator(generator, updateMask);
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                          index 7d0736aa94a5..51ad6d406f2e 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/GeneratorsClientTest.java
                                                                                                                                          @@ -104,6 +104,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -155,6 +158,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -206,6 +212,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -251,6 +260,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -452,6 +464,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                          index 8f2dd022cf2b..c1d7ba44aa3c 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java
                                                                                                                                          @@ -743,6 +743,7 @@ public void streamingAnalyzeContentTest() throws Exception {
                                                                                                                                                       .setCxParameters(Struct.newBuilder().build())
                                                                                                                                                       .setEnableExtendedStreaming(true)
                                                                                                                                                       .setEnablePartialAutomatedAgentReply(true)
                                                                                                                                          +            .setOutputMultipleUtterances(true)
                                                                                                                                                       .setEnableDebuggingInfo(true)
                                                                                                                                                       .build();
                                                                                                                                           
                                                                                                                                          @@ -778,6 +779,7 @@ public void streamingAnalyzeContentExceptionTest() throws Exception {
                                                                                                                                                       .setCxParameters(Struct.newBuilder().build())
                                                                                                                                                       .setEnableExtendedStreaming(true)
                                                                                                                                                       .setEnablePartialAutomatedAgentReply(true)
                                                                                                                                          +            .setOutputMultipleUtterances(true)
                                                                                                                                                       .setEnableDebuggingInfo(true)
                                                                                                                                                       .build();
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                          index 17a5152f96a6..e86e200b272b 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java
                                                                                                                                          @@ -251,6 +251,7 @@ public void getConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -317,6 +318,7 @@ public void getConversationProfileTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -379,6 +381,7 @@ public void createConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -444,6 +447,7 @@ public void createConversationProfileTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -509,6 +513,7 @@ public void createConversationProfileTest3() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -574,6 +579,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -598,6 +604,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -649,6 +656,7 @@ public void updateConversationProfileExceptionTest() throws Exception {
                                                                                                                                                         .setDisplayName("displayName1714148973")
                                                                                                                                                         .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                         .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +              .setUseBidiStreaming(true)
                                                                                                                                                         .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                         .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                         .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -765,6 +773,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -835,6 +844,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -917,6 +927,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -987,6 +998,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                          index e1904cae4eef..f33ab4cbf1b8 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java
                                                                                                                                          @@ -243,6 +243,7 @@ public void getConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -304,6 +305,7 @@ public void getConversationProfileTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -361,6 +363,7 @@ public void createConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -422,6 +425,7 @@ public void createConversationProfileTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -483,6 +487,7 @@ public void createConversationProfileTest3() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -544,6 +549,7 @@ public void updateConversationProfileTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -679,6 +685,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -745,6 +752,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -825,6 +833,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          @@ -891,6 +900,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception {
                                                                                                                                                       .setDisplayName("displayName1714148973")
                                                                                                                                                       .setCreateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                          +            .setUseBidiStreaming(true)
                                                                                                                                                       .setAutomatedAgentConfig(AutomatedAgentConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentAssistantConfig(HumanAgentAssistantConfig.newBuilder().build())
                                                                                                                                                       .setHumanAgentHandoffConfig(HumanAgentHandoffConfig.newBuilder().build())
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                          index 3347a1c79662..0726f3a4d064 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java
                                                                                                                                          @@ -102,7 +102,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -159,7 +161,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -216,7 +220,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -423,7 +429,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -480,7 +488,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -535,7 +545,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -592,7 +604,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -1166,6 +1180,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                                   SearchKnowledgeResponse.newBuilder()
                                                                                                                                                       .addAllAnswers(new ArrayList())
                                                                                                                                                       .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                          +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                          index d867d7d25bc3..4116b29e9b66 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java
                                                                                                                                          @@ -108,7 +108,9 @@ public void createConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -160,7 +162,9 @@ public void createConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -212,7 +216,9 @@ public void createConversationTest3() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -396,7 +402,9 @@ public void getConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -447,7 +455,9 @@ public void getConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -496,7 +506,9 @@ public void completeConversationTest() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -548,7 +560,9 @@ public void completeConversationTest2() throws Exception {
                                                                                                                                                       .setStartTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setEndTime(Timestamp.newBuilder().build())
                                                                                                                                                       .setTelephonyConnectionInfo(Conversation.TelephonyConnectionInfo.newBuilder().build())
                                                                                                                                          +            .setInitialConversationProfile(ConversationProfile.newBuilder().build())
                                                                                                                                                       .putAllIngestedContextReferences(new HashMap())
                                                                                                                                          +            .putAllInitialGeneratorContexts(new HashMap())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -1069,6 +1083,7 @@ public void searchKnowledgeTest() throws Exception {
                                                                                                                                                   SearchKnowledgeResponse.newBuilder()
                                                                                                                                                       .addAllAnswers(new ArrayList())
                                                                                                                                                       .setRewrittenQuery("rewrittenQuery-1572767836")
                                                                                                                                          +            .setSearchKnowledgeDebugInfo(SearchKnowledgeDebugInfo.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockConversations.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                          index e4d76781113b..40f8b3f4efee 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientHttpJsonTest.java
                                                                                                                                          @@ -97,6 +97,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -152,6 +155,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -207,6 +213,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -258,6 +267,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -489,6 +501,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -502,6 +517,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                           
                                                                                                                                          @@ -541,6 +559,9 @@ public void updateGeneratorExceptionTest() throws Exception {
                                                                                                                                                         .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                         .addAllTools(new ArrayList())
                                                                                                                                                         .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +              .addAllToolsetTools(new ArrayList())
                                                                                                                                          +              .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +              .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                         .build();
                                                                                                                                                 FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                                 client.updateGenerator(generator, updateMask);
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                          index a1d6570f272c..7ec3513200d8 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClientTest.java
                                                                                                                                          @@ -104,6 +104,9 @@ public void createGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -155,6 +158,9 @@ public void createGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -206,6 +212,9 @@ public void getGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -251,6 +260,9 @@ public void getGeneratorTest2() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -452,6 +464,9 @@ public void updateGeneratorTest() throws Exception {
                                                                                                                                                       .setUpdateTime(Timestamp.newBuilder().build())
                                                                                                                                                       .addAllTools(new ArrayList())
                                                                                                                                                       .setSuggestionDedupingConfig(SuggestionDedupingConfig.newBuilder().build())
                                                                                                                                          +            .addAllToolsetTools(new ArrayList())
                                                                                                                                          +            .addAllCesToolSpecs(new ArrayList())
                                                                                                                                          +            .addAllCesAppSpecs(new ArrayList())
                                                                                                                                                       .build();
                                                                                                                                               mockGenerators.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                          index e801d10a2b27..e0a5663290b0 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientHttpJsonTest.java
                                                                                                                                          @@ -36,6 +36,7 @@
                                                                                                                                           import com.google.common.collect.Lists;
                                                                                                                                           import com.google.protobuf.Any;
                                                                                                                                           import com.google.protobuf.FieldMask;
                                                                                                                                          +import com.google.protobuf.Timestamp;
                                                                                                                                           import java.io.IOException;
                                                                                                                                           import java.util.Arrays;
                                                                                                                                           import java.util.HashMap;
                                                                                                                                          @@ -241,6 +242,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -250,6 +252,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                           
                                                                                                                                          @@ -286,6 +289,7 @@ public void updatePhoneNumberExceptionTest() throws Exception {
                                                                                                                                                                 .toString())
                                                                                                                                                         .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                         .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +              .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                         .build();
                                                                                                                                                 FieldMask updateMask = FieldMask.newBuilder().build();
                                                                                                                                                 client.updatePhoneNumber(phoneNumber, updateMask);
                                                                                                                                          @@ -303,6 +307,7 @@ public void deletePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -351,6 +356,7 @@ public void deletePhoneNumberTest2() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -398,6 +404,7 @@ public void undeletePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -446,6 +453,7 @@ public void undeletePhoneNumberTest2() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockService.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                          index deca0b1c5030..a65fe269a873 100644
                                                                                                                                          --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                          +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClientTest.java
                                                                                                                                          @@ -34,6 +34,7 @@
                                                                                                                                           import com.google.protobuf.AbstractMessage;
                                                                                                                                           import com.google.protobuf.Any;
                                                                                                                                           import com.google.protobuf.FieldMask;
                                                                                                                                          +import com.google.protobuf.Timestamp;
                                                                                                                                           import io.grpc.StatusRuntimeException;
                                                                                                                                           import java.io.IOException;
                                                                                                                                           import java.util.Arrays;
                                                                                                                                          @@ -229,6 +230,7 @@ public void updatePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -273,6 +275,7 @@ public void deletePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -315,6 +318,7 @@ public void deletePhoneNumberTest2() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -356,6 +360,7 @@ public void undeletePhoneNumberTest() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          @@ -398,6 +403,7 @@ public void undeletePhoneNumberTest2() throws Exception {
                                                                                                                                                           PhoneNumberName.ofProjectPhoneNumberName("[PROJECT]", "[PHONE_NUMBER]").toString())
                                                                                                                                                       .setPhoneNumber("phoneNumber-1192969641")
                                                                                                                                                       .setConversationProfile("conversationProfile1691597734")
                                                                                                                                          +            .setPurgeTime(Timestamp.newBuilder().build())
                                                                                                                                                       .build();
                                                                                                                                               mockPhoneNumbers.addResponse(expectedResponse);
                                                                                                                                           
                                                                                                                                          diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java
                                                                                                                                          new file mode 100644
                                                                                                                                          index 000000000000..cbe55897c7de
                                                                                                                                          --- /dev/null
                                                                                                                                          +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java
                                                                                                                                          @@ -0,0 +1,102 @@
                                                                                                                                          +/*
                                                                                                                                          + * Copyright 2026 Google LLC
                                                                                                                                          + *
                                                                                                                                          + * Licensed under the Apache License, Version 2.0 (the "License");
                                                                                                                                          + * you may not use this file except in compliance with the License.
                                                                                                                                          + * You may obtain a copy of the License at
                                                                                                                                          + *
                                                                                                                                          + *     https://www.apache.org/licenses/LICENSE-2.0
                                                                                                                                          + *
                                                                                                                                          + * Unless required by applicable law or agreed to in writing, software
                                                                                                                                          + * distributed under the License is distributed on an "AS IS" BASIS,
                                                                                                                                          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                                                                                                          + * See the License for the specific language governing permissions and
                                                                                                                                          + * limitations under the License.
                                                                                                                                          + */
                                                                                                                                          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
                                                                                                                                          +// NO CHECKED-IN PROTOBUF GENCODE
                                                                                                                                          +// source: google/cloud/dialogflow/v2/ces_app.proto
                                                                                                                                          +// Protobuf Java Version: 4.33.2
                                                                                                                                          +
                                                                                                                                          +package com.google.cloud.dialogflow.v2;
                                                                                                                                          +
                                                                                                                                          +@com.google.protobuf.Generated
                                                                                                                                          +public final class CesAppProto extends com.google.protobuf.GeneratedFile {
                                                                                                                                          +  private CesAppProto() {}
                                                                                                                                          +
                                                                                                                                          +  static {
                                                                                                                                          +    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
                                                                                                                                          +        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
                                                                                                                                          +        /* major= */ 4,
                                                                                                                                          +        /* minor= */ 33,
                                                                                                                                          +        /* patch= */ 2,
                                                                                                                                          +        /* suffix= */ "",
                                                                                                                                          +        "CesAppProto");
                                                                                                                                          +  }
                                                                                                                                          +
                                                                                                                                          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
                                                                                                                                          +
                                                                                                                                          +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
                                                                                                                                          +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
                                                                                                                                          +  }
                                                                                                                                          +
                                                                                                                                          +  static final com.google.protobuf.Descriptors.Descriptor
                                                                                                                                          +      internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor;
                                                                                                                                          +  static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
                                                                                                                                          +      internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable;
                                                                                                                                          +
                                                                                                                                          +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                                                                                                                          +    return descriptor;
                                                                                                                                          +  }
                                                                                                                                          +
                                                                                                                                          +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
                                                                                                                                          +
                                                                                                                                          +  static {
                                                                                                                                          +    java.lang.String[] descriptorData = {
                                                                                                                                          +      "\n(google/cloud/dialogflow/v2/ces_app.pro"
                                                                                                                                          +          + "to\022\032google.cloud.dialogflow.v2\032\037google/a"
                                                                                                                                          +          + "pi/field_behavior.proto\032\031google/api/reso"
                                                                                                                                          +          + "urce.proto\032%google/cloud/dialogflow/v2/t"
                                                                                                                                          +          + "ool.proto\"\236\001\n\nCesAppSpec\022/\n\007ces_app\030\001 \001("
                                                                                                                                          +          + "\tB\036\340A\001\372A\030\n\026ces.googleapis.com/App\022_\n\030con"
                                                                                                                                          +          + "firmation_requirement\030\002 \001(\01628.google.clo"
                                                                                                                                          +          + "ud.dialogflow.v2.Tool.ConfirmationRequir"
                                                                                                                                          +          + "ementB\003\340A\001B\340\001\n\036com.google.cloud.dialogfl"
                                                                                                                                          +          + "ow.v2B\013CesAppProtoP\001Z>cloud.google.com/g"
                                                                                                                                          +          + "o/dialogflow/apiv2/dialogflowpb;dialogfl"
                                                                                                                                          +          + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A"
                                                                                                                                          +          + "L\n\026ces.googleapis.com/App\0222projects/{pro"
                                                                                                                                          +          + "ject}/locations/{location}/apps/{app}b\006p"
                                                                                                                                          +          + "roto3"
                                                                                                                                          +    };
                                                                                                                                          +    descriptor =
                                                                                                                                          +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                                                                                                                          +            descriptorData,
                                                                                                                                          +            new com.google.protobuf.Descriptors.FileDescriptor[] {
                                                                                                                                          +              com.google.api.FieldBehaviorProto.getDescriptor(),
                                                                                                                                          +              com.google.api.ResourceProto.getDescriptor(),
                                                                                                                                          +              com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(),
                                                                                                                                          +            });
                                                                                                                                          +    internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor =
                                                                                                                                          +        getDescriptor().getMessageType(0);
                                                                                                                                          +    internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable =
                                                                                                                                          +        new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                                                                                                                          +            internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor,
                                                                                                                                          +            new java.lang.String[] {
                                                                                                                                          +              "CesApp", "ConfirmationRequirement",
                                                                                                                                          +            });
                                                                                                                                          +    descriptor.resolveAllFeaturesImmutable();
                                                                                                                                          +    com.google.api.FieldBehaviorProto.getDescriptor();
                                                                                                                                          +    com.google.api.ResourceProto.getDescriptor();
                                                                                                                                          +    com.google.cloud.dialogflow.v2.ToolProto.getDescriptor();
                                                                                                                                          +    com.google.protobuf.ExtensionRegistry registry =
                                                                                                                                          +        com.google.protobuf.ExtensionRegistry.newInstance();
                                                                                                                                          +    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
                                                                                                                                          +    registry.add(com.google.api.ResourceProto.resourceDefinition);
                                                                                                                                          +    registry.add(com.google.api.ResourceProto.resourceReference);
                                                                                                                                          +    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
                                                                                                                                          +        descriptor, registry);
                                                                                                                                          +  }
                                                                                                                                          +
                                                                                                                                          +  // @@protoc_insertion_point(outer_class_scope)
                                                                                                                                          +}
                                                                                                                                          diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java
                                                                                                                                          new file mode 100644
                                                                                                                                          index 000000000000..6b27b0255070
                                                                                                                                          --- /dev/null
                                                                                                                                          +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java
                                                                                                                                          @@ -0,0 +1,799 @@
                                                                                                                                          +/*
                                                                                                                                          + * Copyright 2026 Google LLC
                                                                                                                                          + *
                                                                                                                                          + * Licensed under the Apache License, Version 2.0 (the "License");
                                                                                                                                          + * you may not use this file except in compliance with the License.
                                                                                                                                          + * You may obtain a copy of the License at
                                                                                                                                          + *
                                                                                                                                          + *     https://www.apache.org/licenses/LICENSE-2.0
                                                                                                                                          + *
                                                                                                                                          + * Unless required by applicable law or agreed to in writing, software
                                                                                                                                          + * distributed under the License is distributed on an "AS IS" BASIS,
                                                                                                                                          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                                                                                                                                          + * See the License for the specific language governing permissions and
                                                                                                                                          + * limitations under the License.
                                                                                                                                          + */
                                                                                                                                          +// Generated by the protocol buffer compiler.  DO NOT EDIT!
                                                                                                                                          +// NO CHECKED-IN PROTOBUF GENCODE
                                                                                                                                          +// source: google/cloud/dialogflow/v2/ces_app.proto
                                                                                                                                          +// Protobuf Java Version: 4.33.2
                                                                                                                                          +
                                                                                                                                          +package com.google.cloud.dialogflow.v2;
                                                                                                                                          +
                                                                                                                                          +/**
                                                                                                                                          + *
                                                                                                                                          + *
                                                                                                                                          + * 
                                                                                                                                          + * Spec of CES app that the generator can choose from.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesAppSpec} + */ +@com.google.protobuf.Generated +public final class CesAppSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CesAppSpec) + CesAppSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppSpec"); + } + + // Use CesAppSpec.newBuilder() to construct. + private CesAppSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesAppSpec() { + cesApp_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesAppSpec.class, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); + } + + public static final int CES_APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.CesAppSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.CesAppSpec other = + (com.google.cloud.dialogflow.v2.CesAppSpec) obj; + + if (!getCesApp().equals(other.getCesApp())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CesAppSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Spec of CES app that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesAppSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CesAppSpec) + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesAppSpec.class, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.CesAppSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesApp_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.CesAppProto + .internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec build() { + com.google.cloud.dialogflow.v2.CesAppSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec buildPartial() { + com.google.cloud.dialogflow.v2.CesAppSpec result = + new com.google.cloud.dialogflow.v2.CesAppSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.CesAppSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesApp_ = cesApp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.CesAppSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2.CesAppSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesAppSpec other) { + if (other == com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()) return this; + if (!other.getCesApp().isEmpty()) { + cesApp_ = other.cesApp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cesApp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + cesApp_ = getDefaultInstance().getCesApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesAppSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CesAppSpec) + private static final com.google.cloud.dialogflow.v2.CesAppSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CesAppSpec(); + } + + public static com.google.cloud.dialogflow.v2.CesAppSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesAppSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java new file mode 100644 index 000000000000..ec85a9bb4949 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface CesAppSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CesAppSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java new file mode 100644 index 000000000000..291a5e591149 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolProto.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public final class CesToolProto extends com.google.protobuf.GeneratedFile { + private CesToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/dialogflow/v2/ces_tool.pr" + + "oto\022\032google.cloud.dialogflow.v2\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032%google/cloud/dialogflow/v2/" + + "tool.proto\"\241\001\n\013CesToolSpec\0221\n\010ces_tool\030\001" + + " \001(\tB\037\340A\001\372A\031\n\027ces.googleapis.com/Tool\022_\n" + + "\030confirmation_requirement\030\002 \001(\01628.google" + + ".cloud.dialogflow.v2.Tool.ConfirmationRe" + + "quirementB\003\340A\001B\222\001\n\036com.google.cloud.dial" + + "ogflow.v2B\014CesToolProtoP\001Z>cloud.google." + + "com/go/dialogflow/apiv2/dialogflowpb;dia" + + "logflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow" + + ".V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor, + new java.lang.String[] { + "CesTool", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java new file mode 100644 index 000000000000..e98334875683 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpec.java @@ -0,0 +1,799 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Spec of CES tool that the generator can choose from.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesToolSpec} + */ +@com.google.protobuf.Generated +public final class CesToolSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CesToolSpec) + CesToolSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolSpec"); + } + + // Use CesToolSpec.newBuilder() to construct. + private CesToolSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesToolSpec() { + cesTool_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesToolSpec.class, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder.class); + } + + public static final int CES_TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.CesToolSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.CesToolSpec other = + (com.google.cloud.dialogflow.v2.CesToolSpec) obj; + + if (!getCesTool().equals(other.getCesTool())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CesToolSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Spec of CES tool that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.CesToolSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CesToolSpec) + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.CesToolSpec.class, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.CesToolSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesTool_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.CesToolProto + .internal_static_google_cloud_dialogflow_v2_CesToolSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec build() { + com.google.cloud.dialogflow.v2.CesToolSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec buildPartial() { + com.google.cloud.dialogflow.v2.CesToolSpec result = + new com.google.cloud.dialogflow.v2.CesToolSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.CesToolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesTool_ = cesTool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.CesToolSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2.CesToolSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesToolSpec other) { + if (other == com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()) return this; + if (!other.getCesTool().isEmpty()) { + cesTool_ = other.cesTool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cesTool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + cesTool_ = getDefaultInstance().getCesTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesToolSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CesToolSpec) + private static final com.google.cloud.dialogflow.v2.CesToolSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CesToolSpec(); + } + + public static com.google.cloud.dialogflow.v2.CesToolSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesToolSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java new file mode 100644 index 000000000000..9b3534d2623c --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesToolSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface CesToolSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CesToolSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java index 5acf407a3e65..53c2fa09447e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java @@ -73,6 +73,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -7984,6 +7986,885 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface GeneratorContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + int getGeneratorTypeValue(); + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType getGeneratorType(); + } + + /** + * + * + *
                                                                                                                                          +   * Represents the context of a generator.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext} + */ + public static final class GeneratorContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + GeneratorContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorContext"); + } + + // Use GeneratorContext.newBuilder() to construct. + private GeneratorContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeneratorContext() { + generatorType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +     * The available generator types.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType} + */ + public enum GeneratorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +       * Unspecified generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + GENERATOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +       * Free form generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * FREE_FORM = 1; + */ + FREE_FORM(1), + /** + * + * + *
                                                                                                                                          +       * Agent coaching generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_COACHING = 2; + */ + AGENT_COACHING(2), + /** + * + * + *
                                                                                                                                          +       * Summarization generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * SUMMARIZATION = 3; + */ + SUMMARIZATION(3), + /** + * + * + *
                                                                                                                                          +       * Translation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * TRANSLATION = 4; + */ + TRANSLATION(4), + /** + * + * + *
                                                                                                                                          +       * Agent feedback generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_FEEDBACK = 5; + */ + AGENT_FEEDBACK(5), + /** + * + * + *
                                                                                                                                          +       * Customer message generation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + CUSTOMER_MESSAGE_GENERATION(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorType"); + } + + /** + * + * + *
                                                                                                                                          +       * Unspecified generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + public static final int GENERATOR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +       * Free form generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * FREE_FORM = 1; + */ + public static final int FREE_FORM_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +       * Agent coaching generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_COACHING = 2; + */ + public static final int AGENT_COACHING_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +       * Summarization generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * SUMMARIZATION = 3; + */ + public static final int SUMMARIZATION_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +       * Translation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * TRANSLATION = 4; + */ + public static final int TRANSLATION_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +       * Agent feedback generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_FEEDBACK = 5; + */ + public static final int AGENT_FEEDBACK_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +       * Customer message generation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + public static final int CUSTOMER_MESSAGE_GENERATION_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GeneratorType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GeneratorType forNumber(int value) { + switch (value) { + case 0: + return GENERATOR_TYPE_UNSPECIFIED; + case 1: + return FREE_FORM; + case 2: + return AGENT_COACHING; + case 3: + return SUMMARIZATION; + case 4: + return TRANSLATION; + case 5: + return AGENT_FEEDBACK; + case 6: + return CUSTOMER_MESSAGE_GENERATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GeneratorType findValueByNumber(int number) { + return GeneratorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GeneratorType[] VALUES = values(); + + public static GeneratorType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GeneratorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType) + } + + public static final int GENERATOR_TYPE_FIELD_NUMBER = 1; + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (generatorType_ + != com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, generatorType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generatorType_ + != com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, generatorType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext other = + (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) obj; + + if (generatorType_ != other.generatorType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GENERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generatorType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Represents the context of a generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.Conversation.GeneratorContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatorType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext build() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext buildPartial() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result = + new com.google.cloud.dialogflow.v2.Conversation.GeneratorContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatorType_ = generatorType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + return mergeFrom((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.Conversation.GeneratorContext other) { + if (other + == com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.getDefaultInstance()) + return this; + if (other.generatorType_ != 0) { + setGeneratorTypeValue(other.getGeneratorTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + generatorType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorTypeValue(int value) { + generatorType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorType( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + generatorType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGeneratorType() { + bitField0_ = (bitField0_ & ~0x00000001); + generatorType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Conversation.GeneratorContext) + private static final com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Conversation.GeneratorContext(); + } + + public static com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -8453,6 +9334,72 @@ public boolean hasTelephonyConnectionInfo() { : telephonyConnectionInfo_; } + public static final int INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER = 15; + private com.google.cloud.dialogflow.v2.ConversationProfile initialConversationProfile_; + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + @java.lang.Override + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + public static final int INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER = 17; private static final class IngestedContextReferencesDefaultEntryHolder { @@ -8506,58 +9453,194 @@ public boolean containsIngestedContextReferences(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetIngestedContextReferences().getMap().containsKey(key); + return internalGetIngestedContextReferences().getMap().containsKey(key); + } + + /** Use {@link #getIngestedContextReferencesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> + getIngestedContextReferences() { + return getIngestedContextReferencesMap(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> + getIngestedContextReferencesMap() { + return internalGetIngestedContextReferences().getMap(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.ContextReference + getIngestedContextReferencesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.ContextReference defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIngestedContextReferences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.ContextReference + getIngestedContextReferencesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIngestedContextReferences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER = 18; + + private static final class InitialGeneratorContextsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().getMap().size(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().getMap().containsKey(key); } - /** Use {@link #getIngestedContextReferencesMap()} instead. */ + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> - getIngestedContextReferences() { - return getIngestedContextReferencesMap(); + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); } /** * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> - getIngestedContextReferencesMap() { - return internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getMap(); } /** * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.ContextReference - getIngestedContextReferencesOrDefault( + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.dialogflow.v2.Conversation.ContextReference defaultValue) { + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetIngestedContextReferences().getMap(); + java.util.Map + map = internalGetInitialGeneratorContexts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -8565,21 +9648,22 @@ public boolean containsIngestedContextReferences(java.lang.String key) { * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.Conversation.ContextReference - getIngestedContextReferencesOrThrow(java.lang.String key) { + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetIngestedContextReferences().getMap(); + java.util.Map + map = internalGetInitialGeneratorContexts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8629,11 +9713,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getInitialConversationProfile()); + } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetIngestedContextReferences(), IngestedContextReferencesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetInitialGeneratorContexts(), + InitialGeneratorContextsDefaultEntryHolder.defaultEntry, + 18); getUnknownFields().writeTo(output); } @@ -8674,6 +9766,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getInitialConversationProfile()); + } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> entry : internalGetIngestedContextReferences().getMap().entrySet()) { @@ -8688,6 +9785,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, ingestedContextReferences__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + entry : internalGetInitialGeneratorContexts().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts__ = + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, initialGeneratorContexts__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8724,8 +9835,15 @@ public boolean equals(final java.lang.Object obj) { if (hasTelephonyConnectionInfo()) { if (!getTelephonyConnectionInfo().equals(other.getTelephonyConnectionInfo())) return false; } + if (hasInitialConversationProfile() != other.hasInitialConversationProfile()) return false; + if (hasInitialConversationProfile()) { + if (!getInitialConversationProfile().equals(other.getInitialConversationProfile())) + return false; + } if (!internalGetIngestedContextReferences() .equals(other.internalGetIngestedContextReferences())) return false; + if (!internalGetInitialGeneratorContexts().equals(other.internalGetInitialGeneratorContexts())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8761,10 +9879,18 @@ public int hashCode() { hash = (37 * hash) + TELEPHONY_CONNECTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getTelephonyConnectionInfo().hashCode(); } + if (hasInitialConversationProfile()) { + hash = (37 * hash) + INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getInitialConversationProfile().hashCode(); + } if (!internalGetIngestedContextReferences().getMap().isEmpty()) { hash = (37 * hash) + INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetIngestedContextReferences().hashCode(); } + if (!internalGetInitialGeneratorContexts().getMap().isEmpty()) { + hash = (37 * hash) + INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInitialGeneratorContexts().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -8893,6 +10019,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8904,6 +10032,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 17: return internalGetMutableIngestedContextReferences(); + case 18: + return internalGetMutableInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8935,6 +10065,7 @@ private void maybeForceBuilderInitialization() { internalGetStartTimeFieldBuilder(); internalGetEndTimeFieldBuilder(); internalGetTelephonyConnectionInfoFieldBuilder(); + internalGetInitialConversationProfileFieldBuilder(); } } @@ -8966,7 +10097,13 @@ public Builder clear() { telephonyConnectionInfoBuilder_.dispose(); telephonyConnectionInfoBuilder_ = null; } + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; + } internalGetMutableIngestedContextReferences().clear(); + internalGetMutableInitialGeneratorContexts().clear(); return this; } @@ -9037,10 +10174,22 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.Conversation result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.initialConversationProfile_ = + initialConversationProfileBuilder_ == null + ? initialConversationProfile_ + : initialConversationProfileBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.ingestedContextReferences_ = internalGetIngestedContextReferences() .build(IngestedContextReferencesDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.initialGeneratorContexts_ = + internalGetInitialGeneratorContexts() + .build(InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } result.bitField0_ |= to_bitField0_; } @@ -9084,9 +10233,15 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Conversation other) { if (other.hasTelephonyConnectionInfo()) { mergeTelephonyConnectionInfo(other.getTelephonyConnectionInfo()); } + if (other.hasInitialConversationProfile()) { + mergeInitialConversationProfile(other.getInitialConversationProfile()); + } internalGetMutableIngestedContextReferences() .mergeFrom(other.internalGetIngestedContextReferences()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + internalGetMutableInitialGeneratorContexts() + .mergeFrom(other.internalGetInitialGeneratorContexts()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9165,6 +10320,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 122: + { + input.readMessage( + internalGetInitialConversationProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 case 138: { com.google.protobuf.MapEntry< @@ -9180,9 +10343,26 @@ public Builder mergeFrom( .put( ingestedContextReferences__.getKey(), ingestedContextReferences__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 138 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + initialGeneratorContexts__ = + input.readMessage( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableInitialGeneratorContexts() + .ensureBuilderMap() + .put( + initialGeneratorContexts__.getKey(), initialGeneratorContexts__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10452,9 +11632,236 @@ public Builder setTelephonyConnectionInfo( } telephonyConnectionInfo_ = value; } else { - telephonyConnectionInfoBuilder_.setMessage(value); + telephonyConnectionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder + builderForValue) { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfo_ = builderForValue.build(); + } else { + telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo value) { + if (telephonyConnectionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && telephonyConnectionInfo_ != null + && telephonyConnectionInfo_ + != com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo + .getDefaultInstance()) { + getTelephonyConnectionInfoBuilder().mergeFrom(value); + } else { + telephonyConnectionInfo_ = value; + } + } else { + telephonyConnectionInfoBuilder_.mergeFrom(value); + } + if (telephonyConnectionInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTelephonyConnectionInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + telephonyConnectionInfo_ = null; + if (telephonyConnectionInfoBuilder_ != null) { + telephonyConnectionInfoBuilder_.dispose(); + telephonyConnectionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder + getTelephonyConnectionInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder + getTelephonyConnectionInfoOrBuilder() { + if (telephonyConnectionInfoBuilder_ != null) { + return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + } else { + return telephonyConnectionInfo_ == null + ? com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo + .getDefaultInstance() + : telephonyConnectionInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder> + internalGetTelephonyConnectionInfoFieldBuilder() { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder>( + getTelephonyConnectionInfo(), getParentForChildren(), isClean()); + telephonyConnectionInfo_ = null; + } + return telephonyConnectionInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ConversationProfile initialConversationProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> + initialConversationProfileBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + public com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile() { + if (initialConversationProfileBuilder_ == null) { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } else { + return initialConversationProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialConversationProfile_ = value; + } else { + initialConversationProfileBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10463,22 +11870,23 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder - builderForValue) { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfo_ = builderForValue.build(); + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile.Builder builderForValue) { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfile_ = builderForValue.build(); } else { - telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + initialConversationProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10487,30 +11895,31 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo value) { - if (telephonyConnectionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && telephonyConnectionInfo_ != null - && telephonyConnectionInfo_ - != com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo - .getDefaultInstance()) { - getTelephonyConnectionInfoBuilder().mergeFrom(value); + public Builder mergeInitialConversationProfile( + com.google.cloud.dialogflow.v2.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && initialConversationProfile_ != null + && initialConversationProfile_ + != com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance()) { + getInitialConversationProfileBuilder().mergeFrom(value); } else { - telephonyConnectionInfo_ = value; + initialConversationProfile_ = value; } } else { - telephonyConnectionInfoBuilder_.mergeFrom(value); + initialConversationProfileBuilder_.mergeFrom(value); } - if (telephonyConnectionInfo_ != null) { - bitField0_ |= 0x00000080; + if (initialConversationProfile_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -10520,19 +11929,21 @@ public Builder mergeTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearTelephonyConnectionInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - telephonyConnectionInfo_ = null; - if (telephonyConnectionInfoBuilder_ != null) { - telephonyConnectionInfoBuilder_.dispose(); - telephonyConnectionInfoBuilder_ = null; + public Builder clearInitialConversationProfile() { + bitField0_ = (bitField0_ & ~0x00000100); + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; } onChanged(); return this; @@ -10542,40 +11953,43 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder - getTelephonyConnectionInfoBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.dialogflow.v2.ConversationProfile.Builder + getInitialConversationProfileBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + return internalGetInitialConversationProfileFieldBuilder().getBuilder(); } /** * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder - getTelephonyConnectionInfoOrBuilder() { - if (telephonyConnectionInfoBuilder_ != null) { - return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + if (initialConversationProfileBuilder_ != null) { + return initialConversationProfileBuilder_.getMessageOrBuilder(); } else { - return telephonyConnectionInfo_ == null - ? com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo - .getDefaultInstance() - : telephonyConnectionInfo_; + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; } } @@ -10583,28 +11997,30 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder> - internalGetTelephonyConnectionInfoFieldBuilder() { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfoBuilder_ = + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> + internalGetInitialConversationProfileFieldBuilder() { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfileBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder>( - getTelephonyConnectionInfo(), getParentForChildren(), isClean()); - telephonyConnectionInfo_ = null; + com.google.cloud.dialogflow.v2.ConversationProfile, + com.google.cloud.dialogflow.v2.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder>( + getInitialConversationProfile(), getParentForChildren(), isClean()); + initialConversationProfile_ = null; } - return telephonyConnectionInfoBuilder_; + return initialConversationProfileBuilder_; } private static final class IngestedContextReferencesConverter @@ -10662,7 +12078,7 @@ public com.google.cloud.dialogflow.v2.Conversation.ContextReference build( ingestedContextReferences_ = new com.google.protobuf.MapFieldBuilder<>(ingestedContextReferencesConverter); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return ingestedContextReferences_; } @@ -10774,7 +12190,7 @@ public boolean containsIngestedContextReferences(java.lang.String key) { } public Builder clearIngestedContextReferences() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableIngestedContextReferences().clear(); return this; } @@ -10803,7 +12219,7 @@ public Builder removeIngestedContextReferences(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.dialogflow.v2.Conversation.ContextReference> getMutableIngestedContextReferences() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableIngestedContextReferences().ensureMessageMap(); } @@ -10827,7 +12243,7 @@ public Builder putIngestedContextReferences( throw new NullPointerException("map value"); } internalGetMutableIngestedContextReferences().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10854,7 +12270,7 @@ public Builder putAllIngestedContextReferences( } } internalGetMutableIngestedContextReferences().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10888,6 +12304,295 @@ public Builder putAllIngestedContextReferences( return (com.google.cloud.dialogflow.v2.Conversation.ContextReference.Builder) entry; } + private static final class InitialGeneratorContextsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> { + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext build( + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder val) { + if (val instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + return (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) val; + } + return ((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + defaultEntry() { + return InitialGeneratorContextsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final InitialGeneratorContextsConverter initialGeneratorContextsConverter = + new InitialGeneratorContextsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + initialGeneratorContexts_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + return initialGeneratorContexts_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder> + internalGetMutableInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + initialGeneratorContexts_ = + new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + bitField0_ |= 0x00000400; + onChanged(); + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().ensureBuilderMap().size(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getImmutableMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + return map.containsKey(key) + ? initialGeneratorContextsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return initialGeneratorContextsConverter.build(map.get(key)); + } + + public Builder clearInitialGeneratorContexts() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableInitialGeneratorContexts().clear(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + getMutableInitialGeneratorContexts() { + bitField0_ |= 0x00000400; + return internalGetMutableInitialGeneratorContexts().ensureMessageMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInitialGeneratorContexts( + java.lang.String key, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInitialGeneratorContexts( + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2.Conversation.GeneratorContext> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder + putInitialGeneratorContextsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder> + builderMap = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + com.google.cloud.dialogflow.v2.Conversation.GeneratorContextOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) { + entry = ((com.google.cloud.dialogflow.v2.Conversation.GeneratorContext) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.dialogflow.v2.Conversation.GeneratorContext.Builder) entry; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java index b831cdd339ca..e04f5521b47a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java @@ -356,6 +356,56 @@ public interface ConversationOrBuilder com.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder(); + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + boolean hasInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + com.google.cloud.dialogflow.v2.ConversationProfile getInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder(); + /** * * @@ -432,4 +482,85 @@ public interface ConversationOrBuilder */ com.google.cloud.dialogflow.v2.Conversation.ContextReference getIngestedContextReferencesOrThrow( java.lang.String key); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInitialGeneratorContextsCount(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsInitialGeneratorContexts(java.lang.String key); + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInitialGeneratorContexts(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getInitialGeneratorContextsMap(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext defaultValue); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.Conversation.GeneratorContext getInitialGeneratorContextsOrThrow( + java.lang.String key); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java index 97727c890cca..0ca9d892264d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -177,287 +177,295 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "5google/cloud/dialogflow/v2/conversation_profile.proto\022\032google.cloud.dialogflow" + "\n5google/cloud/dialogflow/v2/conversatio" + + "n_profile.proto\022\032google.cloud.dialogflow" + ".v2\032\034google/api/annotations.proto\032\027googl" + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\031google/api/resource.proto\032-" - + "google/cloud/dialogflow/v2/audio_config.proto\032*google/cloud/dialogflow/v2/genera" - + "tor.proto\032,google/cloud/dialogflow/v2/participant.proto\032#google/longrunning/oper" - + "ations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\331\t\n" - + "\023ConversationProfile\022\014\n" - + "\004name\030\001 \001(\t\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" - + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" - + "\026automated_agent_config\030\003" - + " \001(\01320.google.cloud.dialogflow.v2.AutomatedAgentConfig\022[\n" - + "\034human_agent_assistant_config\030\004 \001(\01325.goog" - + "le.cloud.dialogflow.v2.HumanAgentAssistantConfig\022W\n" - + "\032human_agent_handoff_config\030\005" - + " \001(\01323.google.cloud.dialogflow.v2.HumanAgentHandoffConfig\022K\n" - + "\023notification_config\030\006" - + " \001(\0132..google.cloud.dialogflow.v2.NotificationConfig\022A\n" - + "\016logging_config\030\007 \001(\0132).google.cloud.dialogflow.v2.LoggingConfig\022]\n" - + "%new_message_event_notification_config\030\010" - + " \001(\0132..google.cloud.dialogflow.v2.NotificationConfig\022g\n" - + "*new_recognition_result_notification_config\030\025 \001(\0132..google.cl" - + "oud.dialogflow.v2.NotificationConfigB\003\340A\001\022B\n\n" - + "stt_config\030\t \001(\0132..google.cloud.dialogflow.v2.SpeechToTextConfig\022\025\n\r" - + "language_code\030\n" - + " \001(\t\022\021\n" - + "\ttime_zone\030\016 \001(\t\022L\n" - + "\021security_settings\030\r" - + " \001(\tB1\372A.\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022F\n\n" - + "tts_config\030\022" - + " \001(\01322.google.cloud.dialogflow.v2.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>pro" - + "jects/{project}/conversationProfiles/{conversation_profile}\022Sprojects/{project}/" - + "locations/{location}/conversationProfiles/{conversation_profile}\"\217\001\n" - + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\213\001\n" - + " ListConversationProfilesResponse\022N\n" - + "\025conversation_profiles\030\001 \003(\0132/" - + ".google.cloud.dialogflow.v2.ConversationProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"d\n" - + "\035GetConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\275\001\n" - + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" - + "logflow.googleapis.com/ConversationProfile\022R\n" - + "\024conversation_profile\030\002 \001(\0132/.googl" - + "e.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\"\254\001\n" - + " UpdateConversationProfileRequest\022R\n" - + "\024conversation_profile\030\001 \001(\0132/.goog" - + "le.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" - + " DeleteConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\203\001\n" - + "\024AutomatedAgentConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\0223\n" - + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\306\035\n" - + "\031HumanAgentAssistantConfig\022K\n" - + "\023notification_config\030\002 \001(\0132" - + "..google.cloud.dialogflow.v2.NotificationConfig\022m\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionConfig\022j\n" - + "\032end_user_suggestion_config\030\004 \001(\0132F.goo" - + "gle.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig\022l\n" - + "\027message_analysis_config\030\005 \001(\0132K.google.cloud.dialo" - + "gflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig\032H\n" - + "\031SuggestionTriggerSettings\022\024\n" - + "\014no_smalltalk\030\001 \001(\010\022\025\n\r" - + "only_end_user\030\002 \001(\010\032\365\006\n" - + "\027SuggestionFeatureConfig\022I\n" - + "\022suggestion_feature\030\005" - + " \001(\0132-.google.cloud.dialogflow.v2.SuggestionFeature\022%\n" - + "\035enable_event_based_suggestion\030\003 \001(\010\022(\n" - + "\033disable_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n" - + "&enable_query_suggestion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n" - + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" - + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" - + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022B\n" - + "\014rai_settings\030\023 " - + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSettingsB\003\340A\001\022t\n" - + "\033suggestion_trigger_settings\030\n" - + " \001(\0132O.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionTriggerSettings\022a\n" - + "\014query_config\030\006 \001(\0132K.google.c" - + "loud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig\022p\n" - + "\031conversation_model_config\030\007 \001(\0132M.google.cloud.dia" - + "logflow.v2.HumanAgentAssistantConfig.ConversationModelConfig\022t\n" - + "\033conversation_process_config\030\010 \001(\0132O.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.ConversationProcessConfig\032\235\003\n" - + "\020SuggestionConfig\022f\n" - + "\017feature_configs\030\002 \003(\0132M.google.cloud." - + "dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig\022\"\n" - + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" - + "generators\030\004 \003(\tB+\340A\001\372A%\n" - + "#dialogflow.googleapis.com/Generator\0228\n" - + "+disable_high_latency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022.\n" - + "!skip_empty_event_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n" - + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n" - + "\025SuggestionQueryConfig\022\213\001\n" - + "\033knowledge_base_query_source\030\001 \001(\0132d.google.cloud.dialog" + + "google/cloud/dialogflow/v2/audio_config." + + "proto\032*google/cloud/dialogflow/v2/genera" + + "tor.proto\032,google/cloud/dialogflow/v2/pa" + + "rticipant.proto\032#google/longrunning/oper" + + "ations.proto\032\036google/protobuf/duration.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\331\t\n\023ConversationPro" + + "file\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\t" + + "B\003\340A\002\0224\n\013create_time\030\013 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022P\n\026aut" + + "omated_agent_config\030\003 \001(\01320.google.cloud" + + ".dialogflow.v2.AutomatedAgentConfig\022[\n\034h" + + "uman_agent_assistant_config\030\004 \001(\01325.goog" + + "le.cloud.dialogflow.v2.HumanAgentAssista" + + "ntConfig\022W\n\032human_agent_handoff_config\030\005" + + " \001(\01323.google.cloud.dialogflow.v2.HumanA" + + "gentHandoffConfig\022K\n\023notification_config" + + "\030\006 \001(\0132..google.cloud.dialogflow.v2.Noti" + + "ficationConfig\022A\n\016logging_config\030\007 \001(\0132)" + + ".google.cloud.dialogflow.v2.LoggingConfi" + + "g\022]\n%new_message_event_notification_conf" + + "ig\030\010 \001(\0132..google.cloud.dialogflow.v2.No" + + "tificationConfig\022g\n*new_recognition_resu" + + "lt_notification_config\030\025 \001(\0132..google.cl" + + "oud.dialogflow.v2.NotificationConfigB\003\340A" + + "\001\022B\n\nstt_config\030\t \001(\0132..google.cloud.dia" + + "logflow.v2.SpeechToTextConfig\022\025\n\rlanguag" + + "e_code\030\n \001(\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021secur" + + "ity_settings\030\r \001(\tB1\372A.\n,dialogflow.goog" + + "leapis.com/CXSecuritySettings\022F\n\ntts_con" + + "fig\030\022 \001(\01322.google.cloud.dialogflow.v2.S" + + "ynthesizeSpeechConfig:\310\001\352A\304\001\n-dialogflow" + + ".googleapis.com/ConversationProfile\022>pro" + + "jects/{project}/conversationProfiles/{co" + + "nversation_profile}\022Sprojects/{project}/" + + "locations/{location}/conversationProfile" + + "s/{conversation_profile}\"\217\001\n\037ListConvers" + + "ationProfilesRequest\022E\n\006parent\030\001 \001(\tB5\340A" + + "\002\372A/\022-dialogflow.googleapis.com/Conversa" + + "tionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"\213\001\n ListConversationProfilesR" + + "esponse\022N\n\025conversation_profiles\030\001 \003(\0132/" + + ".google.cloud.dialogflow.v2.Conversation" + + "Profile\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035GetC" + + "onversationProfileRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-dialogflow.googleapis.com/Conve" + + "rsationProfile\"\275\001\n CreateConversationPro" + + "fileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" + + "logflow.googleapis.com/ConversationProfi" + + "le\022R\n\024conversation_profile\030\002 \001(\0132/.googl" + + "e.cloud.dialogflow.v2.ConversationProfil" + + "eB\003\340A\002\"\254\001\n UpdateConversationProfileRequ" + + "est\022R\n\024conversation_profile\030\001 \001(\0132/.goog" + + "le.cloud.dialogflow.v2.ConversationProfi" + + "leB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\"g\n DeleteConversat" + + "ionProfileRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n" + + "-dialogflow.googleapis.com/ConversationP" + + "rofile\"\203\001\n\024AutomatedAgentConfig\0226\n\005agent" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co" + + "m/Agent\0223\n\013session_ttl\030\003 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\"\362\035\n\031HumanAgentAssis" + + "tantConfig\022K\n\023notification_config\030\002 \001(\0132" + + "..google.cloud.dialogflow.v2.Notificatio" + + "nConfig\022m\n\035human_agent_suggestion_config" + + "\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionConfig\022j" + + "\n\032end_user_suggestion_config\030\004 \001(\0132F.goo" + + "gle.cloud.dialogflow.v2.HumanAgentAssist" + + "antConfig.SuggestionConfig\022l\n\027message_an" + + "alysis_config\030\005 \001(\0132K.google.cloud.dialo" + + "gflow.v2.HumanAgentAssistantConfig.Messa" + + "geAnalysisConfig\032H\n\031SuggestionTriggerSet" + + "tings\022\024\n\014no_smalltalk\030\001 \001(\010\022\025\n\ronly_end_" + + "user\030\002 \001(\010\032\365\006\n\027SuggestionFeatureConfig\022I" + + "\n\022suggestion_feature\030\005 \001(\0132-.google.clou" + + "d.dialogflow.v2.SuggestionFeature\022%\n\035ena" + + "ble_event_based_suggestion\030\003 \001(\010\022(\n\033disa" + + "ble_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n&en" + + "able_query_suggestion_when_no_answer\030\017 \001" + + "(\010B\003\340A\001\0220\n#enable_conversation_augmented" + + "_query\030\020 \001(\010B\003\340A\001\022)\n\034enable_query_sugges" + + "tion_only\030\021 \001(\010B\003\340A\001\022\'\n\032enable_response_" + + "debug_info\030\022 \001(\010B\003\340A\001\022B\n\014rai_settings\030\023 " + + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSett" + + "ingsB\003\340A\001\022t\n\033suggestion_trigger_settings" + + "\030\n \001(\0132O.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionTriggerS" + + "ettings\022a\n\014query_config\030\006 \001(\0132K.google.c" + + "loud.dialogflow.v2.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig\022p\n\031conversati" + + "on_model_config\030\007 \001(\0132M.google.cloud.dia" + + "logflow.v2.HumanAgentAssistantConfig.Con" + + "versationModelConfig\022t\n\033conversation_pro" + + "cess_config\030\010 \001(\0132O.google.cloud.dialogf" + + "low.v2.HumanAgentAssistantConfig.Convers" + + "ationProcessConfig\032\235\003\n\020SuggestionConfig\022" + + "f\n\017feature_configs\030\002 \003(\0132M.google.cloud." + + "dialogflow.v2.HumanAgentAssistantConfig." + + "SuggestionFeatureConfig\022\"\n\032group_suggest" + + "ion_responses\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB" + + "+\340A\001\372A%\n#dialogflow.googleapis.com/Gener" + + "ator\0228\n+disable_high_latency_features_sy" + + "nc_delivery\030\005 \001(\010B\003\340A\001\022.\n!skip_empty_eve" + + "nt_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n use_un" + + "redacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" + + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025S" + + "uggestionQueryConfig\022\213\001\n\033knowledge_base_" + + "query_source\030\001 \001(\0132d.google.cloud.dialog" + "flow.v2.HumanAgentAssistantConfig.Sugges" - + "tionQueryConfig.KnowledgeBaseQuerySourceH\000\022\200\001\n" - + "\025document_query_source\030\002 \001(\0132_.goo" + + "tionQueryConfig.KnowledgeBaseQuerySource" + + "H\000\022\200\001\n\025document_query_source\030\002 \001(\0132_.goo" + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\204\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" - + "anAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" - + "\013max_results\030\004 \001(\005\022\034\n" - + "\024confidence_threshold\030\005 \001(\002\022\202\001\n" - + "\027context_filter_settings\030\007 \001(\0132a.goog" + + "antConfig.SuggestionQueryConfig.Document" + + "QuerySourceH\000\022\204\001\n\027dialogflow_query_sourc" + + "e\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" + + "anAgentAssistantConfig.SuggestionQueryCo" + + "nfig.DialogflowQuerySourceH\000\022\023\n\013max_resu" + + "lts\030\004 \001(\005\022\034\n\024confidence_threshold\030\005 \001(\002\022" + + "\202\001\n\027context_filter_settings\030\007 \001(\0132a.goog" + "le.cloud.dialogflow.v2.HumanAgentAssista" - + "ntConfig.SuggestionQueryConfig.ContextFilterSettings\022k\n" - + "\010sections\030\010 \001(\0132T.google.cloud.dialogflow.v2.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" - + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" - + "\030KnowledgeBaseQuerySource\022H\n" - + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" - + "\'dialogflow.googleapis.com/KnowledgeBase\032T\n" - + "\023DocumentQuerySource\022=\n" - + "\tdocuments\030\001 \003(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Document\032\276\002\n" - + "\025DialogflowQuerySource\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132v.google.cloud.dialogflow.v" + + "ntConfig.SuggestionQueryConfig.ContextFi" + + "lterSettings\022k\n\010sections\030\010 \001(\0132T.google." + + "cloud.dialogflow.v2.HumanAgentAssistantC" + + "onfig.SuggestionQueryConfig.SectionsB\003\340A" + + "\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowledg" + + "eBaseQuerySource\022H\n\017knowledge_bases\030\001 \003(" + + "\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kno" + + "wledgeBase\032T\n\023DocumentQuerySource\022=\n\tdoc" + + "uments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.googlea" + + "pis.com/Document\032\276\002\n\025DialogflowQuerySour" + + "ce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\022\234\001\n\027human_agent_side_" + + "config\030\003 \001(\0132v.google.cloud.dialogflow.v" + "2.HumanAgentAssistantConfig.SuggestionQu" - + "eryConfig.DialogflowQuerySource.HumanAgentSideConfigB\003\340A\001\032N\n" - + "\024HumanAgentSideConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" - + "\037dialogflow.googleapis.com/Agent\032v\n" - + "\025ContextFilterSettings\022\035\n" - + "\025drop_handoff_messages\030\001 \001(\010\022#\n" - + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" - + "\021drop_ivr_messages\030\003 \001(\010\032\242\002\n" - + "\010Sections\022w\n\r" - + "section_types\030\001 \003(\0162`.google.cloud.dialogflow." - + "v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" - + "\013SectionType\022\034\n" - + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n" - + "\006ACTION\020\002\022\016\n\n" - + "RESOLUTION\020\003\022\033\n" - + "\027REASON_FOR_CANCELLATION\020\004\022\031\n" - + "\025CUSTOMER_SATISFACTION\020\005\022\014\n" - + "\010ENTITIES\020\006B\016\n" - + "\014query_source\032z\n" - + "\027ConversationModelConfig\022?\n" - + "\005model\030\001 \001(\tB0\372A-\n" - + "+dialogflow.googleapis.com/ConversationModel\022\036\n" - + "\026baseline_model_version\030\010 \001(\t\032;\n" - + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\\\n" - + "\025MessageAnalysisConfig\022 \n" - + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\"\304\003\n" - + "\027HumanAgentHandoffConfig\022b\n" - + "\022live_person_config\030\001 \001(\0132D.google.cloud.dia" - + "logflow.v2.HumanAgentHandoffConfig.LivePersonConfigH\000\022u\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132M.google.cloud.dialogflow.v2" - + ".HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" - + "\020LivePersonConfig\022\033\n" - + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" - + "\031SalesforceLiveAgentConfig\022\034\n" - + "\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\r" - + "deployment_id\030\002 \001(\tB\003\340A\002\022\026\n" - + "\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n" - + "\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\r" - + "agent_service\"\277\001\n" - + "\022NotificationConfig\022\r\n" - + "\005topic\030\001 \001(\t\022T\n" - + "\016message_format\030\002 \001" - + "(\0162<.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat\"D\n\r" - + "MessageFormat\022\036\n" - + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n" - + "\004JSON\020\002\"3\n\r" - + "LoggingConfig\022\"\n" - + "\032enable_stackdriver_logging\030\003 \001(\010\"\362\001\n" - + "\021SuggestionFeature\022@\n" - + "\004type\030\001" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.Type\"\232\001\n" - + "\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022ARTICLE_SUGGESTION\020\001\022\007\n" - + "\003FAQ\020\002\022\017\n" - + "\013SMART_REPLY\020\003\022\036\n" - + "\032CONVERSATION_SUMMARIZATION\020\010\022\024\n" - + "\020KNOWLEDGE_SEARCH\020\016\022\024\n" - + "\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022u\n" - + "\031suggestion_feature_config\030\003 \001(\0132M.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\357\001\n" - + "#ClearSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n" - + "\020participant_role\030\002 \001" - + "(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\"\243\002\n" - + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01622.google.cloud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\245\002\n" - + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022K\n" - + "\020participant_role\030\002" - + " \001(\0162,.google.cloud.dialogflow.v2.Participant.RoleB\003\340A\002\022X\n" - + "\027suggestion_feature_type\030\003 \001(\01622.google.clo" - + "ud.dialogflow.v2.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\024\n" - + "\024ConversationProfiles\022\220\002\n" - + "\030ListConversationProfiles\022;.google.cloud.dialogflow.v2.ListConversationProfile" - + "sRequest\032<.google.cloud.dialogflow.v2.Li" - + "stConversationProfilesResponse\"y\332A\006paren" - + "t\202\323\344\223\002j\022,/v2/{parent=projects/*}/convers" - + "ationProfilesZ:\0228/v2/{parent=projects/*/locations/*}/conversationProfiles\022\375\001\n" - + "\026GetConversationProfile\0229.google.cloud.dial" - + "ogflow.v2.GetConversationProfileRequest\032/.google.cloud.dialogflow.v2.Conversatio" - + "nProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=proje" - + "cts/*/conversationProfiles/*}Z:\0228/v2/{na" - + "me=projects/*/locations/*/conversationProfiles/*}\022\310\002\n" - + "\031CreateConversationProfile\022<.google.cloud.dialogflow.v2.CreateConve" - + "rsationProfileRequest\032/.google.cloud.dia" - + "logflow.v2.ConversationProfile\"\273\001\332A\033pare" - + "nt,conversation_profile\202\323\344\223\002\226\001\",/v2/{par" - + "ent=projects/*}/conversationProfiles:\024conversation_profileZP\"8/v2/{parent=projec" - + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\367\002\n" - + "\031UpdateConversationProfile\022<.google.cloud.dialogflow.v2." - + "UpdateConversationProfileRequest\032/.googl" - + "e.cloud.dialogflow.v2.ConversationProfile\"\352\001\332A" - + " conversation_profile,update_mask\202" - + "\323\344\223\002\300\0012A/v2/{conversation_profile.name=p" - + "rojects/*/conversationProfiles/*}:\024conversation_profileZe2M/v2/{conversation_pro" - + "file.name=projects/*/locations/*/convers" - + "ationProfiles/*}:\024conversation_profile\022\352\001\n" - + "\031DeleteConversationProfile\022<.google.cloud.dialogflow.v2.DeleteConversationProf" - + "ileRequest\032\026.google.protobuf.Empty\"w\332A\004n" - + "ame\202\323\344\223\002j*,/v2/{name=projects/*/conversa" - + "tionProfiles/*}Z:*8/v2/{name=projects/*/locations/*/conversationProfiles/*}\022\350\003\n" - + "\032SetSuggestionFeatureConfig\022=.google.clou" - + "d.dialogflow.v2.SetSuggestionFeatureConf" - + "igRequest\032\035.google.longrunning.Operation\"\353\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conve" - + "rsation_profile\332A?conversation_profile,participant_role,suggestion_feature_confi" - + "g\202\323\344\223\002\306\001\"W/v2/{conversation_profile=proj" - + "ects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zh\"c/v2/{conversatio" - + "n_profile=projects/*/locations/*/convers" - + "ationProfiles/*}:setSuggestionFeatureConfig:\001*\022\360\003\n" - + "\034ClearSuggestionFeatureConfig\022?.google.cloud.dialogflow.v2.ClearSugges" - + "tionFeatureConfigRequest\032\035.google.longrunning.Operation\"\357\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFeatureConfigOperatio" - + "nMetadata\332A\024conversation_profile\332A=conve" - + "rsation_profile,participant_role,suggest" - + "ion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conversati" - + "on_profile=projects/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\001*Zj\"" - + "e/v2/{conversation_profile=projects/*/locations/*/conversationProfiles/*}:clearS" - + "uggestionFeatureConfig:\001*\032x\312A\031dialogflow" - + ".googleapis.com\322AYhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\235\002\n" - + "\036com.google.cloud.dialogflow.v2B\030ConversationProf" - + "ileProtoP\001Z>cloud.google.com/go/dialogfl" - + "ow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022Lp" - + "rojects/{project}/locations/{location}/securitySettings/{security_settings}b\006proto3" + + "eryConfig.DialogflowQuerySource.HumanAge" + + "ntSideConfigB\003\340A\001\032N\n\024HumanAgentSideConfi" + + "g\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.goo" + + "gleapis.com/Agent\032v\n\025ContextFilterSettin" + + "gs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dro" + + "p_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_i" + + "vr_messages\030\003 \001(\010\032\242\002\n\010Sections\022w\n\rsectio" + + "n_types\030\001 \003(\0162`.google.cloud.dialogflow." + + "v2.HumanAgentAssistantConfig.SuggestionQ" + + "ueryConfig.Sections.SectionType\"\234\001\n\013Sect" + + "ionType\022\034\n\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003" + + "\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025CUSTOME" + + "R_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_" + + "source\032z\n\027ConversationModelConfig\022?\n\005mod" + + "el\030\001 \001(\tB0\372A-\n+dialogflow.googleapis.com" + + "/ConversationModel\022\036\n\026baseline_model_ver" + + "sion\030\010 \001(\t\032;\n\031ConversationProcessConfig\022" + + "\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Mess" + + "ageAnalysisConfig\022 \n\030enable_entity_extra" + + "ction\030\002 \001(\010\022!\n\031enable_sentiment_analysis" + + "\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3\030\005" + + " \001(\010B\003\340A\001\"\304\003\n\027HumanAgentHandoffConfig\022b\n" + + "\022live_person_config\030\001 \001(\0132D.google.cloud" + + ".dialogflow.v2.HumanAgentHandoffConfig.L" + + "ivePersonConfigH\000\022u\n\034salesforce_live_age" + + "nt_config\030\002 \001(\0132M.google.cloud.dialogflo" + + "w.v2.HumanAgentHandoffConfig.SalesforceL" + + "iveAgentConfigH\000\032/\n\020LivePersonConfig\022\033\n\016" + + "account_number\030\001 \001(\tB\003\340A\002\032\213\001\n\031Salesforce" + + "LiveAgentConfig\022\034\n\017organization_id\030\001 \001(\t" + + "B\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbut" + + "ton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoint_domain\030\004 \001" + + "(\tB\003\340A\002B\017\n\ragent_service\"\277\001\n\022Notificatio" + + "nConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format" + + "\030\002 \001(\0162<.google.cloud.dialogflow.v2.Noti" + + "ficationConfig.MessageFormat\"D\n\rMessageF" + + "ormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + + "\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032e" + + "nable_stackdriver_logging\030\003 \001(\010\"\362\001\n\021Sugg" + + "estionFeature\022@\n\004type\030\001 \001(\01622.google.clo" + + "ud.dialogflow.v2.SuggestionFeature.Type\"" + + "\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICL" + + "E_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003" + + "\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022\024\n\020KNOW" + + "LEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" + + "!SetSuggestionFeatureConfigRequest\022!\n\024co" + + "nversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020partici" + + "pant_role\030\002 \001(\0162,.google.cloud.dialogflo" + + "w.v2.Participant.RoleB\003\340A\002\022u\n\031suggestion" + + "_feature_config\030\003 \001(\0132M.google.cloud.dia" + + "logflow.v2.HumanAgentAssistantConfig.Sug" + + "gestionFeatureConfigB\003\340A\002\"\357\001\n#ClearSugge" + + "stionFeatureConfigRequest\022!\n\024conversatio" + + "n_profile\030\001 \001(\tB\003\340A\002\022K\n\020participant_role" + + "\030\002 \001(\0162,.google.cloud.dialogflow.v2.Part" + + "icipant.RoleB\003\340A\002\022X\n\027suggestion_feature_" + + "type\030\003 \001(\01622.google.cloud.dialogflow.v2." + + "SuggestionFeature.TypeB\003\340A\002\"\243\002\n+SetSugge" + + "stionFeatureConfigOperationMetadata\022\034\n\024c" + + "onversation_profile\030\001 \001(\t\022K\n\020participant" + + "_role\030\002 \001(\0162,.google.cloud.dialogflow.v2" + + ".Participant.RoleB\003\340A\002\022X\n\027suggestion_fea" + + "ture_type\030\003 \001(\01622.google.cloud.dialogflo" + + "w.v2.SuggestionFeature.TypeB\003\340A\002\022/\n\013crea" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\"\245\002\n-ClearSuggestionFeatureConfigOperat" + + "ionMetadata\022\034\n\024conversation_profile\030\001 \001(" + + "\t\022K\n\020participant_role\030\002 \001(\0162,.google.clo" + + "ud.dialogflow.v2.Participant.RoleB\003\340A\002\022X" + + "\n\027suggestion_feature_type\030\003 \001(\01622.google" + + ".cloud.dialogflow.v2.SuggestionFeature.T" + + "ypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp2\263\024\n\024ConversationProfil" + + "es\022\220\002\n\030ListConversationProfiles\022;.google" + + ".cloud.dialogflow.v2.ListConversationPro" + + "filesRequest\032<.google.cloud.dialogflow.v" + + "2.ListConversationProfilesResponse\"y\332A\006p" + + "arent\202\323\344\223\002j\022,/v2/{parent=projects/*}/con" + + "versationProfilesZ:\0228/v2/{parent=project" + + "s/*/locations/*}/conversationProfiles\022\375\001" + + "\n\026GetConversationProfile\0229.google.cloud." + + "dialogflow.v2.GetConversationProfileRequ" + + "est\032/.google.cloud.dialogflow.v2.Convers" + + "ationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=p" + + "rojects/*/conversationProfiles/*}Z:\0228/v2" + + "/{name=projects/*/locations/*/conversati" + + "onProfiles/*}\022\310\002\n\031CreateConversationProf" + + "ile\022<.google.cloud.dialogflow.v2.CreateC" + + "onversationProfileRequest\032/.google.cloud" + + ".dialogflow.v2.ConversationProfile\"\273\001\332A\033" + + "parent,conversation_profile\202\323\344\223\002\226\001\",/v2/" + + "{parent=projects/*}/conversationProfiles" + + ":\024conversation_profileZP\"8/v2/{parent=pr" + + "ojects/*/locations/*}/conversationProfil" + + "es:\024conversation_profile\022\367\002\n\031UpdateConve" + + "rsationProfile\022<.google.cloud.dialogflow" + + ".v2.UpdateConversationProfileRequest\032/.g" + + "oogle.cloud.dialogflow.v2.ConversationPr" + + "ofile\"\352\001\332A conversation_profile,update_m" + + "ask\202\323\344\223\002\300\0012A/v2/{conversation_profile.na" + + "me=projects/*/conversationProfiles/*}:\024c" + + "onversation_profileZe2M/v2/{conversation" + + "_profile.name=projects/*/locations/*/con" + + "versationProfiles/*}:\024conversation_profi" + + "le\022\352\001\n\031DeleteConversationProfile\022<.googl" + + "e.cloud.dialogflow.v2.DeleteConversation" + + "ProfileRequest\032\026.google.protobuf.Empty\"w" + + "\332A\004name\202\323\344\223\002j*,/v2/{name=projects/*/conv" + + "ersationProfiles/*}Z:*8/v2/{name=project" + + "s/*/locations/*/conversationProfiles/*}\022" + + "\350\003\n\032SetSuggestionFeatureConfig\022=.google." + + "cloud.dialogflow.v2.SetSuggestionFeature" + + "ConfigRequest\032\035.google.longrunning.Opera" + + "tion\"\353\002\312AB\n\023ConversationProfile\022+SetSugg" + + "estionFeatureConfigOperationMetadata\332A\024c" + + "onversation_profile\332A?conversation_profi" + + "le,participant_role,suggestion_feature_c" + + "onfig\202\323\344\223\002\306\001\"W/v2/{conversation_profile=" + + "projects/*/conversationProfiles/*}:setSu" + + "ggestionFeatureConfig:\001*Zh\"c/v2/{convers" + + "ation_profile=projects/*/locations/*/con" + + "versationProfiles/*}:setSuggestionFeatur" + + "eConfig:\001*\022\360\003\n\034ClearSuggestionFeatureCon" + + "fig\022?.google.cloud.dialogflow.v2.ClearSu" + + "ggestionFeatureConfigRequest\032\035.google.lo" + + "ngrunning.Operation\"\357\002\312AD\n\023ConversationP" + + "rofile\022-ClearSuggestionFeatureConfigOper" + + "ationMetadata\332A\024conversation_profile\332A=c" + + "onversation_profile,participant_role,sug" + + "gestion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conver" + + "sation_profile=projects/*/conversationPr" + + "ofiles/*}:clearSuggestionFeatureConfig:\001" + + "*Zj\"e/v2/{conversation_profile=projects/" + + "*/locations/*/conversationProfiles/*}:cl" + + "earSuggestionFeatureConfig:\001*\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\235\002\n\036com." + + "google.cloud.dialogflow.v2B\030Conversation" + + "ProfileProtoP\001Z>cloud.google.com/go/dial" + + "ogflow/apiv2/dialogflowpb;dialogflowpb\242\002" + + "\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n,dia" + + "logflow.googleapis.com/CXSecuritySetting" + + "s\022Lprojects/{project}/locations/{locatio" + + "n}/securitySettings/{security_settings}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -706,7 +714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, new java.lang.String[] { - "EnableEntityExtraction", "EnableSentimentAnalysis", + "EnableEntityExtraction", "EnableSentimentAnalysis", "EnableSentimentAnalysisV3", }); internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor = getDescriptor().getMessageType(9); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java index 0203625d5985..fe7459b38375 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java @@ -64,10 +64,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_Conversation_ContextReference_ContextContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_Conversation_ContextReference_ContextContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -196,6 +208,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SearchKnowledgeRequest_SearchConfig_FilterSpecs_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SearchKnowledgeRequest_SearchConfig_FilterSpecs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -230,7 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud/dialogflow/v2/conversation_profile.proto\032*google/cloud/dialogflow/v2/genera" + "tor.proto\032,google/cloud/dialogflow/v2/participant.proto\032(google/cloud/dialogflow" + "/v2/session.proto\032\034google/protobuf/struc" - + "t.proto\032\037google/protobuf/timestamp.proto\"\377\021\n" + + "t.proto\032\037google/protobuf/timestamp.proto\"\364\026\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022U\n" + "\017lifecycle_state\030\002 \001(\01627.google.cloud." @@ -244,17 +264,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022conversation_stage\030\007 \001(\0162:.google.cloud.d" + "ialogflow.v2.Conversation.ConversationStageB\003\340A\001\022h\n" + "\031telephony_connection_info\030\n" - + " \001(\0132@.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoB\003\340A\003\022q\n" - + "\033ingested_context_references\030\021 \003(\0132G.google" - + ".cloud.dialogflow.v2.Conversation.IngestedContextReferencesEntryB\003\340A\003\032\216\003\n" + + " \001(\0132@.google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfoB\003\340A\003\022]\n" + + "\034initial_conversation_profile\030\017 \001(\0132/.googl" + + "e.cloud.dialogflow.v2.ConversationProfileB\006\340A\001\340A\003\022q\n" + + "\033ingested_context_references\030\021 \003(\0132G.google.cloud.dialogflow.v2.Conv" + + "ersation.IngestedContextReferencesEntryB\003\340A\003\022o\n" + + "\032initial_generator_contexts\030\022 \003(\013" + + "2F.google.cloud.dialogflow.v2.Conversati" + + "on.InitialGeneratorContextsEntryB\003\340A\003\032\216\003\n" + "\027TelephonyConnectionInfo\022\032\n\r" + "dialed_number\030\002 \001(\tB\003\340A\003\022\020\n" + "\003sdp\030\005 \001(\tB\003\340A\001\022d\n" - + "\013sip_headers\030\014 \003(\0132J.google.cloud.dialogflow.v2.Conver" - + "sation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022n\n" + + "\013sip_headers\030\014 \003(\0132J.google.cloud.dialogflow.v" + + "2.Conversation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022n\n" + "\023extra_mime_contents\030\r" - + " \003(\0132L.goo" - + "gle.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + + " \003(\0132L.google.cloud.dialogflow.v2.Conversa" + + "tion.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + "\tSipHeader\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\032;\n" @@ -262,19 +287,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\014B\003\340A\001\032\254\005\n" + "\020ContextReference\022g\n" - + "\020context_contents\030\001 \003(\0132H." - + "google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContentB\003\340A\002\022^\n" - + "\013update_mode\030\002 \001(\0162D.google.cloud.dialogf" - + "low.v2.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + + "\020context_contents\030\001 \003(\0132H.google.cloud.dialogflow.v2.Conve" + + "rsation.ContextReference.ContextContentB\003\340A\002\022^\n" + + "\013update_mode\030\002 \001(\0162D.google.cloud" + + ".dialogflow.v2.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\266\002\n" + "\016ContextContent\022\024\n" + "\007content\030\001 \001(\tB\003\340A\002\022s\n" - + "\016content_format\030\002 \001(\0162V.google.cloud.dialogflow.v2.Conversatio" - + "n.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + + "\016content_format\030\002 \001(\0162V.google.cloud.dialogflow.v2.Con" + + "versation.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + "\016ingestion_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n" + + "\r" + "answer_record\030\004 \001(\t\"I\n\r" + "ContentFormat\022\036\n" + "\032CONTENT_FORMAT_UNSPECIFIED\020\000\022\010\n" @@ -283,11 +309,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UpdateMode\022\033\n" + "\027UPDATE_MODE_UNSPECIFIED\020\000\022\n\n" + "\006APPEND\020\001\022\r\n" - + "\tOVERWRITE\020\002\032{\n" + + "\tOVERWRITE\020\002\032\246\002\n" + + "\020GeneratorContext\022d\n" + + "\016generator_type\030\001 \001(\0162G.google.cloud.dialogflow.v2." + + "Conversation.GeneratorContext.GeneratorTypeB\003\340A\003\"\253\001\n\r" + + "GeneratorType\022\036\n" + + "\032GENERATOR_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tFREE_FORM\020\001\022\022\n" + + "\016AGENT_COACHING\020\002\022\021\n\r" + + "SUMMARIZATION\020\003\022\017\n" + + "\013TRANSLATION\020\004\022\022\n" + + "\016AGENT_FEEDBACK\020\005\022\037\n" + + "\033CUSTOMER_MESSAGE_GENERATION\020\006\032{\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialo" - + "gflow.v2.Conversation.ContextReference:\0028\001\"Q\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.ContextReference:\0028\001\032z\n" + + "\035InitialGeneratorContextsEntry\022\013\n" + + "\003key\030\001 \001(\t\022H\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.GeneratorContext:\0028\001\"Q\n" + "\016LifecycleState\022\037\n" + "\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\r\n" @@ -296,12 +337,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027\n" + "\023VIRTUAL_AGENT_STAGE\020\001\022\026\n" + "\022HUMAN_ASSIST_STAGE\020\002:\300\001\352A\274\001\n" - + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conversations/{conver" - + "sation}\022Dprojects/{project}/locations/{location}/conversations/{conversation}*\r" + + "&dialogflow.googleapis.com/Conversation\022/projects/{p" + + "roject}/conversations/{conversation}\022Dpr" + + "ojects/{project}/locations/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"\276\001\n" + "\031CreateConversationRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(" - + "\022&dialogflow.googleapis.com/Conversation\022C\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022C\n" + "\014conversation\030\002" + " \001(\0132(.google.cloud.dialogflow.v2.ConversationB\003\340A\002\022\034\n" + "\017conversation_id\030\003 \001(\tB\003\340A\001\"\240\001\n" @@ -335,50 +377,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IngestContextReferencesRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022r\n" - + "\022context_references\030\002 \003(\0132Q.goog" - + "le.cloud.dialogflow.v2.IngestContextRefe" - + "rencesRequest.ContextReferencesEntryB\003\340A\002\032s\n" + + "\022context_references\030\002 \003(\0132Q.google.cloud.di" + + "alogflow.v2.IngestContextReferencesRequest.ContextReferencesEntryB\003\340A\002\032s\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialogflo" - + "w.v2.Conversation.ContextReference:\0028\001\"\237\002\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.dialogflow.v2.Conversation.ContextReference:\0028\001\"\237\002\n" + "\037IngestContextReferencesResponse\022\177\n" - + "\033ingested_context_references\030\001 \003(\0132Z.google" - + ".cloud.dialogflow.v2.IngestContextRefere" - + "ncesResponse.IngestedContextReferencesEntry\032{\n" + + "\033ingested_context_references\030\001 \003(\0132Z.google.cloud.dial" + + "ogflow.v2.IngestContextReferencesResponse.IngestedContextReferencesEntry\032{\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud" - + ".dialogflow.v2.Conversation.ContextReference:\0028\001\"\234\002\n" + + "\005value\030\002 \001(\01329.google.cloud.dialogflow" + + ".v2.Conversation.ContextReference:\0028\001\"\234\002\n" + "!SuggestConversationSummaryRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\004 \001(\005B\003\340A\001\022S\n" - + "\023assist_query_params\030\005 \001(\0132" - + "1.google.cloud.dialogflow.v2.AssistQueryParametersB\003\340A\001\"\367\003\n" + + "\023assist_query_params\030\005 \001(\01321.google.cl" + + "oud.dialogflow.v2.AssistQueryParametersB\003\340A\001\"\252\005\n" + "\"SuggestConversationSummaryResponse\022W\n" - + "\007summary\030\001 \001(\0132F.google" - + ".cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132F.google.cloud.dial" + + "ogflow.v2.SuggestConversationSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" - + "\014context_size\030\003 \001(\005\032\241\002\n" + + "\014context_size\030\003 \001(\005\032\324\003\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022o\n\r" - + "text_sections\030\004 \003(\0132X.google.cloud.dialogflow.v2.SuggestConve" - + "rsationSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + + "text_sections\030\004 \003(\0132X.google.clo" + + "ud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.TextSectionsEntry\022s\n" + + "\024sorted_text_sections\030\006 \003(\0132U.google.clo" + + "ud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\036\n" - + "\026baseline_model_version\030\005 \001(\t\0323\n" + + "\026baseline_model_version\030\005 \001(\t\032<\n" + + "\016SummarySection\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007summary\030\002 \001(\tB\003\340A\003\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\334\003\n" + "\037GenerateStatelessSummaryRequest\022t\n" - + "\026stateless_conversation\030\001 \001(\0132O.google.c" - + "loud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022R\n" - + "\024conversation_profile\030\002 \001(\0132/.google.cloud" - + ".dialogflow.v2.ConversationProfileB\003\340A\002\022A\n" + + "\026stateless_conversation\030\001 \001(\0132O." + + "google.cloud.dialogflow.v2.GenerateState" + + "lessSummaryRequest.MinimalConversationB\003\340A\002\022R\n" + + "\024conversation_profile\030\002 \001(\0132/.goog" + + "le.cloud.dialogflow.v2.ConversationProfileB\003\340A\002\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\035\n" + "\020max_context_size\030\004 \001(\005B\003\340A\001\032\214\001\n" @@ -388,15 +434,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\"\255\003\n" + " GenerateStatelessSummaryResponse\022U\n" - + "\007summary\030\001 \001(\0132D.google.cloud.dialogflow" - + ".v2.GenerateStatelessSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132D.google.cloud.di" + + "alogflow.v2.GenerateStatelessSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\333\001\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022m\n\r" - + "text_sections\030\002 \003(\0132V.google.cloud.dialo" - + "gflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + + "text_sections\030\002 \003(\0132V.google.clo" + + "ud.dialogflow.v2.GenerateStatelessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + "\026baseline_model_version\030\004 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -406,8 +452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!locations.googleapis.com/Location\022:\n" + "\tgenerator\030\002 \001(\0132%.google.cloud.dialogflow.v2.GeneratorH\000\022\030\n" + "\016generator_name\030\003 \001(\tH\000\022v\n" - + "\022context_references\030\004 \003(\0132U.google.cloud.dialogflow.v2.Genera" - + "teStatelessSuggestionRequest.ContextReferencesEntryB\003\340A\001\022R\n" + + "\022context_references\030\004 \003(\0132U.google.cloud.dialogflow.v" + + "2.GenerateStatelessSuggestionRequest.ContextReferencesEntryB\003\340A\001\022R\n" + "\024conversation_context\030\005" + " \001(\0132/.google.cloud.dialogflow.v2.ConversationContextB\003\340A\001\022E\n" + "\016trigger_events\030\006" @@ -415,8 +461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021security_settings\030\010 \001(\tB\003\340A\001\032s\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.dialogf" - + "low.v2.Conversation.ContextReference:\0028\001B\024\n" + + "\005value\030\002 \001(\01329.google.cloud" + + ".dialogflow.v2.Conversation.ContextReference:\0028\001B\024\n" + "\022generator_resource\"y\n" + "#GenerateStatelessSuggestionResponse\022R\n" + "\024generator_suggestion\030\001" @@ -432,44 +478,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\005 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022Y\n" - + "\014query_source\030\007 \001(" - + "\0162>.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + + "\014query_source\030\007 \001(\0162>.google.cloud.dialogflow.v2.S" + + "earchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + "\021end_user_metadata\030\t" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022[\n\r" - + "search_config\030\013 \001(\0132?.google." - + "cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + + "search_config\030\013 \001(\0132?" + + ".google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + "\014exact_search\030\016 \001(\010B\003\340A\001\032\333\014\n" + "\014SearchConfig\022d\n" - + "\013boost_specs\030\001 \003(\0132J.google.cloud.dialogflow.v2.Searc" - + "hKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022f\n" - + "\014filter_specs\030\002 \003(\0132K.google.cl" - + "oud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\276\n\n\n" + + "\013boost_specs\030\001 \003(\0132J.google.cloud.dialogflow." + + "v2.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022f\n" + + "\014filter_specs\030\002 \003(\0132K.google.cloud.dialogflow.v2.SearchKnowledg" + + "eRequest.SearchConfig.FilterSpecsB\003\340A\001\032\276\n\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022g\n" - + "\004spec\030\002 \003(\0132T.google.cloud.dialogflow.v2." - + "SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\377\010\n" + + "\004spec\030\002 \003(\0132T.google.cloud.dialog" + + "flow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\377\010\n" + "\tBoostSpec\022\213\001\n" - + "\025condition_boost_specs\030\001 \003(\0132g.google.clo" - + "ud.dialogflow.v2.SearchKnowledgeRequest." - + "SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\343\007\n" + + "\025condition_boost_specs\030\001 \003(\0132g.go" + + "ogle.cloud.dialogflow.v2.SearchKnowledge" + + "Request.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\343\007\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022\231\001\n" - + "\022boost_control_spec\030\004 \001(\0132x.goog" - + "le.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec." - + "ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\204\006\n" + + "\022boost_control_spec\030\004 \001(\0132x.google.cloud.dialogflow.v2.SearchKno" + + "wledgeRequest.SearchConfig.BoostSpecs.Bo" + + "ostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\204\006\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022\244\001\n" - + "\016attribute_type\030\002 \001(\0162\206\001.googl" - + "e.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.C" - + "onditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\254\001\n" - + "\022interpolation_type\030\003 \001(\0162\212\001.google.cloud.dialogflow.v2.SearchK" - + "nowledgeRequest.SearchConfig.BoostSpecs." - + "BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\243\001\n" - + "\016control_points\030\004 \003(\0132\205\001.google.cloud.dialogflow" - + ".v2.SearchKnowledgeRequest.SearchConfig." - + "BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162\206\001.google.cloud.dialogflow.v2.SearchKnow" + + "ledgeRequest.SearchConfig.BoostSpecs.Boo" + + "stSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\254\001\n" + + "\022interpolation_type\030\003 \001(\0162\212\001.google.cloud.dialogflow.v2" + + ".SearchKnowledgeRequest.SearchConfig.Boo" + + "stSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\243\001\n" + + "\016control_points\030\004 \003(\0132\205\001.google.cloud.di" + + "alogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBo" + + "ostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -486,17 +532,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013QuerySource\022\034\n" + "\030QUERY_SOURCE_UNSPECIFIED\020\000\022\017\n" + "\013AGENT_QUERY\020\001\022\023\n" - + "\017SUGGESTED_QUERY\020\002\"v\n" + + "\017SUGGESTED_QUERY\020\002\"\244\004\n" + + "\030SearchKnowledgeDebugInfo\022V\n" + + "\031datastore_response_reason\030\001 \001(\01623.googl" + + "e.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031search_knowledge_behavior\030\002 \001(\013" + + "2L.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\003" + + " \001(\0132=.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\004" + + " \001(\0132*.google.cloud.dialogflow.v2.ServiceLatency\032\213\001\n" + + "\027SearchKnowledgeBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\004 \001(\010\"\321\001\n" + "\027SearchKnowledgeResponse\022B\n" + "\007answers\030\002" + " \003(\01321.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\022\027\n" - + "\017rewritten_query\030\003 \001(\t\"\316\003\n" + + "\017rewritten_query\030\003 \001(\t\022Y\n" + + "\033search_knowledge_debug_info\030\004 \001(\01324." + + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\316\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022Q\n" - + "\013answer_type\030\002 \001(\0162<.google.cloud.d" - + "ialogflow.v2.SearchKnowledgeAnswer.AnswerType\022V\n" - + "\016answer_sources\030\003 \003(\0132>.google.c" - + "loud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + + "\013answer_type\030\002 \001(\0162<.goo" + + "gle.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType\022V\n" + + "\016answer_sources\030\003 \003(\013" + + "2>.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + "answer_record\030\005 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032f\n" + "\014AnswerSource\022\r\n" @@ -506,8 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003FAQ\020\001\022\016\n" - + "\n" + + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" + "\006INTENT\020\003\"\354\001\n" + "\032GenerateSuggestionsRequest\022D\n" @@ -518,75 +578,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016trigger_events\030\003" + " \003(\0162(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\0012\246\032\n\r" + "Conversations\022\214\002\n" - + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversationRequest" - + "\032(.google.cloud.dialogflow.v2.Conversati" - + "on\"\224\001\332A\023parent,conversation\202\323\344\223\002x\"%/v2/{" - + "parent=projects/*}/conversations:\014conver" - + "sationZA\"1/v2/{parent=projects/*/locations/*}/conversations:\014conversation\022\355\001\n" - + "\021ListConversations\0224.google.cloud.dialogflo" - + "w.v2.ListConversationsRequest\0325.google.cloud.dialogflow.v2.ListConversationsResp" - + "onse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{parent=proje" - + "cts/*}/conversationsZ3\0221/v2/{parent=projects/*/locations/*}/conversations\022\332\001\n" - + "\017GetConversation\0222.google.cloud.dialogflow." - + "v2.GetConversationRequest\032(.google.cloud" - + ".dialogflow.v2.Conversation\"i\332A\004name\202\323\344\223" - + "\002\\\022%/v2/{name=projects/*/conversations/*" - + "}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" - + "\024CompleteConversation\0227.google.cloud.dialogflow.v2.CompleteCon" - + "versationRequest\032(.google.cloud.dialogfl" - + "ow.v2.Conversation\"\201\001\332A\004name\202\323\344\223\002t\"./v2/" - + "{name=projects/*/conversations/*}:comple" - + "te:\001*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\222\002\n" - + "\027IngestContextReferences\022:.google.cloud.dialog" - + "flow.v2.IngestContextReferencesRequest\032;.google.cloud.dialogflow.v2.IngestContex" - + "tReferencesResponse\"~\332A\037conversation,con" - + "text_references\202\323\344\223\002V\"Q/v2/{conversation" - + "=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\365\001\n" - + "\014ListMessages\022/.google.cloud.dialogflow.v2.ListMe" - + "ssagesRequest\0320.google.cloud.dialogflow." - + "v2.ListMessagesResponse\"\201\001\332A\006parent\202\323\344\223\002" - + "r\0220/v2/{parent=projects/*/conversations/" - + "*}/messagesZ>\022.google.cloud.dialogflow.v2.S" - + "uggestConversationSummaryResponse\"\326\001\332A\014c" - + "onversation\202\323\344\223\002\300\001\"T/v2/{conversation=pr" - + "ojects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze\"`/v2/{conv" - + "ersation=projects/*/locations/*/conversa" - + "tions/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" - + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2.GenerateSta" - + "telessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSummaryRespon" - + "se\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_conversatio" - + "n.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{stateless_c" - + "onversation.parent=projects/*/locations/" - + "*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" - + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.GenerateStateles" - + "sSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionRespo" - + "nse\"K\202\323\344\223\002E\"@/v2/{parent=projects/*/loca" - + "tions/*}/statelessSuggestion:generate:\001*\022\256\003\n" - + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequest\0323.googl" - + "e.cloud.dialogflow.v2.SearchKnowledgeRes" - + "ponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=projects/*}" - + "/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*}/suggestio" - + "ns:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestio" - + "ns:searchKnowledge:\001*ZZ\"U/v2/{conversati" - + "on=projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" - + "\023GenerateSuggestions\0226.google.cloud.dialogf" - + "low.v2.GenerateSuggestionsRequest\0327.google.cloud.dialogflow.v2.GenerateSuggestio" - + "nsResponse\"\262\001\332A\014conversation\202\323\344\223\002\234\001\"B/v2" - + "/{conversation=projects/*/conversations/*}/suggestions:generate:\001*ZS\"N/v2/{conve" - + "rsation=projects/*/locations/*/conversat" - + "ions/*}/suggestions:generate:\001*\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\275\003\n" - + "\036com.google.cloud.dialogflow.v2B\021Conversati" - + "onProtoP\001Z>cloud.google.com/go/dialogflo" - + "w/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xproje" - + "cts/{project}/locations/{location}/collections/{collection}/dataStores/{data_sto" - + "re}\022?projects/{project}/locations/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/loc" - + "ations/{location}/apps/{app}/tools/{tool}b\006proto3" + + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversa" + + "tionRequest\032(.google.cloud.dialogflow.v2" + + ".Conversation\"\224\001\332A\023parent,conversation\202\323" + + "\344\223\002x\"%/v2/{parent=projects/*}/conversati" + + "ons:\014conversationZA\"1/v2/{parent=project" + + "s/*/locations/*}/conversations:\014conversation\022\355\001\n" + + "\021ListConversations\0224.google.cloud.dialogflow.v2.ListConversationsRequest" + + "\0325.google.cloud.dialogflow.v2.ListConver" + + "sationsResponse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{p" + + "arent=projects/*}/conversationsZ3\0221/v2/{" + + "parent=projects/*/locations/*}/conversations\022\332\001\n" + + "\017GetConversation\0222.google.cloud.dialogflow.v2.GetConversationRequest\032(.g" + + "oogle.cloud.dialogflow.v2.Conversation\"i" + + "\332A\004name\202\323\344\223\002\\\022%/v2/{name=projects/*/conv" + + "ersations/*}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" + + "\024CompleteConversation\0227.google.cloud.dialogflow.v2." + + "CompleteConversationRequest\032(.google.clo" + + "ud.dialogflow.v2.Conversation\"\201\001\332A\004name\202" + + "\323\344\223\002t\"./v2/{name=projects/*/conversation" + + "s/*}:complete:\001*Z?\":/v2/{name=projects/*" + + "/locations/*/conversations/*}:complete:\001*\022\222\002\n" + + "\027IngestContextReferences\022:.google.cloud.dialogflow.v2.IngestContextReferenc" + + "esRequest\032;.google.cloud.dialogflow.v2.I" + + "ngestContextReferencesResponse\"~\332A\037conve" + + "rsation,context_references\202\323\344\223\002V\"Q/v2/{c" + + "onversation=projects/*/locations/*/conve" + + "rsations/*}:ingestContextReferences:\001*\022\365\001\n" + + "\014ListMessages\022/.google.cloud.dialogflo" + + "w.v2.ListMessagesRequest\0320.google.cloud." + + "dialogflow.v2.ListMessagesResponse\"\201\001\332A\006" + + "parent\202\323\344\223\002r\0220/v2/{parent=projects/*/con" + + "versations/*}/messagesZ>\022.google.cloud.dialogflow.v2.SuggestConversationSummaryResp" + + "onse\"\326\001\332A\014conversation\202\323\344\223\002\300\001\"T/v2/{conv" + + "ersation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze" + + "\"`/v2/{conversation=projects/*/locations" + + "/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" + + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2." + + "GenerateStatelessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSu" + + "mmaryResponse\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_" + + "conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{" + + "stateless_conversation.parent=projects/*" + + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" + + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.Gener" + + "ateStatelessSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSugg" + + "estionResponse\"K\202\323\344\223\002E\"@/v2/{parent=proj" + + "ects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" + + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequ" + + "est\0323.google.cloud.dialogflow.v2.SearchK" + + "nowledgeResponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=" + + "projects/*}/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*" + + "}/suggestions:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*" + + "}/suggestions:searchKnowledge:\001*ZZ\"U/v2/{conversation=projects/*/locations/*/con" + + "versations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" + + "\023GenerateSuggestions\0226.google.cloud.dialogflow.v2.GenerateSuggestionsReq" + + "uest\0327.google.cloud.dialogflow.v2.Genera" + + "teSuggestionsResponse\"\262\001\332A\014conversation\202" + + "\323\344\223\002\234\001\"B/v2/{conversation=projects/*/con" + + "versations/*}/suggestions:generate:\001*ZS\"N/v2/{conversation=projects/*/locations/" + + "*/conversations/*}/suggestions:generate:" + + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialogflowB\275\003\n" + + "\036com.google.cloud.dialogflow.v2B\021ConversationProtoP\001Z>cloud.google.com/g" + + "o/dialogflow/apiv2/dialogflowpb;dialogfl" + + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" + + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" + + "ions/{location}/dataStores/{data_store}\352AZ\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" + + "tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -617,7 +681,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndTime", "ConversationStage", "TelephonyConnectionInfo", + "InitialConversationProfile", "IngestedContextReferences", + "InitialGeneratorContexts", }); internal_static_google_cloud_dialogflow_v2_Conversation_TelephonyConnectionInfo_descriptor = internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(0); @@ -662,14 +728,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", "ContentFormat", "IngestionTime", "AnswerRecord", }); - internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor = internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(2); + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Conversation_GeneratorContext_descriptor, + new java.lang.String[] { + "GeneratorType", + }); + internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(3); internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_Conversation_IngestedContextReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor.getNestedType(4); + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Conversation_InitialGeneratorContextsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable = @@ -791,11 +873,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor, new java.lang.String[] { - "Text", "TextSections", "AnswerRecord", "BaselineModelVersion", + "Text", "TextSections", "SortedTextSections", "AnswerRecord", "BaselineModelVersion", }); - internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor = internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor, + new java.lang.String[] { + "Section", "Summary", + }); + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_descriptor + .getNestedType(1); internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor, @@ -957,16 +1048,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataStores", "Filter", }); - internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor = + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor = getDescriptor().getMessageType(18); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor, + new java.lang.String[] { + "DatastoreResponseReason", + "SearchKnowledgeBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", "EndUserMetadataIncluded", "ThirdPartyConnectorAllowed", + }); + internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor = + getDescriptor().getMessageType(19); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SearchKnowledgeResponse_descriptor, new java.lang.String[] { - "Answers", "RewrittenQuery", + "Answers", "RewrittenQuery", "SearchKnowledgeDebugInfo", }); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SearchKnowledgeAnswer_descriptor, @@ -983,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Title", "Uri", "Snippet", "Metadata", }); internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_GenerateSuggestionsRequest_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java new file mode 100644 index 000000000000..20edc2658820 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DatastoreResponseReason.java @@ -0,0 +1,356 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Response reason from datastore which indicates data serving status or
                                                                                                                                          + * answer quality degradation.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2.DatastoreResponseReason} + */ +@com.google.protobuf.Generated +public enum DatastoreResponseReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +   * Default value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + DATASTORE_RESPONSE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +   * No specific response reason from datastore.
                                                                                                                                          +   * 
                                                                                                                                          + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                                                                                                                                          +   * Search is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + SEARCH_OUT_OF_QUOTA(2), + /** + * + * + *
                                                                                                                                          +   * Search returns empty results.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_EMPTY_RESULTS = 3; + */ + SEARCH_EMPTY_RESULTS(3), + /** + * + * + *
                                                                                                                                          +   * Generative AI is disabled.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + ANSWER_GENERATION_GEN_AI_DISABLED(4), + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + ANSWER_GENERATION_OUT_OF_QUOTA(5), + /** + * + * + *
                                                                                                                                          +   * Answer generation encounters an error.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_ERROR = 6; + */ + ANSWER_GENERATION_ERROR(6), + /** + * + * + *
                                                                                                                                          +   * Answer generation does not have enough information to generate answer.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + ANSWER_GENERATION_NOT_ENOUGH_INFO(7), + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + ANSWER_GENERATION_RAI_FAILED(8), + /** + * + * + *
                                                                                                                                          +   * Answer generation is not grounded on reliable sources.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + ANSWER_GENERATION_NOT_GROUNDED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DatastoreResponseReason"); + } + + /** + * + * + *
                                                                                                                                          +   * Default value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + public static final int DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +   * No specific response reason from datastore.
                                                                                                                                          +   * 
                                                                                                                                          + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +   * Search is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + public static final int SEARCH_OUT_OF_QUOTA_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +   * Search returns empty results.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_EMPTY_RESULTS = 3; + */ + public static final int SEARCH_EMPTY_RESULTS_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +   * Generative AI is disabled.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + public static final int ANSWER_GENERATION_GEN_AI_DISABLED_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + public static final int ANSWER_GENERATION_OUT_OF_QUOTA_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +   * Answer generation encounters an error.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_ERROR = 6; + */ + public static final int ANSWER_GENERATION_ERROR_VALUE = 6; + + /** + * + * + *
                                                                                                                                          +   * Answer generation does not have enough information to generate answer.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + public static final int ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUE = 7; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + public static final int ANSWER_GENERATION_RAI_FAILED_VALUE = 8; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is not grounded on reliable sources.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + public static final int ANSWER_GENERATION_NOT_GROUNDED_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatastoreResponseReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatastoreResponseReason forNumber(int value) { + switch (value) { + case 0: + return DATASTORE_RESPONSE_REASON_UNSPECIFIED; + case 1: + return NONE; + case 2: + return SEARCH_OUT_OF_QUOTA; + case 3: + return SEARCH_EMPTY_RESULTS; + case 4: + return ANSWER_GENERATION_GEN_AI_DISABLED; + case 5: + return ANSWER_GENERATION_OUT_OF_QUOTA; + case 6: + return ANSWER_GENERATION_ERROR; + case 7: + return ANSWER_GENERATION_NOT_ENOUGH_INFO; + case 8: + return ANSWER_GENERATION_RAI_FAILED; + case 9: + return ANSWER_GENERATION_NOT_GROUNDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatastoreResponseReason findValueByNumber(int number) { + return DatastoreResponseReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DatastoreResponseReason[] VALUES = values(); + + public static DatastoreResponseReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatastoreResponseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.DatastoreResponseReason) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java index 43d168882e4e..8b65d1db6e2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Generator.java @@ -56,6 +56,9 @@ private Generator() { description_ = ""; triggerEvent_ = 0; tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + toolsetTools_ = java.util.Collections.emptyList(); + cesToolSpecs_ = java.util.Collections.emptyList(); + cesAppSpecs_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -885,6 +888,264 @@ public com.google.cloud.dialogflow.v2.SuggestionDedupingConfig getSuggestionDedu : suggestionDedupingConfig_; } + public static final int TOOLSET_TOOLS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List toolsetTools_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetToolsList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetToolsOrBuilderList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetToolsCount() { + return toolsetTools_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index) { + return toolsetTools_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index) { + return toolsetTools_.get(index); + } + + public static final int CES_TOOL_SPECS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List cesToolSpecs_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesToolSpecsList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesToolSpecsOrBuilderList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesToolSpecsCount() { + return cesToolSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index) { + return cesToolSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index) { + return cesToolSpecs_.get(index); + } + + public static final int CES_APP_SPECS_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private java.util.List cesAppSpecs_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesAppSpecsList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesAppSpecsOrBuilderList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesAppSpecsCount() { + return cesAppSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index) { + return cesAppSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index) { + return cesAppSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -936,6 +1197,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + output.writeMessage(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + output.writeMessage(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + output.writeMessage(29, cesAppSpecs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -995,6 +1265,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, cesAppSpecs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1030,6 +1309,9 @@ public boolean equals(final java.lang.Object obj) { if (hasSuggestionDedupingConfig()) { if (!getSuggestionDedupingConfig().equals(other.getSuggestionDedupingConfig())) return false; } + if (!getToolsetToolsList().equals(other.getToolsetToolsList())) return false; + if (!getCesToolSpecsList().equals(other.getCesToolSpecsList())) return false; + if (!getCesAppSpecsList().equals(other.getCesAppSpecsList())) return false; if (!getContextCase().equals(other.getContextCase())) return false; switch (contextCase_) { case 11: @@ -1089,6 +1371,18 @@ public int hashCode() { hash = (37 * hash) + SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSuggestionDedupingConfig().hashCode(); } + if (getToolsetToolsCount() > 0) { + hash = (37 * hash) + TOOLSET_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetToolsList().hashCode(); + } + if (getCesToolSpecsCount() > 0) { + hash = (37 * hash) + CES_TOOL_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesToolSpecsList().hashCode(); + } + if (getCesAppSpecsCount() > 0) { + hash = (37 * hash) + CES_APP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesAppSpecsList().hashCode(); + } switch (contextCase_) { case 11: hash = (37 * hash) + FREE_FORM_CONTEXT_FIELD_NUMBER; @@ -1258,6 +1552,9 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetSuggestionDedupingConfigFieldBuilder(); + internalGetToolsetToolsFieldBuilder(); + internalGetCesToolSpecsFieldBuilder(); + internalGetCesAppSpecsFieldBuilder(); } } @@ -1298,6 +1595,27 @@ public Builder clear() { suggestionDedupingConfigBuilder_.dispose(); suggestionDedupingConfigBuilder_ = null; } + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + } else { + toolsetTools_ = null; + toolsetToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + } else { + cesToolSpecs_ = null; + cesToolSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + } else { + cesAppSpecs_ = null; + cesAppSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); contextCase_ = 0; context_ = null; foundationModelCase_ = 0; @@ -1329,6 +1647,7 @@ public com.google.cloud.dialogflow.v2.Generator build() { public com.google.cloud.dialogflow.v2.Generator buildPartial() { com.google.cloud.dialogflow.v2.Generator result = new com.google.cloud.dialogflow.v2.Generator(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1337,6 +1656,36 @@ public com.google.cloud.dialogflow.v2.Generator buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2.Generator result) { + if (toolsetToolsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = java.util.Collections.unmodifiableList(toolsetTools_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.toolsetTools_ = toolsetTools_; + } else { + result.toolsetTools_ = toolsetToolsBuilder_.build(); + } + if (cesToolSpecsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = java.util.Collections.unmodifiableList(cesToolSpecs_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.cesToolSpecs_ = cesToolSpecs_; + } else { + result.cesToolSpecs_ = cesToolSpecsBuilder_.build(); + } + if (cesAppSpecsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = java.util.Collections.unmodifiableList(cesAppSpecs_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.cesAppSpecs_ = cesAppSpecs_; + } else { + result.cesAppSpecs_ = cesAppSpecsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2.Generator result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1441,6 +1790,87 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Generator other) { if (other.hasSuggestionDedupingConfig()) { mergeSuggestionDedupingConfig(other.getSuggestionDedupingConfig()); } + if (toolsetToolsBuilder_ == null) { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetTools_.isEmpty()) { + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureToolsetToolsIsMutable(); + toolsetTools_.addAll(other.toolsetTools_); + } + onChanged(); + } + } else { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetToolsBuilder_.isEmpty()) { + toolsetToolsBuilder_.dispose(); + toolsetToolsBuilder_ = null; + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + toolsetToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetToolsFieldBuilder() + : null; + } else { + toolsetToolsBuilder_.addAllMessages(other.toolsetTools_); + } + } + } + if (cesToolSpecsBuilder_ == null) { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecs_.isEmpty()) { + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.addAll(other.cesToolSpecs_); + } + onChanged(); + } + } else { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecsBuilder_.isEmpty()) { + cesToolSpecsBuilder_.dispose(); + cesToolSpecsBuilder_ = null; + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + cesToolSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesToolSpecsFieldBuilder() + : null; + } else { + cesToolSpecsBuilder_.addAllMessages(other.cesToolSpecs_); + } + } + } + if (cesAppSpecsBuilder_ == null) { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecs_.isEmpty()) { + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.addAll(other.cesAppSpecs_); + } + onChanged(); + } + } else { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecsBuilder_.isEmpty()) { + cesAppSpecsBuilder_.dispose(); + cesAppSpecsBuilder_ = null; + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + cesAppSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesAppSpecsFieldBuilder() + : null; + } else { + cesAppSpecsBuilder_.addAllMessages(other.cesAppSpecs_); + } + } + } switch (other.getContextCase()) { case FREE_FORM_CONTEXT: { @@ -1583,6 +2013,45 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 186 + case 218: + { + com.google.cloud.dialogflow.v2.ToolsetTool m = + input.readMessage( + com.google.cloud.dialogflow.v2.ToolsetTool.parser(), extensionRegistry); + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(m); + } else { + toolsetToolsBuilder_.addMessage(m); + } + break; + } // case 218 + case 226: + { + com.google.cloud.dialogflow.v2.CesToolSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2.CesToolSpec.parser(), extensionRegistry); + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(m); + } else { + cesToolSpecsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.dialogflow.v2.CesAppSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2.CesAppSpec.parser(), extensionRegistry); + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(m); + } else { + cesAppSpecsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3882,6 +4351,1218 @@ public Builder clearSuggestionDedupingConfig() { return suggestionDedupingConfigBuilder_; } + private java.util.List toolsetTools_ = + java.util.Collections.emptyList(); + + private void ensureToolsetToolsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = + new java.util.ArrayList(toolsetTools_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder> + toolsetToolsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetToolsList() { + if (toolsetToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsetTools_); + } else { + return toolsetToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetToolsCount() { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.size(); + } else { + return toolsetToolsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools(int index, com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(int index, com.google.cloud.dialogflow.v2.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsetTools( + java.lang.Iterable values) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsetTools_); + onChanged(); + } else { + toolsetToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTools() { + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + toolsetToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.remove(index); + onChanged(); + } else { + toolsetToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder getToolsetToolsBuilder(int index) { + return internalGetToolsetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsOrBuilderList() { + if (toolsetToolsBuilder_ != null) { + return toolsetToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsetTools_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder addToolsetToolsBuilder() { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.ToolsetTool.Builder addToolsetToolsBuilder(int index) { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsBuilderList() { + return internalGetToolsetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder> + internalGetToolsetToolsFieldBuilder() { + if (toolsetToolsBuilder_ == null) { + toolsetToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ToolsetTool, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder>( + toolsetTools_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + toolsetTools_ = null; + } + return toolsetToolsBuilder_; + } + + private java.util.List cesToolSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesToolSpecsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = + new java.util.ArrayList(cesToolSpecs_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder> + cesToolSpecsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesToolSpecsList() { + if (cesToolSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } else { + return cesToolSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesToolSpecsCount() { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.size(); + } else { + return cesToolSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs(int index, com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(int index, com.google.cloud.dialogflow.v2.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesToolSpecs( + java.lang.Iterable values) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesToolSpecs_); + onChanged(); + } else { + cesToolSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesToolSpecs() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + cesToolSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.remove(index); + onChanged(); + } else { + cesToolSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder getCesToolSpecsBuilder(int index) { + return internalGetCesToolSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsOrBuilderList() { + if (cesToolSpecsBuilder_ != null) { + return cesToolSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder addCesToolSpecsBuilder() { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesToolSpec.Builder addCesToolSpecsBuilder(int index) { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsBuilderList() { + return internalGetCesToolSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder> + internalGetCesToolSpecsFieldBuilder() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesToolSpec, + com.google.cloud.dialogflow.v2.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder>( + cesToolSpecs_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + cesToolSpecs_ = null; + } + return cesToolSpecsBuilder_; + } + + private java.util.List cesAppSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesAppSpecsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = + new java.util.ArrayList(cesAppSpecs_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder> + cesAppSpecsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesAppSpecsList() { + if (cesAppSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } else { + return cesAppSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesAppSpecsCount() { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.size(); + } else { + return cesAppSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs(int index, com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs( + int index, com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(int index, com.google.cloud.dialogflow.v2.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + int index, com.google.cloud.dialogflow.v2.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesAppSpecs( + java.lang.Iterable values) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesAppSpecs_); + onChanged(); + } else { + cesAppSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesAppSpecs() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + cesAppSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.remove(index); + onChanged(); + } else { + cesAppSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder getCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsOrBuilderList() { + if (cesAppSpecsBuilder_ != null) { + return cesAppSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder addCesAppSpecsBuilder() { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.CesAppSpec.Builder addCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsBuilderList() { + return internalGetCesAppSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder> + internalGetCesAppSpecsFieldBuilder() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.CesAppSpec, + com.google.cloud.dialogflow.v2.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder>( + cesAppSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + cesAppSpecs_ = null; + } + return cesAppSpecsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Generator) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java index 4234a8b3d083..4f15ec310623 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorOrBuilder.java @@ -514,6 +514,204 @@ public interface GeneratorOrBuilder com.google.cloud.dialogflow.v2.SuggestionDedupingConfigOrBuilder getSuggestionDedupingConfigOrBuilder(); + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetToolsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ToolsetTool getToolsetTools(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetToolsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsetToolsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesToolSpecsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesToolSpec getCesToolSpecs(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesToolSpecsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesToolSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesAppSpecsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesAppSpec getCesAppSpecs(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesAppSpecsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesAppSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index); + com.google.cloud.dialogflow.v2.Generator.ContextCase getContextCase(); com.google.cloud.dialogflow.v2.Generator.FoundationModelCase getFoundationModelCase(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java index 2cda79284201..f6ba5716a81e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorProto.java @@ -179,8 +179,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/annotations.proto\032\027google/api/clien" + "t.proto\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032;google/clou" - + "d/dialogflow/v2/agent_coaching_instruction.proto\032*google/cloud/dialogflow/v2/too" - + "l_call.proto\032\033google/protobuf/empty.proto\032" + + "d/dialogflow/v2/agent_coaching_instruction.proto\032(google/cloud/dialogflow/v2/ces" + + "_app.proto\032)google/cloud/dialogflow/v2/ces_tool.proto\032*google/cloud/dialogflow/v" + + "2/tool_call.proto\032(google/cloud/dialogfl" + + "ow/v2/toolset.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\267\001\n" + "\026CreateGeneratorRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" @@ -203,8 +205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dialogflow.googleapis.com/Generator\"\215\001\n" + "\026UpdateGeneratorRequest\022=\n" - + "\tgenerator\030\001 \001(" - + "\0132%.google.cloud.dialogflow.v2.GeneratorB\003\340A\002\0224\n" + + "\tgenerator\030\001" + + " \001(\0132%.google.cloud.dialogflow.v2.GeneratorB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\207\002\n" + "\014MessageEntry\022@\n" @@ -222,17 +224,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017message_entries\030\001" + " \003(\0132(.google.cloud.dialogflow.v2.MessageEntryB\003\340A\001\"q\n" + "\030SummarizationSectionList\022U\n" - + "\026summarization_sections\030\001 \003(\013" - + "20.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\"\240\003\n" + + "\026summarization_sections\030\001" + + " \003(\01320.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\"\240\003\n" + "\016FewShotExample\022R\n" - + "\024conversation_context\030\003 \001(\0132/.google.cloud." - + "dialogflow.v2.ConversationContextB\003\340A\001\022R\n\n" - + "extra_info\030\004 \003(\01329.google.cloud.dialog" - + "flow.v2.FewShotExample.ExtraInfoEntryB\003\340A\001\022Z\n" - + "\032summarization_section_list\030\006 \001(\01324" - + ".google.cloud.dialogflow.v2.SummarizationSectionListH\000\022D\n" - + "\006output\030\007 \001(\0132/.google." - + "cloud.dialogflow.v2.GeneratorSuggestionB\003\340A\002\0320\n" + + "\024conversation_context\030\003 \001(\0132/.google" + + ".cloud.dialogflow.v2.ConversationContextB\003\340A\001\022R\n\n" + + "extra_info\030\004 \003(\01329.google.cloud" + + ".dialogflow.v2.FewShotExample.ExtraInfoEntryB\003\340A\001\022Z\n" + + "\032summarization_section_list\030\006" + + " \001(\01324.google.cloud.dialogflow.v2.SummarizationSectionListH\000\022D\n" + + "\006output\030\007 \001(\0132/." + + "google.cloud.dialogflow.v2.GeneratorSuggestionB\003\340A\002\0320\n" + "\016ExtraInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\022\n" @@ -248,15 +250,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_top_p\"\303\001\n" + "\024AgentCoachingContext\022!\n" + "\024overarching_guidance\030\007 \001(\tB\003\340A\001\022O\n" - + "\014instructions\030\001 \003(\01324.go" - + "ogle.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022\024\n" + + "\014instructions\030\001 \003" + + "(\01324.google.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022\024\n" + "\007version\030\002 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\t \001(\tB\003\340A\001\"\334\002\n" + "\024SummarizationSection\022\020\n" + "\003key\030\001 \001(\tB\003\340A\001\022\027\n\n" + "definition\030\002 \001(\tB\003\340A\001\022H\n" - + "\004type\030\003 \001(\01625.goog" - + "le.cloud.dialogflow.v2.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + + "\004type\030\003 \001(\016" + + "25.google.cloud.dialogflow.v2.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -270,90 +272,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ACTION_CONCISE\020\n" + "\"\362\001\n" + "\024SummarizationContext\022U\n" - + "\026summarization_sections\030\001 \003(\0132" - + "0.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\022J\n" - + "\021few_shot_examples\030\002 \003(" - + "\0132*.google.cloud.dialogflow.v2.FewShotExampleB\003\340A\001\022\024\n" + + "\026summarization_sections\030\001" + + " \003(\01320.google.cloud.dialogflow.v2.SummarizationSectionB\003\340A\001\022J\n" + + "\021few_shot_examples\030\002" + + " \003(\0132*.google.cloud.dialogflow.v2.FewShotExampleB\003\340A\001\022\024\n" + "\007version\030\003 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\006 \001(\tB\003\340A\001\"$\n" + "\017FreeFormContext\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\001\"\206\007\n" + + "\004text\030\001 \001(\tB\003\340A\001\"\325\010\n" + "\tGenerator\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022H\n" - + "\021free_form_context\030\013 \001(\0132+.goo" - + "gle.cloud.dialogflow.v2.FreeFormContextH\000\022R\n" - + "\026agent_coaching_context\030\014 \001(\01320.goog" - + "le.cloud.dialogflow.v2.AgentCoachingContextH\000\022Q\n" + + "\021free_form_context\030\013 \001(" + + "\0132+.google.cloud.dialogflow.v2.FreeFormContextH\000\022R\n" + + "\026agent_coaching_context\030\014 \001(\013" + + "20.google.cloud.dialogflow.v2.AgentCoachingContextH\000\022Q\n" + "\025summarization_context\030\r" + " \001(\01320.google.cloud.dialogflow.v2.SummarizationContextH\000\022P\n" - + "\023inference_parameter\030\004 \001(\0132.." - + "google.cloud.dialogflow.v2.InferenceParameterB\003\340A\001\022D\n\r" - + "trigger_event\030\005 \001(\0162(.goog" - + "le.cloud.dialogflow.v2.TriggerEventB\003\340A\001\022\036\n" + + "\023inference_parameter\030\004" + + " \001(\0132..google.cloud.dialogflow.v2.InferenceParameterB\003\340A\001\022D\n\r" + + "trigger_event\030\005 \001(\016" + + "2(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\001\022\036\n" + "\017published_model\030\017 \001(\tB\003\340A\001H\001\0224\n" + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + "\005tools\030\016 \003(\tB&\340A\001\372A \n" + "\036dialogflow.googleapis.com/Tool\022]\n" - + "\032suggestion_deduping_config\030\027 \001(\01324.google" - + ".cloud.dialogflow.v2.SuggestionDedupingConfigB\003\340A\001:\177\352A|\n" - + "#dialogflow.googleapis.c" - + "om/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + + "\032suggestion_deduping_config\030\027 \001(\01324" + + ".google.cloud.dialogflow.v2.SuggestionDedupingConfigB\003\340A\001\022C\n\r" + + "toolset_tools\030\033 \003(\013" + + "2\'.google.cloud.dialogflow.v2.ToolsetToolB\003\340A\001\022D\n" + + "\016ces_tool_specs\030\034" + + " \003(\0132\'.google.cloud.dialogflow.v2.CesToolSpecB\003\340A\001\022B\n\r" + + "ces_app_specs\030\035" + + " \003(\0132&.google.cloud.dialogflow.v2.CesAppSpecB\003\340A\001:\177\352A|\n" + + "#dialogflow.googleapis.com/Generator\022>projects/{pr" + + "oject}/locations/{location}/generators/{generator}*\n" + "generators2\tgeneratorB\t\n" + "\007contextB\022\n" + "\020foundation_model\"+\n" + "\022FreeFormSuggestion\022\025\n" + "\010response\030\001 \001(\tB\003\340A\002\"\256\001\n" + "\021SummarySuggestion\022[\n" - + "\020summary_sections\030\001 \003(\0132<.google.cloud.d" - + "ialogflow.v2.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + + "\020summary_sections\030\001 \003(\0132<." + + "google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + "\016SummarySection\022\024\n" + "\007section\030\001 \001(\tB\003\340A\002\022\024\n" + "\007summary\030\002 \001(\tB\003\340A\002\"\300\t\n" + "\027AgentCoachingSuggestion\022Z\n" - + "\027applicable_instructions\030\001" - + " \003(\01324.google.cloud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022p\n" - + "\030agent_action_suggestions\030\002 \003(\0132I.google.clou" - + "d.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestionB\003\340A\001\022a\n" - + "\020sample_responses\030\003 \003(\0132B.google.cloud.dialogflow.v" - + "2.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + + "\027applicable_instructions\030\001 \003(\01324.google.clo" + + "ud.dialogflow.v2.AgentCoachingInstructionB\003\340A\001\022p\n" + + "\030agent_action_suggestions\030\002 \003(\0132I.google.cloud.dialogflow.v2.AgentCoach" + + "ingSuggestion.AgentActionSuggestionB\003\340A\001\022a\n" + + "\020sample_responses\030\003 \003(\0132B.google.clou" + + "d.dialogflow.v2.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + "\007Sources\022 \n" + "\023instruction_indexes\030\002 \003(\005B\003\340A\003\032\336\002\n" + "\024DuplicateCheckResult\022\200\001\n" - + "\025duplicate_suggestions\030\001 \003(\0132\\.google.clo" - + "ud.dialogflow.v2.AgentCoachingSuggestion" - + ".DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\302\001\n" + + "\025duplicate_suggestions\030\001 \003(\0132\\.google.cloud.dialogflow.v2.AgentCoac" + + "hingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\302\001\n" + "\023DuplicateSuggestion\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\003\022Q\n" - + "\007sources\030\002 \001(\0132;.go" - + "ogle.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + "\020suggestion_index\030\003 \001(\005B\003\340A\003\022\035\n" + "\020similarity_score\030\004 \001(\002B\003\340A\003\032\364\001\n" + "\025AgentActionSuggestion\022\031\n" + "\014agent_action\030\001 \001(\tB\003\340A\001\022Q\n" - + "\007sources\030\002 \001(\0132;.goog" - + "le.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" - + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud.dialogflow.v2" - + ".AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\356\001\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" + + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud" + + ".dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\356\001\n" + "\016SampleResponse\022\032\n\r" + "response_text\030\001 \001(\tB\003\340A\001\022Q\n" - + "\007sources\030\002 \001(\0132;.goo" - + "gle.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" - + "\026duplicate_check_result\030\003 \001(\0132H.google.cloud.dialogflow.v" - + "2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\236\004\n" + + "\007sources\030\002" + + " \001(\0132;.google.cloud.dialogflow.v2.AgentCoachingSuggestion.SourcesB\003\340A\003\022m\n" + + "\026duplicate_check_result\030\003 \001(\0132H.google.clou" + + "d.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\236\004\n" + "\023GeneratorSuggestion\022S\n" - + "\024free_form_suggestion\030\001 \001(\0132..google.cloud" - + ".dialogflow.v2.FreeFormSuggestionB\003\340A\001H\000\022P\n" - + "\022summary_suggestion\030\002 \001(\0132-.google.cl" - + "oud.dialogflow.v2.SummarySuggestionB\003\340A\001H\000\022]\n" - + "\031agent_coaching_suggestion\030\003 \001(\01323." - + "google.cloud.dialogflow.v2.AgentCoachingSuggestionB\003\340A\001H\000\022Y\n" - + "\016tool_call_info\030\t \003(" - + "\0132<.google.cloud.dialogflow.v2.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\227\001\n" + + "\024free_form_suggestion\030\001 \001(\0132" + + "..google.cloud.dialogflow.v2.FreeFormSuggestionB\003\340A\001H\000\022P\n" + + "\022summary_suggestion\030\002 \001" + + "(\0132-.google.cloud.dialogflow.v2.SummarySuggestionB\003\340A\001H\000\022]\n" + + "\031agent_coaching_suggestion\030\003" + + " \001(\01323.google.cloud.dialogflow.v2.AgentCoachingSuggestionB\003\340A\001H\000\022Y\n" + + "\016tool_call_info\030\t \003(\0132<.google.cloud.dialogflo" + + "w.v2.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\227\001\n" + "\014ToolCallInfo\022<\n" - + "\ttool_call\030\001" - + " \001(\0132$.google.cloud.dialogflow.v2.ToolCallB\003\340A\002\022I\n" + + "\ttool_call\030\001 \001(\0132$" + + ".google.cloud.dialogflow.v2.ToolCallB\003\340A\002\022I\n" + "\020tool_call_result\030\002" + " \001(\0132*.google.cloud.dialogflow.v2.ToolCallResultB\003\340A\002B\014\n\n" + "suggestion\"[\n" @@ -361,13 +368,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017enable_deduping\030\001 \001(\010B\003\340A\001\022!\n" + "\024similarity_threshold\030\002 \001(\002B\003\340A\001\"\270\004\n" + "\013RaiSettings\022W\n" - + "\024rai_category_configs\030\001" - + " \003(\01329.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig\032\317\003\n" + + "\024rai_category_configs\030\001 \003(\01329.google.c" + + "loud.dialogflow.v2.RaiSettings.RaiCategoryConfig\032\317\003\n" + "\021RaiCategoryConfig\022\\\n" - + "\010category\030\001 \001(\0162E.goo" - + "gle.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022j\n" - + "\021sensitivity_level\030\002 \001(\0162J.google.cloud.dialogf" - + "low.v2.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + + "\010category\030\001 \001(\0162E.google.cloud.dialogflow.v2.Ra" + + "iSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022j\n" + + "\021sensitivity_level\030\002 \001(\0162J.google" + + ".cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + "\013RaiCategory\022\034\n" + "\030RAI_CATEGORY_UNSPECIFIED\020\000\022\025\n" + "\021DANGEROUS_CONTENT\020\001\022\025\n" @@ -375,8 +382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "HARASSMENT\020\003\022\017\n" + "\013HATE_SPEECH\020\004\"t\n" + "\020SensitivityLevel\022!\n" - + "\035SENSITIVITY_LEVEL_UNSPECIFIED\020\000\022\016\n" - + "\n" + + "\035SENSITIVITY_LEVEL_UNSPECIFIED\020\000\022\016\n\n" + "BLOCK_MOST\020\001\022\016\n\n" + "BLOCK_SOME\020\002\022\r\n" + "\tBLOCK_FEW\020\003\022\016\n\n" @@ -388,33 +394,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CUSTOMER_MESSAGE\020\003\022\021\n\r" + "AGENT_MESSAGE\020\0042\206\t\n\n" + "Generators\022\201\002\n" - + "\017CreateGenerator\0222.google.cloud.dialogflow.v2.CreateGeneratorRequest\032%.goo" - + "gle.cloud.dialogflow.v2.Generator\"\222\001\332A\035p" - + "arent,generator,generator_id\202\323\344\223\002l\"./v2/" - + "{parent=projects/*/locations/*}/generators:" - + "\tgeneratorZ/\"\"/v2/{parent=projects/*}/generators:\tgenerator\022\245\001\n" - + "\014GetGenerator\022/.google.cloud.dialogflow.v2.GetGenerato" + + "\017CreateGenerator\0222.google.cloud.dialogflow.v2.CreateGenerato" + "rRequest\032%.google.cloud.dialogflow.v2.Ge" - + "nerator\"=\332A\004name\202\323\344\223\0020\022./v2/{name=projects/*/locations/*/generators/*}\022\336\001\n" - + "\016ListGenerators\0221.google.cloud.dialogflow.v2.L" - + "istGeneratorsRequest\0322.google.cloud.dial" - + "ogflow.v2.ListGeneratorsResponse\"e\332A\006par" - + "ent\202\323\344\223\002V\022./v2/{parent=projects/*/locati" - + "ons/*}/generatorsZ$\022\"/v2/{parent=projects/*}/generators\022\234\001\n" - + "\017DeleteGenerator\0222.google.cloud.dialogflow.v2.DeleteGenerator" - + "Request\032\026.google.protobuf.Empty\"=\332A\004name" - + "\202\323\344\223\0020*./v2/{name=projects/*/locations/*/generators/*}\022\321\001\n" - + "\017UpdateGenerator\0222.google.cloud.dialogflow.v2.UpdateGeneratorR" - + "equest\032%.google.cloud.dialogflow.v2.Gene" - + "rator\"c\332A\025generator,update_mask\202\323\344\223\002E28/" - + "v2/{generator.name=projects/*/locations/*/generators/*}:" - + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\221\002\n" - + "\036com.google.cloud.dialogflow.v2B\016GeneratorProtoP" - + "\001Z>cloud.google.com/go/dialogflow/apiv2/" - + "dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project" - + "}/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "nerator\"\222\001\332A\035parent,generator,generator_" + + "id\202\323\344\223\002l\"./v2/{parent=projects/*/locations/*}/generators:" + + "\tgeneratorZ/\"\"/v2/{parent=projects/*}/generators:\tgenerator\022\245\001\n" + + "\014GetGenerator\022/.google.cloud.dialogflow." + + "v2.GetGeneratorRequest\032%.google.cloud.di" + + "alogflow.v2.Generator\"=\332A\004name\202\323\344\223\0020\022./v" + + "2/{name=projects/*/locations/*/generators/*}\022\336\001\n" + + "\016ListGenerators\0221.google.cloud.dialogflow.v2.ListGeneratorsRequest\0322.goo" + + "gle.cloud.dialogflow.v2.ListGeneratorsRe" + + "sponse\"e\332A\006parent\202\323\344\223\002V\022./v2/{parent=pro" + + "jects/*/locations/*}/generatorsZ$\022\"/v2/{parent=projects/*}/generators\022\234\001\n" + + "\017DeleteGenerator\0222.google.cloud.dialogflow.v2.D" + + "eleteGeneratorRequest\032\026.google.protobuf." + + "Empty\"=\332A\004name\202\323\344\223\0020*./v2/{name=projects/*/locations/*/generators/*}\022\321\001\n" + + "\017UpdateGenerator\0222.google.cloud.dialogflow.v2.Up" + + "dateGeneratorRequest\032%.google.cloud.dial" + + "ogflow.v2.Generator\"c\332A\025generator,update" + + "_mask\202\323\344\223\002E28/v2/{generator.name=projects/*/locations/*/generators/*}:" + + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/dialogflowB\221\002\n" + + "\036com.google.cloud.dialogflow.v2B\016GeneratorProtoP\001Z>cloud.google.com/go/dia" + + "logflow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}/col" + + "lections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -425,7 +431,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2.AgentCoachingInstructionProto.getDescriptor(), + com.google.cloud.dialogflow.v2.CesAppProto.getDescriptor(), + com.google.cloud.dialogflow.v2.CesToolProto.getDescriptor(), com.google.cloud.dialogflow.v2.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolsetProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -580,6 +589,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Tools", "SuggestionDedupingConfig", + "ToolsetTools", + "CesToolSpecs", + "CesAppSpecs", "Context", "FoundationModel", }); @@ -710,7 +722,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2.AgentCoachingInstructionProto.getDescriptor(); + com.google.cloud.dialogflow.v2.CesAppProto.getDescriptor(); + com.google.cloud.dialogflow.v2.CesToolProto.getDescriptor(); com.google.cloud.dialogflow.v2.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolsetProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index 47ea0a164d8e..67cca5aa60a6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -16904,6 +16904,40 @@ public interface MessageAnalysisConfigOrBuilder * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); + + /** + * + * + *
                                                                                                                                          +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +     *
                                                                                                                                          +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +     * positive, negative, or neutral.
                                                                                                                                          +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                          +     * For
                                                                                                                                          +     * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                          +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + boolean getEnableSentimentAnalysisV3(); } /** @@ -17017,6 +17051,46 @@ public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER = 5; + private boolean enableSentimentAnalysisV3_ = false; + + /** + * + * + *
                                                                                                                                          +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +     *
                                                                                                                                          +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +     * positive, negative, or neutral.
                                                                                                                                          +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                          +     * For
                                                                                                                                          +     * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                          +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17037,6 +17111,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableSentimentAnalysis_ != false) { output.writeBool(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + output.writeBool(5, enableSentimentAnalysisV3_); + } getUnknownFields().writeTo(output); } @@ -17052,6 +17129,10 @@ public int getSerializedSize() { if (enableSentimentAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableSentimentAnalysisV3_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17072,6 +17153,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableEntityExtraction() != other.getEnableEntityExtraction()) return false; if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; + if (getEnableSentimentAnalysisV3() != other.getEnableSentimentAnalysisV3()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17087,6 +17169,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntityExtraction()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysisV3()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17240,6 +17324,7 @@ public Builder clear() { bitField0_ = 0; enableEntityExtraction_ = false; enableSentimentAnalysis_ = false; + enableSentimentAnalysisV3_ = false; return this; } @@ -17289,6 +17374,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableSentimentAnalysis_ = enableSentimentAnalysis_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableSentimentAnalysisV3_ = enableSentimentAnalysisV3_; + } } @java.lang.Override @@ -17316,6 +17404,9 @@ public Builder mergeFrom( if (other.getEnableSentimentAnalysis() != false) { setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); } + if (other.getEnableSentimentAnalysisV3() != false) { + setEnableSentimentAnalysisV3(other.getEnableSentimentAnalysisV3()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17354,6 +17445,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + enableSentimentAnalysisV3_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17557,6 +17654,128 @@ public Builder clearEnableSentimentAnalysis() { return this; } + private boolean enableSentimentAnalysisV3_; + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableSentimentAnalysisV3 to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysisV3(boolean value) { + + enableSentimentAnalysisV3_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysisV3() { + bitField0_ = (bitField0_ & ~0x00000004); + enableSentimentAnalysisV3_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java new file mode 100644 index 000000000000..9cb682b894a4 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfo.java @@ -0,0 +1,2429 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Debug information related to ingested context reference.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo} + */ +@com.google.protobuf.Generated +public final class IngestedContextReferenceDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + IngestedContextReferenceDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedContextReferenceDebugInfo"); + } + + // Use IngestedContextReferenceDebugInfo.newBuilder() to construct. + private IngestedContextReferenceDebugInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedContextReferenceDebugInfo() { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder.class); + } + + public interface IngestedParameterDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + int getIngestionStatusValue(); + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + getIngestionStatus(); + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to ingested parameters from context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class IngestedParameterDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + IngestedParameterDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedParameterDebugInfo"); + } + + // Use IngestedParameterDebugInfo.newBuilder() to construct. + private IngestedParameterDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedParameterDebugInfo() { + parameter_ = ""; + ingestionStatus_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +     * Enum representing the various states of parameter ingestion.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus} + */ + public enum IngestionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + INGESTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was successfully ingested.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + INGESTION_STATUS_SUCCEEDED(1), + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE(2), + /** + * + * + *
                                                                                                                                          +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + INGESTION_STATUS_PARSE_FAILED(3), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference had an unexpected number of
                                                                                                                                          +       * content entries as Context reference should only have one entry.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + INGESTION_STATUS_INVALID_ENTRY(4), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference content was not in the expected
                                                                                                                                          +       * format (e.g., JSON).
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + INGESTION_STATUS_INVALID_FORMAT(5), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference language does not match the
                                                                                                                                          +       * conversation language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + INGESTION_STATUS_LANGUAGE_MISMATCH(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionStatus"); + } + + /** + * + * + *
                                                                                                                                          +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + public static final int INGESTION_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was successfully ingested.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + public static final int INGESTION_STATUS_SUCCEEDED_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + public static final int INGESTION_STATUS_CONTEXT_NOT_AVAILABLE_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + public static final int INGESTION_STATUS_PARSE_FAILED_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference had an unexpected number of
                                                                                                                                          +       * content entries as Context reference should only have one entry.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + public static final int INGESTION_STATUS_INVALID_ENTRY_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference content was not in the expected
                                                                                                                                          +       * format (e.g., JSON).
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + public static final int INGESTION_STATUS_INVALID_FORMAT_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference language does not match the
                                                                                                                                          +       * conversation language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + public static final int INGESTION_STATUS_LANGUAGE_MISMATCH_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IngestionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IngestionStatus forNumber(int value) { + switch (value) { + case 0: + return INGESTION_STATUS_UNSPECIFIED; + case 1: + return INGESTION_STATUS_SUCCEEDED; + case 2: + return INGESTION_STATUS_CONTEXT_NOT_AVAILABLE; + case 3: + return INGESTION_STATUS_PARSE_FAILED; + case 4: + return INGESTION_STATUS_INVALID_ENTRY; + case 5: + return INGESTION_STATUS_INVALID_FORMAT; + case 6: + return INGESTION_STATUS_LANGUAGE_MISMATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngestionStatus findValueByNumber(int number) { + return IngestionStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IngestionStatus[] VALUES = values(); + + public static IngestionStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IngestionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus) + } + + public static final int PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INGESTION_STATUS_FIELD_NUMBER = 2; + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + result = + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, ingestionStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, ingestionStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + other = + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + obj; + + if (!getParameter().equals(other.getParameter())) return false; + if (ingestionStatus_ != other.ingestionStatus_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + ingestionStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to ingested parameters from context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameter_ = ""; + ingestionStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + build() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + result = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ingestionStatus_ = ingestionStatus_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()) return this; + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.ingestionStatus_ != 0) { + setIngestionStatusValue(other.getIngestionStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ingestionStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @param value The parameter to set. + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @param value The bytes for parameter to set. + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The enum numeric value on the wire for ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatusValue(int value) { + ingestionStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + result = + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatus( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + ingestionStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearIngestionStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + ingestionStatus_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + private static final com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedParameterDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER = 1; + private boolean projectNotAllowlisted_ = false; + + /** + * + * + *
                                                                                                                                          +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +   * reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + public static final int CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER = 2; + private boolean contextReferenceRetrieved_ = false; + + /** + * + * + *
                                                                                                                                          +   * The status of context_reference retrieval from database.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + public static final int INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public int getIngestedParametersDebugInfoCount() { + return ingestedParametersDebugInfo_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (projectNotAllowlisted_ != false) { + output.writeBool(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + output.writeBool(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + output.writeMessage(3, ingestedParametersDebugInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (projectNotAllowlisted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, ingestedParametersDebugInfo_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo other = + (com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) obj; + + if (getProjectNotAllowlisted() != other.getProjectNotAllowlisted()) return false; + if (getContextReferenceRetrieved() != other.getContextReferenceRetrieved()) return false; + if (!getIngestedParametersDebugInfoList().equals(other.getIngestedParametersDebugInfoList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectNotAllowlisted()); + hash = (37 * hash) + CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContextReferenceRetrieved()); + if (getIngestedParametersDebugInfoCount() > 0) { + hash = (37 * hash) + INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedParametersDebugInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to ingested context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectNotAllowlisted_ = false; + contextReferenceRetrieved_ = false; + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } else { + ingestedParametersDebugInfo_ = null; + ingestedParametersDebugInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo build() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result = + new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfo_; + } else { + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectNotAllowlisted_ = projectNotAllowlisted_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contextReferenceRetrieved_ = contextReferenceRetrieved_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance()) + return this; + if (other.getProjectNotAllowlisted() != false) { + setProjectNotAllowlisted(other.getProjectNotAllowlisted()); + } + if (other.getContextReferenceRetrieved() != false) { + setContextReferenceRetrieved(other.getContextReferenceRetrieved()); + } + if (ingestedParametersDebugInfoBuilder_ == null) { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfo_.isEmpty()) { + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.addAll(other.ingestedParametersDebugInfo_); + } + onChanged(); + } + } else { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfoBuilder_.isEmpty()) { + ingestedParametersDebugInfoBuilder_.dispose(); + ingestedParametersDebugInfoBuilder_ = null; + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + ingestedParametersDebugInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIngestedParametersDebugInfoFieldBuilder() + : null; + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(other.ingestedParametersDebugInfo_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + projectNotAllowlisted_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + contextReferenceRetrieved_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + m = + input.readMessage( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.parser(), + extensionRegistry); + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(m); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean projectNotAllowlisted_; + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @param value The projectNotAllowlisted to set. + * @return This builder for chaining. + */ + public Builder setProjectNotAllowlisted(boolean value) { + + projectNotAllowlisted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectNotAllowlisted() { + bitField0_ = (bitField0_ & ~0x00000001); + projectNotAllowlisted_ = false; + onChanged(); + return this; + } + + private boolean contextReferenceRetrieved_; + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @param value The contextReferenceRetrieved to set. + * @return This builder for chaining. + */ + public Builder setContextReferenceRetrieved(boolean value) { + + contextReferenceRetrieved_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return This builder for chaining. + */ + public Builder clearContextReferenceRetrieved() { + bitField0_ = (bitField0_ & ~0x00000002); + contextReferenceRetrieved_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + + private void ensureIngestedParametersDebugInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo>(ingestedParametersDebugInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + ingestedParametersDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public int getIngestedParametersDebugInfoCount() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.size(); + } else { + return ingestedParametersDebugInfoBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addAllIngestedParametersDebugInfo( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + values) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ingestedParametersDebugInfo_); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder clearIngestedParametersDebugInfo() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder removeIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.remove(index); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + getIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + if (ingestedParametersDebugInfoBuilder_ != null) { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder() { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder> + getIngestedParametersDebugInfoBuilderList() { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + internalGetIngestedParametersDebugInfoFieldBuilder() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder>( + ingestedParametersDebugInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + ingestedParametersDebugInfo_ = null; + } + return ingestedParametersDebugInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + private static final com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedContextReferenceDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java new file mode 100644 index 000000000000..4f879b370aa3 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IngestedContextReferenceDebugInfoOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface IngestedContextReferenceDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +   * reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + boolean getProjectNotAllowlisted(); + + /** + * + * + *
                                                                                                                                          +   * The status of context_reference retrieval from database.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + boolean getContextReferenceRetrieved(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + int getIngestedParametersDebugInfoCount(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java index 5600335d1b51..0fe3e83e9a37 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java @@ -5697,6 +5697,63 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } + public static final int KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5720,6 +5777,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getKnowledgeAssistDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -5739,6 +5799,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getKnowledgeAssistDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5764,6 +5829,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSuggestedQueryAnswer().equals(other.getSuggestedQueryAnswer())) return false; } if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasKnowledgeAssistDebugInfo() != other.hasKnowledgeAssistDebugInfo()) return false; + if (hasKnowledgeAssistDebugInfo()) { + if (!getKnowledgeAssistDebugInfo().equals(other.getKnowledgeAssistDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5785,6 +5854,10 @@ public int hashCode() { } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasKnowledgeAssistDebugInfo()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5928,6 +6001,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSuggestedQueryFieldBuilder(); internalGetSuggestedQueryAnswerFieldBuilder(); + internalGetKnowledgeAssistDebugInfoFieldBuilder(); } } @@ -5946,6 +6020,11 @@ public Builder clear() { suggestedQueryAnswerBuilder_ = null; } answerRecord_ = ""; + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } return this; } @@ -5998,6 +6077,13 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer if (((from_bitField0_ & 0x00000004) != 0)) { result.answerRecord_ = answerRecord_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistDebugInfo_ = + knowledgeAssistDebugInfoBuilder_ == null + ? knowledgeAssistDebugInfo_ + : knowledgeAssistDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -6025,6 +6111,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer ot bitField0_ |= 0x00000004; onChanged(); } + if (other.hasKnowledgeAssistDebugInfo()) { + mergeKnowledgeAssistDebugInfo(other.getKnowledgeAssistDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6071,6 +6160,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 58: + { + input.readMessage( + internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6666,6 +6763,215 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder> + knowledgeAssistDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } else { + return knowledgeAssistDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistDebugInfo_ = value; + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder builderForValue) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfo_ = builderForValue.build(); + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder mergeKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistDebugInfo_ != null + && knowledgeAssistDebugInfo_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance()) { + getKnowledgeAssistDebugInfoBuilder().mergeFrom(value); + } else { + knowledgeAssistDebugInfo_ = value; + } + } else { + knowledgeAssistDebugInfoBuilder_.mergeFrom(value); + } + if (knowledgeAssistDebugInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder clearKnowledgeAssistDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder + getKnowledgeAssistDebugInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + if (knowledgeAssistDebugInfoBuilder_ != null) { + return knowledgeAssistDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder> + internalGetKnowledgeAssistDebugInfoFieldBuilder() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder>( + getKnowledgeAssistDebugInfo(), getParentForChildren(), isClean()); + knowledgeAssistDebugInfo_ = null; + } + return knowledgeAssistDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java index bea7f2679dd9..94bb6ddf79ab 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswerOrBuilder.java @@ -146,4 +146,45 @@ public interface KnowledgeAssistAnswerOrBuilder * @return The bytes for answerRecord. */ com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + boolean hasKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java new file mode 100644 index 000000000000..7f1838a4aa52 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java @@ -0,0 +1,4857 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Debug information related to Knowledge Assist feature.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo} + */ +@com.google.protobuf.Generated +public final class KnowledgeAssistDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + KnowledgeAssistDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistDebugInfo"); + } + + // Use KnowledgeAssistDebugInfo.newBuilder() to construct. + private KnowledgeAssistDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistDebugInfo() { + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason} + */ + public enum QueryGenerationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked due to out of quota.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + QUERY_GENERATION_OUT_OF_QUOTA(1), + /** + * + * + *
                                                                                                                                          +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILED = 2; + */ + QUERY_GENERATION_FAILED(2), + /** + * + * + *
                                                                                                                                          +     * Query generation model decides that there is no new topic change or
                                                                                                                                          +     * there has been similar queries generated in the previous turns.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + QUERY_GENERATION_NO_QUERY_GENERATED(3), + /** + * + * + *
                                                                                                                                          +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + QUERY_GENERATION_RAI_FAILED(4), + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                          +     * level / agent id level filtering.
                                                                                                                                          +     * 
                                                                                                                                          + * + * NOT_IN_ALLOWLIST = 5; + */ + NOT_IN_ALLOWLIST(5), + /** + * + * + *
                                                                                                                                          +     * The generated query is blocked due to redaction.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + QUERY_GENERATION_QUERY_REDACTED(6), + /** + * + * + *
                                                                                                                                          +     * Query generation failed due to LLM response parse failure.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED(10), + /** + * + * + *
                                                                                                                                          +     * The conversation has no messages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + QUERY_GENERATION_EMPTY_CONVERSATION(11), + /** + * + * + *
                                                                                                                                          +     * The last message in the conversation is empty.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + QUERY_GENERATION_EMPTY_LAST_MESSAGE(12), + /** + * + * + *
                                                                                                                                          +     * The trigger event condition is not met.
                                                                                                                                          +     * This occurs in the following scenarios:
                                                                                                                                          +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                          +     * message is not from the customer.
                                                                                                                                          +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                          +     * the agent.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET(13), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationFailureReason"); + } + + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked due to out of quota.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + public static final int QUERY_GENERATION_OUT_OF_QUOTA_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILED = 2; + */ + public static final int QUERY_GENERATION_FAILED_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +     * Query generation model decides that there is no new topic change or
                                                                                                                                          +     * there has been similar queries generated in the previous turns.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + public static final int QUERY_GENERATION_NO_QUERY_GENERATED_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + public static final int QUERY_GENERATION_RAI_FAILED_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                          +     * level / agent id level filtering.
                                                                                                                                          +     * 
                                                                                                                                          + * + * NOT_IN_ALLOWLIST = 5; + */ + public static final int NOT_IN_ALLOWLIST_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +     * The generated query is blocked due to redaction.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + public static final int QUERY_GENERATION_QUERY_REDACTED_VALUE = 6; + + /** + * + * + *
                                                                                                                                          +     * Query generation failed due to LLM response parse failure.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + public static final int QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUE = 10; + + /** + * + * + *
                                                                                                                                          +     * The conversation has no messages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + public static final int QUERY_GENERATION_EMPTY_CONVERSATION_VALUE = 11; + + /** + * + * + *
                                                                                                                                          +     * The last message in the conversation is empty.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + public static final int QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUE = 12; + + /** + * + * + *
                                                                                                                                          +     * The trigger event condition is not met.
                                                                                                                                          +     * This occurs in the following scenarios:
                                                                                                                                          +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                          +     * message is not from the customer.
                                                                                                                                          +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                          +     * the agent.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + public static final int QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUE = 13; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryGenerationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryGenerationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_GENERATION_OUT_OF_QUOTA; + case 2: + return QUERY_GENERATION_FAILED; + case 3: + return QUERY_GENERATION_NO_QUERY_GENERATED; + case 4: + return QUERY_GENERATION_RAI_FAILED; + case 5: + return NOT_IN_ALLOWLIST; + case 6: + return QUERY_GENERATION_QUERY_REDACTED; + case 10: + return QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED; + case 11: + return QUERY_GENERATION_EMPTY_CONVERSATION; + case 12: + return QUERY_GENERATION_EMPTY_LAST_MESSAGE; + case 13: + return QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryGenerationFailureReason findValueByNumber(int number) { + return QueryGenerationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final QueryGenerationFailureReason[] VALUES = values(); + + public static QueryGenerationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryGenerationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason) + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason} + */ + public enum QueryCategorizationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + QUERY_CATEGORIZATION_INVALID_CONFIG(1), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + QUERY_CATEGORIZATION_RESULT_NOT_FOUND(2), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search call fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + QUERY_CATEGORIZATION_FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryCategorizationFailureReason"); + } + + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + public static final int QUERY_CATEGORIZATION_INVALID_CONFIG_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + public static final int QUERY_CATEGORIZATION_RESULT_NOT_FOUND_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search call fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + public static final int QUERY_CATEGORIZATION_FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCategorizationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryCategorizationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_CATEGORIZATION_INVALID_CONFIG; + case 2: + return QUERY_CATEGORIZATION_RESULT_NOT_FOUND; + case 3: + return QUERY_CATEGORIZATION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryCategorizationFailureReason findValueByNumber(int number) { + return QueryCategorizationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final QueryCategorizationFailureReason[] VALUES = values(); + + public static QueryCategorizationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryCategorizationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason) + } + + public interface KnowledgeAssistBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to return query only in the
                                                                                                                                          +     * conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + boolean getReturnQueryOnly(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + boolean getUsePubsubDelivery(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +     * Knowedge Assist response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + boolean getDisableSyncDelivery(); + + /** + * + * + *
                                                                                                                                          +     * Whether previously suggested queries are included in the query generation
                                                                                                                                          +     * process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + boolean getPreviousQueriesIncluded(); + + /** + * + * + *
                                                                                                                                          +     * Translated message is included in query generation process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + boolean getUseTranslatedMessage(); + + /** + * + * + *
                                                                                                                                          +     * Safety filter is adjusted by user.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + boolean getUseCustomSafetyFilterLevel(); + + /** + * + * + *
                                                                                                                                          +     * Conversation transcript has mixed languages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + boolean getConversationTranscriptHasMixedLanguages(); + + /** + * + * + *
                                                                                                                                          +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +     * end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + boolean getQueryGenerationAgentLanguageMismatch(); + + /** + * + * + *
                                                                                                                                          +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +     * the end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + boolean getQueryGenerationEndUserLanguageMismatch(); + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + boolean getMultipleQueriesGenerated(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that the generated query contains search context.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + boolean getQueryContainedSearchContext(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + boolean getInvalidItemsQuerySuggestionSkipped(); + + /** + * + * + *
                                                                                                                                          +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +     * additional query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + boolean getPrimaryQueryRedactedAndReplaced(); + + /** + * + * + *
                                                                                                                                          +     * The number of search contexts appended to the query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + int getAppendedSearchContextCount(); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class KnowledgeAssistBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + KnowledgeAssistBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistBehavior"); + } + + // Use KnowledgeAssistBehavior.newBuilder() to construct. + private KnowledgeAssistBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int RETURN_QUERY_ONLY_FIELD_NUMBER = 4; + private boolean returnQueryOnly_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to return query only in the
                                                                                                                                          +     * conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + public static final int USE_PUBSUB_DELIVERY_FIELD_NUMBER = 5; + private boolean usePubsubDelivery_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + public static final int DISABLE_SYNC_DELIVERY_FIELD_NUMBER = 6; + private boolean disableSyncDelivery_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +     * Knowedge Assist response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + public static final int PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER = 7; + private boolean previousQueriesIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether previously suggested queries are included in the query generation
                                                                                                                                          +     * process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + public static final int USE_TRANSLATED_MESSAGE_FIELD_NUMBER = 8; + private boolean useTranslatedMessage_ = false; + + /** + * + * + *
                                                                                                                                          +     * Translated message is included in query generation process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + public static final int USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER = 9; + private boolean useCustomSafetyFilterLevel_ = false; + + /** + * + * + *
                                                                                                                                          +     * Safety filter is adjusted by user.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + public static final int CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER = 10; + private boolean conversationTranscriptHasMixedLanguages_ = false; + + /** + * + * + *
                                                                                                                                          +     * Conversation transcript has mixed languages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + public static final int QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER = 11; + private boolean queryGenerationAgentLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +     * end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + public static final int QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER = 12; + private boolean queryGenerationEndUserLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +     * the end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 13; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + public static final int MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER = 14; + private boolean multipleQueriesGenerated_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + public static final int QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER = 15; + private boolean queryContainedSearchContext_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that the generated query contains search context.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + public static final int INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER = 16; + private boolean invalidItemsQuerySuggestionSkipped_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + public static final int PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER = 17; + private boolean primaryQueryRedactedAndReplaced_ = false; + + /** + * + * + *
                                                                                                                                          +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +     * additional query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + public static final int APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER = 18; + private int appendedSearchContextCount_ = 0; + + /** + * + * + *
                                                                                                                                          +     * The number of search contexts appended to the query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + output.writeBool(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + output.writeBool(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + output.writeBool(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + output.writeBool(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + output.writeBool(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + output.writeBool(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + output.writeBool(10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + output.writeBool(11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + output.writeBool(12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + output.writeBool(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + output.writeBool(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + output.writeBool(16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + output.writeBool(17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + output.writeInt32(18, appendedSearchContextCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(18, appendedSearchContextCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getReturnQueryOnly() != other.getReturnQueryOnly()) return false; + if (getUsePubsubDelivery() != other.getUsePubsubDelivery()) return false; + if (getDisableSyncDelivery() != other.getDisableSyncDelivery()) return false; + if (getPreviousQueriesIncluded() != other.getPreviousQueriesIncluded()) return false; + if (getUseTranslatedMessage() != other.getUseTranslatedMessage()) return false; + if (getUseCustomSafetyFilterLevel() != other.getUseCustomSafetyFilterLevel()) return false; + if (getConversationTranscriptHasMixedLanguages() + != other.getConversationTranscriptHasMixedLanguages()) return false; + if (getQueryGenerationAgentLanguageMismatch() + != other.getQueryGenerationAgentLanguageMismatch()) return false; + if (getQueryGenerationEndUserLanguageMismatch() + != other.getQueryGenerationEndUserLanguageMismatch()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (getMultipleQueriesGenerated() != other.getMultipleQueriesGenerated()) return false; + if (getQueryContainedSearchContext() != other.getQueryContainedSearchContext()) return false; + if (getInvalidItemsQuerySuggestionSkipped() != other.getInvalidItemsQuerySuggestionSkipped()) + return false; + if (getPrimaryQueryRedactedAndReplaced() != other.getPrimaryQueryRedactedAndReplaced()) + return false; + if (getAppendedSearchContextCount() != other.getAppendedSearchContextCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + RETURN_QUERY_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnQueryOnly()); + hash = (37 * hash) + USE_PUBSUB_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePubsubDelivery()); + hash = (37 * hash) + DISABLE_SYNC_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSyncDelivery()); + hash = (37 * hash) + PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreviousQueriesIncluded()); + hash = (37 * hash) + USE_TRANSLATED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTranslatedMessage()); + hash = (37 * hash) + USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseCustomSafetyFilterLevel()); + hash = (37 * hash) + CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getConversationTranscriptHasMixedLanguages()); + hash = (37 * hash) + QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getQueryGenerationAgentLanguageMismatch()); + hash = (37 * hash) + QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getQueryGenerationEndUserLanguageMismatch()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (37 * hash) + MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleQueriesGenerated()); + hash = (37 * hash) + QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryContainedSearchContext()); + hash = (37 * hash) + INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInvalidItemsQuerySuggestionSkipped()); + hash = (37 * hash) + PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPrimaryQueryRedactedAndReplaced()); + hash = (37 * hash) + APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAppendedSearchContextCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + returnQueryOnly_ = false; + usePubsubDelivery_ = false; + disableSyncDelivery_ = false; + previousQueriesIncluded_ = false; + useTranslatedMessage_ = false; + useCustomSafetyFilterLevel_ = false; + conversationTranscriptHasMixedLanguages_ = false; + queryGenerationAgentLanguageMismatch_ = false; + queryGenerationEndUserLanguageMismatch_ = false; + thirdPartyConnectorAllowed_ = false; + multipleQueriesGenerated_ = false; + queryContainedSearchContext_ = false; + invalidItemsQuerySuggestionSkipped_ = false; + primaryQueryRedactedAndReplaced_ = false; + appendedSearchContextCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnQueryOnly_ = returnQueryOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.usePubsubDelivery_ = usePubsubDelivery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableSyncDelivery_ = disableSyncDelivery_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousQueriesIncluded_ = previousQueriesIncluded_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.useTranslatedMessage_ = useTranslatedMessage_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.useCustomSafetyFilterLevel_ = useCustomSafetyFilterLevel_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationTranscriptHasMixedLanguages_ = + conversationTranscriptHasMixedLanguages_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.queryGenerationAgentLanguageMismatch_ = queryGenerationAgentLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.queryGenerationEndUserLanguageMismatch_ = queryGenerationEndUserLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.multipleQueriesGenerated_ = multipleQueriesGenerated_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.queryContainedSearchContext_ = queryContainedSearchContext_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.invalidItemsQuerySuggestionSkipped_ = invalidItemsQuerySuggestionSkipped_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.primaryQueryRedactedAndReplaced_ = primaryQueryRedactedAndReplaced_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.appendedSearchContextCount_ = appendedSearchContextCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getReturnQueryOnly() != false) { + setReturnQueryOnly(other.getReturnQueryOnly()); + } + if (other.getUsePubsubDelivery() != false) { + setUsePubsubDelivery(other.getUsePubsubDelivery()); + } + if (other.getDisableSyncDelivery() != false) { + setDisableSyncDelivery(other.getDisableSyncDelivery()); + } + if (other.getPreviousQueriesIncluded() != false) { + setPreviousQueriesIncluded(other.getPreviousQueriesIncluded()); + } + if (other.getUseTranslatedMessage() != false) { + setUseTranslatedMessage(other.getUseTranslatedMessage()); + } + if (other.getUseCustomSafetyFilterLevel() != false) { + setUseCustomSafetyFilterLevel(other.getUseCustomSafetyFilterLevel()); + } + if (other.getConversationTranscriptHasMixedLanguages() != false) { + setConversationTranscriptHasMixedLanguages( + other.getConversationTranscriptHasMixedLanguages()); + } + if (other.getQueryGenerationAgentLanguageMismatch() != false) { + setQueryGenerationAgentLanguageMismatch(other.getQueryGenerationAgentLanguageMismatch()); + } + if (other.getQueryGenerationEndUserLanguageMismatch() != false) { + setQueryGenerationEndUserLanguageMismatch( + other.getQueryGenerationEndUserLanguageMismatch()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + if (other.getMultipleQueriesGenerated() != false) { + setMultipleQueriesGenerated(other.getMultipleQueriesGenerated()); + } + if (other.getQueryContainedSearchContext() != false) { + setQueryContainedSearchContext(other.getQueryContainedSearchContext()); + } + if (other.getInvalidItemsQuerySuggestionSkipped() != false) { + setInvalidItemsQuerySuggestionSkipped(other.getInvalidItemsQuerySuggestionSkipped()); + } + if (other.getPrimaryQueryRedactedAndReplaced() != false) { + setPrimaryQueryRedactedAndReplaced(other.getPrimaryQueryRedactedAndReplaced()); + } + if (other.getAppendedSearchContextCount() != 0) { + setAppendedSearchContextCount(other.getAppendedSearchContextCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + returnQueryOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + usePubsubDelivery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disableSyncDelivery_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + previousQueriesIncluded_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + useTranslatedMessage_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + useCustomSafetyFilterLevel_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + conversationTranscriptHasMixedLanguages_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + queryGenerationAgentLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + queryGenerationEndUserLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 112: + { + multipleQueriesGenerated_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + queryContainedSearchContext_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + invalidItemsQuerySuggestionSkipped_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: + { + primaryQueryRedactedAndReplaced_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 144: + { + appendedSearchContextCount_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 144 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean returnQueryOnly_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @param value The returnQueryOnly to set. + * @return This builder for chaining. + */ + public Builder setReturnQueryOnly(boolean value) { + + returnQueryOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnQueryOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + returnQueryOnly_ = false; + onChanged(); + return this; + } + + private boolean usePubsubDelivery_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @param value The usePubsubDelivery to set. + * @return This builder for chaining. + */ + public Builder setUsePubsubDelivery(boolean value) { + + usePubsubDelivery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return This builder for chaining. + */ + public Builder clearUsePubsubDelivery() { + bitField0_ = (bitField0_ & ~0x00000008); + usePubsubDelivery_ = false; + onChanged(); + return this; + } + + private boolean disableSyncDelivery_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @param value The disableSyncDelivery to set. + * @return This builder for chaining. + */ + public Builder setDisableSyncDelivery(boolean value) { + + disableSyncDelivery_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableSyncDelivery() { + bitField0_ = (bitField0_ & ~0x00000010); + disableSyncDelivery_ = false; + onChanged(); + return this; + } + + private boolean previousQueriesIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @param value The previousQueriesIncluded to set. + * @return This builder for chaining. + */ + public Builder setPreviousQueriesIncluded(boolean value) { + + previousQueriesIncluded_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return This builder for chaining. + */ + public Builder clearPreviousQueriesIncluded() { + bitField0_ = (bitField0_ & ~0x00000020); + previousQueriesIncluded_ = false; + onChanged(); + return this; + } + + private boolean useTranslatedMessage_; + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @param value The useTranslatedMessage to set. + * @return This builder for chaining. + */ + public Builder setUseTranslatedMessage(boolean value) { + + useTranslatedMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearUseTranslatedMessage() { + bitField0_ = (bitField0_ & ~0x00000040); + useTranslatedMessage_ = false; + onChanged(); + return this; + } + + private boolean useCustomSafetyFilterLevel_; + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @param value The useCustomSafetyFilterLevel to set. + * @return This builder for chaining. + */ + public Builder setUseCustomSafetyFilterLevel(boolean value) { + + useCustomSafetyFilterLevel_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return This builder for chaining. + */ + public Builder clearUseCustomSafetyFilterLevel() { + bitField0_ = (bitField0_ & ~0x00000080); + useCustomSafetyFilterLevel_ = false; + onChanged(); + return this; + } + + private boolean conversationTranscriptHasMixedLanguages_; + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @param value The conversationTranscriptHasMixedLanguages to set. + * @return This builder for chaining. + */ + public Builder setConversationTranscriptHasMixedLanguages(boolean value) { + + conversationTranscriptHasMixedLanguages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return This builder for chaining. + */ + public Builder clearConversationTranscriptHasMixedLanguages() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationTranscriptHasMixedLanguages_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationAgentLanguageMismatch_; + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @param value The queryGenerationAgentLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationAgentLanguageMismatch(boolean value) { + + queryGenerationAgentLanguageMismatch_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationAgentLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000200); + queryGenerationAgentLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationEndUserLanguageMismatch_; + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @param value The queryGenerationEndUserLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationEndUserLanguageMismatch(boolean value) { + + queryGenerationEndUserLanguageMismatch_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationEndUserLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000400); + queryGenerationEndUserLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000800); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + private boolean multipleQueriesGenerated_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @param value The multipleQueriesGenerated to set. + * @return This builder for chaining. + */ + public Builder setMultipleQueriesGenerated(boolean value) { + + multipleQueriesGenerated_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return This builder for chaining. + */ + public Builder clearMultipleQueriesGenerated() { + bitField0_ = (bitField0_ & ~0x00001000); + multipleQueriesGenerated_ = false; + onChanged(); + return this; + } + + private boolean queryContainedSearchContext_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @param value The queryContainedSearchContext to set. + * @return This builder for chaining. + */ + public Builder setQueryContainedSearchContext(boolean value) { + + queryContainedSearchContext_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return This builder for chaining. + */ + public Builder clearQueryContainedSearchContext() { + bitField0_ = (bitField0_ & ~0x00002000); + queryContainedSearchContext_ = false; + onChanged(); + return this; + } + + private boolean invalidItemsQuerySuggestionSkipped_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @param value The invalidItemsQuerySuggestionSkipped to set. + * @return This builder for chaining. + */ + public Builder setInvalidItemsQuerySuggestionSkipped(boolean value) { + + invalidItemsQuerySuggestionSkipped_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return This builder for chaining. + */ + public Builder clearInvalidItemsQuerySuggestionSkipped() { + bitField0_ = (bitField0_ & ~0x00004000); + invalidItemsQuerySuggestionSkipped_ = false; + onChanged(); + return this; + } + + private boolean primaryQueryRedactedAndReplaced_; + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @param value The primaryQueryRedactedAndReplaced to set. + * @return This builder for chaining. + */ + public Builder setPrimaryQueryRedactedAndReplaced(boolean value) { + + primaryQueryRedactedAndReplaced_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryQueryRedactedAndReplaced() { + bitField0_ = (bitField0_ & ~0x00008000); + primaryQueryRedactedAndReplaced_ = false; + onChanged(); + return this; + } + + private int appendedSearchContextCount_; + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @param value The appendedSearchContextCount to set. + * @return This builder for chaining. + */ + public Builder setAppendedSearchContextCount(int value) { + + appendedSearchContextCount_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return This builder for chaining. + */ + public Builder clearAppendedSearchContextCount() { + bitField0_ = (bitField0_ & ~0x00010000); + appendedSearchContextCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistBehavior parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber(datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo other) { + if (other == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java new file mode 100644 index 000000000000..e98334a4f44f --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface KnowledgeAssistDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + int getQueryGenerationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + int getQueryCategorizationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 3; + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + boolean hasKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; + */ + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index 1a9f0ac770b9..ec6904ff8ae5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -200,6 +200,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -338,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033end_user_suggestion_results\030\007" + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022C\n" + "\017dtmf_parameters\030\t" - + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\"\375\005\n" + + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\"\246\006\n" + "\036StreamingAnalyzeContentRequest\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022D\n" @@ -358,7 +382,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cx_parameters\030\r" + " \001(\0132\027.google.protobuf.Struct\022&\n" + "\031enable_extended_streaming\030\013 \001(\010B\003\340A\001\0221\n" - + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\035\n" + + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\'\n" + + "\032output_multiple_utterances\030\022 \001(\010B\003\340A\001\022\035\n" + "\025enable_debugging_info\030\023 \001(\010B\010\n" + "\006configB\007\n" + "\005input\"\245\005\n" @@ -376,8 +401,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.cloud.dialogflow.v2.SuggestionResult\022C\n" + "\017dtmf_parameters\030\n" + " \001(\0132*.google.cloud.dialogflow.v2.DtmfParameters\022R\n" - + "\016debugging_info\030\013 \001(\0132:.google.clo" - + "ud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132:.google.cl" + + "oud.dialogflow.v2.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"\205\002\n" + "\026SuggestArticlesRequest\022=\n" @@ -386,8 +411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022N\n" - + "\023assist_query_params\030\004 \001" - + "(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\"\213\001\n" + + "\023assist_query_params\030\004 " + + "\001(\01321.google.cloud.dialogflow.v2.AssistQueryParameters\"\213\001\n" + "\027SuggestArticlesResponse\022B\n" + "\017article_answers\030\001" + " \003(\0132).google.cloud.dialogflow.v2.ArticleAnswer\022\026\n" @@ -406,13 +431,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\241\003\n" + "\033GenerateSuggestionsResponse\022w\n" - + "\034generator_suggestion_answers\030\001 \003(\0132Q.google.clo" - + "ud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132Q.google.cl" + + "oud.dialogflow.v2.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\310\001\n" + "\031GeneratorSuggestionAnswer\022M\n" - + "\024generator_suggestion\030\001 \001(\0132/.goo" - + "gle.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" + + "\024generator_suggestion\030\001 \001(\0132/.go" + + "ogle.cloud.dialogflow.v2.GeneratorSuggestion\022\030\n" + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\364\001\n" @@ -437,23 +462,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006config\030\001 \001(\0132-.google.cloud.dialogflow.v2.OutputAudioConfig\022\r\n" + "\005audio\030\002 \001(\014\"\350\002\n" + "\023AutomatedAgentReply\022P\n" - + "\026detect_intent_response\030\001 \001(\01320.googl" - + "e.cloud.dialogflow.v2.DetectIntentResponse\022k\n" - + "\032automated_agent_reply_type\030\007 \001(\0162G" - + ".google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + + "\026detect_intent_response\030\001 \001(\01320.goog" + + "le.cloud.dialogflow.v2.DetectIntentResponse\022k\n" + + "\032automated_agent_reply_type\030\007 \001(\0162" + + "G.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType\022\032\n" + "\022allow_cancellation\030\010 \001(\010\022\027\n" + "\017cx_current_page\030\013 \001(\t\"]\n" + "\027AutomatedAgentReplyType\022*\n" + "&AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PARTIAL\020\001\022\t\n" + "\005FINAL\020\002\"\344\001\n\r" - + "ArticleAnswer\022\r\n" + + "ArticleAnswer\022\r" + + "\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022\022\n\n" + "confidence\030\004 \001(\002\022I\n" - + "\010metadata\030\005 \003(" - + "\01327.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 \003" + + "(\01327.google.cloud.dialogflow.v2.ArticleAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -463,8 +489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "confidence\030\002 \001(\002\022\020\n" + "\010question\030\003 \001(\t\022\016\n" + "\006source\030\004 \001(\t\022E\n" - + "\010metadata\030\005 \003(\01323.googl" - + "e.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\022\025\n\r" + + "\010metadata\030\005 \003(\01323.goog" + + "le.cloud.dialogflow.v2.FaqAnswer.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -488,16 +514,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006result\"\265\004\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022X\n" - + "\031suggest_articles_response\030\002 \001(\01323.google.clo" - + "ud.dialogflow.v2.SuggestArticlesResponseH\000\022g\n" + + "\031suggest_articles_response\030\002 \001(\01323.google.cl" + + "oud.dialogflow.v2.SuggestArticlesResponseH\000\022g\n" + "!suggest_knowledge_assist_response\030\010" + " \001(\0132:.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponseH\000\022]\n" - + "\034suggest_faq_answers_response\030\003 \001(\01325.google.cloud" - + ".dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" - + "\036suggest_smart_replies_response\030\004 \001" - + "(\01327.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" - + "\035generate_suggestions_response\030\t \001(\01327.google.cloud.dial" - + "ogflow.v2.GenerateSuggestionsResponseH\000B\025\n" + + "\034suggest_faq_answers_response\030\003 \001(\01325.google.clou" + + "d.dialogflow.v2.SuggestFaqAnswersResponseH\000\022a\n" + + "\036suggest_smart_replies_response\030\004 " + + "\001(\01327.google.cloud.dialogflow.v2.SuggestSmartRepliesResponseH\000\022`\n" + + "\035generate_suggestions_response\030\t \001(\01327.google.cloud.dia" + + "logflow.v2.GenerateSuggestionsResponseH\000B\025\n" + "\023suggestion_response\"-\n" + "\017InputTextConfig\022\032\n\r" + "language_code\030\001 \001(\tB\003\340A\002\"j\n" @@ -512,18 +538,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017SuggestionInput\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\002\0220\n\n" + "parameters\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022G\n" - + "\006action\030\005 " - + "\001(\01622.google.cloud.dialogflow.v2.SuggestionInput.ActionB\003\340A\001\0222\n" + + "\006action\030\005" + + " \001(\01622.google.cloud.dialogflow.v2.SuggestionInput.ActionB\003\340A\001\0222\n" + "\tsend_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"E\n" + "\006Action\022\026\n" + "\022ACTION_UNSPECIFIED\020\000\022\n\n" - + "\006CANCEL\020\001\022\n" - + "\n" + + "\006CANCEL\020\001\022\n\n" + "\006REVISE\020\002\022\013\n" + "\007CONFIRM\020\003\"\315\001\n" + "\025AssistQueryParameters\022s\n" - + "\032documents_metadata_filters\030\001 \003(\0132O.google.cloud.dialogflow.v2.Assis" - + "tQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + + "\032documents_metadata_filters\030\001 \003(\0132O.google.cloud.dialogflow.v2.Assi" + + "stQueryParameters.DocumentsMetadataFiltersEntry\032?\n" + "\035DocumentsMetadataFiltersEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\343\001\n" @@ -538,95 +563,201 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027knowledge_assist_answer\030\001" + " \001(\01321.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\233\006\n" + + "\014context_size\030\003 \001(\005\"\271\005\n" + + "!IngestedContextReferenceDebugInfo\022\037\n" + + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + + "\033context_reference_retrieved\030\002 \001(\010\022\200\001\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dia" + + "logflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + + "\032IngestedParameterDebugInfo\022\021\n" + + "\tparameter\030\001 \001(\t\022\202\001\n" + + "\020ingestion_status\030\002 \001(\0162h.google.cl" + + "oud.dialogflow.v2.IngestedContextReferen" + + "ceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\017IngestionStatus\022 \n" + + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" + + "&INGESTION_STATUS_CONTEXT_NOT_AVAILABLE\020\002\022!\n" + + "\035INGESTION_STATUS_PARSE_FAILED\020\003\022\"\n" + + "\036INGESTION_STATUS_INVALID_ENTRY\020\004\022#\n" + + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\227\002\n" + + "\016ServiceLatency\022e\n" + + "\032internal_service_latencies\030\001 \003(\0132A.google.clo" + + "ud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\026InternalServiceLatency\022\014\n" + + "\004step\030\001 \001(\t\022\022\n\n" + + "latency_ms\030\002 \001(\002\022.\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\364\017\n" + + "\030KnowledgeAssistDebugInfo\022z\n" + + "\037query_generation_failure_reason\030\001" + + " \001(\0162Q.google.cloud.dialogflow.v2.Knowle" + + "dgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud.dialogflow." + + "v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + + "\031datastore_response_reason\030\003" + + " \001(\01623.google.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.d" + + "ialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cl" + + "oud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\006 \001(\0132*.g" + + "oogle.cloud.dialogflow.v2.ServiceLatency\032\271\005\n" + + "\027KnowledgeAssistBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" + + "\021return_query_only\030\004 \001(\010\022\033\n" + + "\023use_pubsub_delivery\030\005 \001(\010\022\035\n" + + "\025disable_sync_delivery\030\006 \001(\010\022!\n" + + "\031previous_queries_included\030\007 \001(\010\022\036\n" + + "\026use_translated_message\030\010 \001(\010\022&\n" + + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" + + "+conversation_transcript_has_mixed_languages\030\n" + + " \001(\010\0220\n" + + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\r" + + " \001(\010\022\"\n" + + "\032multiple_queries_generated\030\016 \001(\010\022&\n" + + "\036query_contained_search_context\030\017 \001(\010\022.\n" + + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" + + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\034QueryGenerationFailureReason\022/\n" + + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" + + "\027QUERY_GENERATION_FAILED\020\002\022\'\n" + + "#QUERY_GENERATION_NO_QUERY_GENERATED\020\003\022\037\n" + + "\033QUERY_GENERATION_RAI_FAILED\020\004\022\024\n" + + "\020NOT_IN_ALLOWLIST\020\005\022#\n" + + "\037QUERY_GENERATION_QUERY_REDACTED\020\006\022.\n" + + "*QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED\020\n" + + "\022\'\n" + + "#QUERY_GENERATION_EMPTY_CONVERSATION\020\013\022\'\n" + + "#QUERY_GENERATION_EMPTY_LAST_MESSAGE\020\014\0227\n" + + "3QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET\020\r" + + "\"\314\001\n" + + " QueryCategorizationFailureReason\0223\n" + + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\366\006\n" + "\025KnowledgeAssistAnswer\022Y\n" - + "\017suggested_query\030\001 \001" - + "(\0132@.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" - + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dial" - + "ogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" - + "answer_record\030\003 \001(\t\032$\n" + + "\017suggested_query\030\001 \001(\0132@.google.cloud." + + "dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" + + "\026suggested_query_answer\030\002 \001" + + "(\0132A.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "answer_record\030\003 \001(\t\022Y\n" + + "\033knowledge_assist_debug_info\030\007" + + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\206\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022a\n\n" - + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.K" - + "nowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" - + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow.v2.KnowledgeAssist" - + "Answer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.Knowledg" + + "eAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" + + "\021generative_source\030\004 \001(\0132R.google.cl" + + "oud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\340\001\n" + "\020GenerativeSource\022l\n" - + "\010snippets\030\001 \003(\0132Z.google.cloud.dialogflow.v2.KnowledgeAssistAnsw" - + "er.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132Z.google.cloud." + + "dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" - + "\006source2\372\030\n" + + "\006source*\326\002\n" + + "\027DatastoreResponseReason\022)\n" + + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\027\n" + + "\023SEARCH_OUT_OF_QUOTA\020\002\022\030\n" + + "\024SEARCH_EMPTY_RESULTS\020\003\022%\n" + + "!ANSWER_GENERATION_GEN_AI_DISABLED\020\004\022\"\n" + + "\036ANSWER_GENERATION_OUT_OF_QUOTA\020\005\022\033\n" + + "\027ANSWER_GENERATION_ERROR\020\006\022%\n" + + "!ANSWER_GENERATION_NOT_ENOUGH_INFO\020\007\022 \n" + + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\372\030\n" + "\014Participants\022\245\002\n" - + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.CreateParticipantReque" - + "st\032\'.google.cloud.dialogflow.v2.Particip" - + "ant\"\260\001\332A\022parent,participant\202\323\344\223\002\224\001\"4/v2/" - + "{parent=projects/*/conversations/*}/participants:\013participantZO\"@/v2/{parent=pro" - + "jects/*/locations/*/conversations/*}/participants:\013participant\022\366\001\n" - + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetPartic" - + "ipantRequest\032\'.google.cloud.dialogflow.v" - + "2.Participant\"\207\001\332A\004name\202\323\344\223\002z\0224/v2/{name" - + "=projects/*/conversations/*/participants" - + "/*}ZB\022@/v2/{name=projects/*/locations/*/conversations/*/participants/*}\022\211\002\n" - + "\020ListParticipants\0223.google.cloud.dialogflow.v" - + "2.ListParticipantsRequest\0324.google.cloud.dialogflow.v2.ListParticipantsResponse\"" - + "\211\001\332A\006parent\202\323\344\223\002z\0224/v2/{parent=projects/" - + "*/conversations/*}/participantsZB\022@/v2/{" - + "parent=projects/*/locations/*/conversations/*}/participants\022\302\002\n" - + "\021UpdateParticipant\0224.google.cloud.dialogflow.v2.UpdatePar" - + "ticipantRequest\032\'.google.cloud.dialogflo" - + "w.v2.Participant\"\315\001\332A\027participant,update" - + "_mask\202\323\344\223\002\254\0012@/v2/{participant.name=proj" - + "ects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{participant.name=pro" - + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\372\002\n" - + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.Analyze" - + "ContentRequest\0322.google.cloud.dialogflow" - + ".v2.AnalyzeContentResponse\"\200\002\332A\026particip" - + "ant,text_input\332A\027participant,event_input" - + "\332A\027participant,audio_input\202\323\344\223\002\254\001\"J/v2/{" - + "participant=projects/*/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/" - + "{participant=projects/*/locations/*/conv" - + "ersations/*/participants/*}:analyzeContent:\001*\022\230\001\n" - + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2.StreamingAnalyzeC" - + "ontentRequest\032;.google.cloud.dialogflow." - + "v2.StreamingAnalyzeContentResponse\"\000(\0010\001\022\311\002\n" - + "\017SuggestArticles\0222.google.cloud.dialogflow.v2.SuggestArticlesRequest\0323.googl" - + "e.cloud.dialogflow.v2.SuggestArticlesRes" - + "ponse\"\314\001\332A\006parent\202\323\344\223\002\274\001\"R/v2/{parent=pr" - + "ojects/*/conversations/*/participants/*}/suggestions:suggestArticles:\001*Zc\"^/v2/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:suggestArticles:\001*\022\323\002\n" - + "\021SuggestFaqAnswers\0224.google.cloud.dialogflow.v2.SuggestFaqAnswer" - + "sRequest\0325.google.cloud.dialogflow.v2.Su" - + "ggestFaqAnswersResponse\"\320\001\332A\006parent\202\323\344\223\002" - + "\300\001\"T/v2/{parent=projects/*/conversations" - + "/*/participants/*}/suggestions:suggestFaqAnswers:\001*Ze\"`/v2/{parent=projects/*/lo" - + "cations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*\022\335\002\n" - + "\023SuggestSmartReplies\0226.google.cloud.dialog" - + "flow.v2.SuggestSmartRepliesRequest\0327.google.cloud.dialogflow.v2.SuggestSmartRepl" - + "iesResponse\"\324\001\332A\006parent\202\323\344\223\002\304\001\"V/v2/{par" - + "ent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001" - + "*Zg\"b/v2/{parent=projects/*/locations/*/" - + "conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\343\002\n" - + "\026SuggestKnowledgeAssist\0229.google.cloud.dialogflow." - + "v2.SuggestKnowledgeAssistRequest\032:.google.cloud.dialogflow.v2.SuggestKnowledgeAs" - + "sistResponse\"\321\001\202\323\344\223\002\312\001\"Y/v2/{parent=proj" - + "ects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zj\"e" - + "/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:s" - + "uggestKnowledgeAssist:\001*\032x\312A\031dialogflow." - + "googleapis.com\322AYhttps://www.googleapis." - + "com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\226\001\n" - + "\036com.google.cloud.dialogflow.v2B\020ParticipantProtoP" - + "\001Z>cloud.google.com/go/dialogflow/apiv2/" - + "dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google." - + "Cloud.Dialogflow.V2b\006proto3" + + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.Crea" + + "teParticipantRequest\032\'.google.cloud.dial" + + "ogflow.v2.Participant\"\260\001\332A\022parent,partic" + + "ipant\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/con" + + "versations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locations/*/co" + + "nversations/*}/participants:\013participant\022\366\001\n" + + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'.google." + + "cloud.dialogflow.v2.Participant\"\207\001\332A\004nam" + + "e\202\323\344\223\002z\0224/v2/{name=projects/*/conversati" + + "ons/*/participants/*}ZB\022@/v2/{name=proje" + + "cts/*/locations/*/conversations/*/participants/*}\022\211\002\n" + + "\020ListParticipants\0223.google.cloud.dialogflow.v2.ListParticipantsRequ" + + "est\0324.google.cloud.dialogflow.v2.ListPar" + + "ticipantsResponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2" + + "/{parent=projects/*/conversations/*}/participantsZB\022@/v2/{parent=projects/*/loca" + + "tions/*/conversations/*}/participants\022\302\002\n" + + "\021UpdateParticipant\0224.google.cloud.dialo" + + "gflow.v2.UpdateParticipantRequest\032\'.goog" + + "le.cloud.dialogflow.v2.Participant\"\315\001\332A\027" + + "participant,update_mask\202\323\344\223\002\254\0012@/v2/{par" + + "ticipant.name=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{pa" + + "rticipant.name=projects/*/locations/*/co" + + "nversations/*/participants/*}:\013participant\022\372\002\n" + + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.AnalyzeContentRequest\0322.googl" + + "e.cloud.dialogflow.v2.AnalyzeContentResp" + + "onse\"\200\002\332A\026participant,text_input\332A\027parti" + + "cipant,event_input\332A\027participant,audio_i" + + "nput\202\323\344\223\002\254\001\"J/v2/{participant=projects/*" + + "/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/{participant=projects/" + + "*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" + + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2", + ".StreamingAnalyzeContentRequest\032;.google" + + ".cloud.dialogflow.v2.StreamingAnalyzeCon" + + "tentResponse\"\000(\0010\001\022\311\002\n\017SuggestArticles\0222" + + ".google.cloud.dialogflow.v2.SuggestArtic" + + "lesRequest\0323.google.cloud.dialogflow.v2." + + "SuggestArticlesResponse\"\314\001\332A\006parent\202\323\344\223\002" + + "\274\001\"R/v2/{parent=projects/*/conversations" + + "/*/participants/*}/suggestions:suggestAr" + + "ticles:\001*Zc\"^/v2/{parent=projects/*/loca" + + "tions/*/conversations/*/participants/*}/" + + "suggestions:suggestArticles:\001*\022\323\002\n\021Sugge" + + "stFaqAnswers\0224.google.cloud.dialogflow.v" + + "2.SuggestFaqAnswersRequest\0325.google.clou" + + "d.dialogflow.v2.SuggestFaqAnswersRespons" + + "e\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent=projec" + + "ts/*/conversations/*/participants/*}/sug" + + "gestions:suggestFaqAnswers:\001*Ze\"`/v2/{pa" + + "rent=projects/*/locations/*/conversation" + + "s/*/participants/*}/suggestions:suggestF" + + "aqAnswers:\001*\022\335\002\n\023SuggestSmartReplies\0226.g" + + "oogle.cloud.dialogflow.v2.SuggestSmartRe" + + "pliesRequest\0327.google.cloud.dialogflow.v" + + "2.SuggestSmartRepliesResponse\"\324\001\332A\006paren" + + "t\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/convers" + + "ations/*/participants/*}/suggestions:sug" + + "gestSmartReplies:\001*Zg\"b/v2/{parent=proje" + + "cts/*/locations/*/conversations/*/partic" + + "ipants/*}/suggestions:suggestSmartReplie" + + "s:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229.google" + + ".cloud.dialogflow.v2.SuggestKnowledgeAss" + + "istRequest\032:.google.cloud.dialogflow.v2." + + "SuggestKnowledgeAssistResponse\"\321\001\202\323\344\223\002\312\001" + + "\"Y/v2/{parent=projects/*/conversations/*" + + "/participants/*}/suggestions:suggestKnow" + + "ledgeAssist:\001*Zj\"e/v2/{parent=projects/*" + + "/locations/*/conversations/*/participant" + + "s/*}/suggestions:suggestKnowledgeAssist:" + + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialog" + + "flowB\226\001\n\036com.google.cloud.dialogflow.v2B" + + "\020ParticipantProtoP\001Z>cloud.google.com/go" + + "/dialogflow/apiv2/dialogflowpb;dialogflo" + + "wpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -779,6 +910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CxParameters", "EnableExtendedStreaming", "EnablePartialAutomatedAgentReply", + "OutputMultipleUtterances", "EnableDebuggingInfo", "Config", "Input", @@ -1027,13 +1159,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", }); - internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(35); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor, + new java.lang.String[] { + "ProjectNotAllowlisted", "ContextReferenceRetrieved", "IngestedParametersDebugInfo", + }); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor, + new java.lang.String[] { + "Parameter", "IngestionStatus", + }); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor, + new java.lang.String[] { + "InternalServiceLatencies", + }); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor = + internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor, + new java.lang.String[] { + "Step", "LatencyMs", "StartTime", "CompleteTime", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor, + new java.lang.String[] { + "QueryGenerationFailureReason", + "QueryCategorizationFailureReason", + "DatastoreResponseReason", + "KnowledgeAssistBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", + "EndUserMetadataIncluded", + "ReturnQueryOnly", + "UsePubsubDelivery", + "DisableSyncDelivery", + "PreviousQueriesIncluded", + "UseTranslatedMessage", + "UseCustomSafetyFilterLevel", + "ConversationTranscriptHasMixedLanguages", + "QueryGenerationAgentLanguageMismatch", + "QueryGenerationEndUserLanguageMismatch", + "ThirdPartyConnectorAllowed", + "MultipleQueriesGenerated", + "QueryContainedSearchContext", + "InvalidItemsQuerySuggestionSkipped", + "PrimaryQueryRedactedAndReplaced", + "AppendedSearchContextCount", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = + getDescriptor().getMessageType(38); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor, new java.lang.String[] { - "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", + "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", "KnowledgeAssistDebugInfo", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java new file mode 100644 index 000000000000..a513a55f38f0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfo.java @@ -0,0 +1,2306 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Debug information related to SearchKnowledge feature.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo} + */ +@com.google.protobuf.Generated +public final class SearchKnowledgeDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + SearchKnowledgeDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeDebugInfo"); + } + + // Use SearchKnowledgeDebugInfo.newBuilder() to construct. + private SearchKnowledgeDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeDebugInfo() { + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder.class); + } + + public interface SearchKnowledgeBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project. Note that this field only indicates if the project is
                                                                                                                                          +     * allowlisted for connectors.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class SearchKnowledgeBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + SearchKnowledgeBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeBehavior"); + } + + // Use SearchKnowledgeBehavior.newBuilder() to construct. + private SearchKnowledgeBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 4; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project. Note that this field only indicates if the project is
                                                                                                                                          +     * allowlisted for connectors.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(4, thirdPartyConnectorAllowed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, thirdPartyConnectorAllowed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other = + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + thirdPartyConnectorAllowed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + build() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + buildPartial() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other) { + if (other + == com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000004); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + private static final com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior(); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeBehavior parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 1; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber(datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceLatency()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo other = + (com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) obj; + + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasSearchKnowledgeBehavior() != other.hasSearchKnowledgeBehavior()) return false; + if (hasSearchKnowledgeBehavior()) { + if (!getSearchKnowledgeBehavior().equals(other.getSearchKnowledgeBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasSearchKnowledgeBehavior()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to SearchKnowledge feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSearchKnowledgeBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datastoreResponseReason_ = 0; + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo build() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result = + new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchKnowledgeBehavior_ = + searchKnowledgeBehaviorBuilder_ == null + ? searchKnowledgeBehavior_ + : searchKnowledgeBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo other) { + if (other == com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance()) + return this; + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasSearchKnowledgeBehavior()) { + mergeSearchKnowledgeBehavior(other.getSearchKnowledgeBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000001); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + searchKnowledgeBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + if (searchKnowledgeBehaviorBuilder_ == null) { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } else { + return searchKnowledgeBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeBehavior_ = value; + } else { + searchKnowledgeBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + builderForValue) { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehavior_ = builderForValue.build(); + } else { + searchKnowledgeBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder mergeSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchKnowledgeBehavior_ != null + && searchKnowledgeBehavior_ + != com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) { + getSearchKnowledgeBehaviorBuilder().mergeFrom(value); + } else { + searchKnowledgeBehavior_ = value; + } + } else { + searchKnowledgeBehaviorBuilder_.mergeFrom(value); + } + if (searchKnowledgeBehavior_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder clearSearchKnowledgeBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + getSearchKnowledgeBehaviorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + if (searchKnowledgeBehaviorBuilder_ != null) { + return searchKnowledgeBehaviorBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + internalGetSearchKnowledgeBehaviorFieldBuilder() { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder>( + getSearchKnowledgeBehavior(), getParentForChildren(), isClean()); + searchKnowledgeBehavior_ = null; + } + return searchKnowledgeBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + private static final com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java new file mode 100644 index 000000000000..055fc6a1231b --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeDebugInfoOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface SearchKnowledgeDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.DatastoreResponseReason datastore_response_reason = 1; + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + boolean hasSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 4; + */ + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java index d6b1afb351ca..c33b57c07827 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponse.java @@ -72,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.SearchKnowledgeResponse.Builder.class); } + private int bitField0_; public static final int ANSWERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -207,6 +208,63 @@ public com.google.protobuf.ByteString getRewrittenQueryBytes() { } } + public static final int SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -227,6 +285,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchKnowledgeDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -242,6 +303,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSearchKnowledgeDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +326,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAnswersList().equals(other.getAnswersList())) return false; if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (hasSearchKnowledgeDebugInfo() != other.hasSearchKnowledgeDebugInfo()) return false; + if (hasSearchKnowledgeDebugInfo()) { + if (!getSearchKnowledgeDebugInfo().equals(other.getSearchKnowledgeDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +347,10 @@ public int hashCode() { } hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (hasSearchKnowledgeDebugInfo()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -409,10 +483,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2.SearchKnowledgeResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswersFieldBuilder(); + internalGetSearchKnowledgeDebugInfoFieldBuilder(); + } } @java.lang.Override @@ -427,6 +511,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rewrittenQuery_ = ""; + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } return this; } @@ -480,6 +569,15 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.SearchKnowledgeRespons if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchKnowledgeDebugInfo_ = + searchKnowledgeDebugInfoBuilder_ == null + ? searchKnowledgeDebugInfo_ + : searchKnowledgeDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -527,6 +625,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SearchKnowledgeResponse bitField0_ |= 0x00000002; onChanged(); } + if (other.hasSearchKnowledgeDebugInfo()) { + mergeSearchKnowledgeDebugInfo(other.getSearchKnowledgeDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -573,6 +674,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1095,6 +1204,215 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder> + searchKnowledgeDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } else { + return searchKnowledgeDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeDebugInfo_ = value; + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder builderForValue) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfo_ = builderForValue.build(); + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder mergeSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchKnowledgeDebugInfo_ != null + && searchKnowledgeDebugInfo_ + != com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance()) { + getSearchKnowledgeDebugInfoBuilder().mergeFrom(value); + } else { + searchKnowledgeDebugInfo_ = value; + } + } else { + searchKnowledgeDebugInfoBuilder_.mergeFrom(value); + } + if (searchKnowledgeDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder clearSearchKnowledgeDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder + getSearchKnowledgeDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + if (searchKnowledgeDebugInfoBuilder_ != null) { + return searchKnowledgeDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder> + internalGetSearchKnowledgeDebugInfoFieldBuilder() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder>( + getSearchKnowledgeDebugInfo(), getParentForChildren(), isClean()); + searchKnowledgeDebugInfo_ = null; + } + return searchKnowledgeDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SearchKnowledgeResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java index ca3076de2dc9..9ce2bcc97ac6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeResponseOrBuilder.java @@ -112,4 +112,45 @@ public interface SearchKnowledgeResponseOrBuilder * @return The bytes for rewrittenQuery. */ com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + boolean hasSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + com.google.cloud.dialogflow.v2.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java new file mode 100644 index 000000000000..f01cdd4e2554 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatency.java @@ -0,0 +1,2382 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * Message to represent the latency of the service.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency} + */ +@com.google.protobuf.Generated +public final class ServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ServiceLatency) + ServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceLatency"); + } + + // Use ServiceLatency.newBuilder() to construct. + private ServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceLatency() { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder.class); + } + + public interface InternalServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + java.lang.String getStep(); + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + com.google.protobuf.ByteString getStepBytes(); + + /** + * + * + *
                                                                                                                                          +     * The latency of the internal service in milliseconds.
                                                                                                                                          +     * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + float getLatencyMs(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + } + + /** + * + * + *
                                                                                                                                          +   * Message to represent the latency of an internal service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency} + */ + public static final class InternalServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + InternalServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InternalServiceLatency"); + } + + // Use InternalServiceLatency.newBuilder() to construct. + private InternalServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InternalServiceLatency() { + step_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder.class); + } + + private int bitField0_; + public static final int STEP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + @java.lang.Override + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATENCY_MS_FIELD_NUMBER = 2; + private float latencyMs_ = 0F; + + /** + * + * + *
                                                                                                                                          +     * The latency of the internal service in milliseconds.
                                                                                                                                          +     * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + output.writeFloat(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCompleteTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency other = + (com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) obj; + + if (!getStep().equals(other.getStep())) return false; + if (java.lang.Float.floatToIntBits(getLatencyMs()) + != java.lang.Float.floatToIntBits(other.getLatencyMs())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + hash = (37 * hash) + LATENCY_MS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatencyMs()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Message to represent the latency of an internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = ""; + latencyMs_ = 0F; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency build() { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result = + new com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latencyMs_ = latencyMs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency other) { + if (other + == com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()) return this; + if (!other.getStep().isEmpty()) { + step_ = other.step_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getLatencyMs()) != 0) { + setLatencyMs(other.getLatencyMs()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + latencyMs_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @param value The bytes for step to set. + * @return This builder for chaining. + */ + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float latencyMs_; + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @param value The latencyMs to set. + * @return This builder for chaining. + */ + public Builder setLatencyMs(float value) { + + latencyMs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return This builder for chaining. + */ + public Builder clearLatencyMs() { + bitField0_ = (bitField0_ & ~0x00000002); + latencyMs_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency) + private static final com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalServiceLatency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + internalServiceLatencies_; + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List + getInternalServiceLatenciesList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public int getInternalServiceLatenciesCount() { + return internalServiceLatencies_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + return internalServiceLatencies_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + return internalServiceLatencies_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + output.writeMessage(1, internalServiceLatencies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, internalServiceLatencies_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.ServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ServiceLatency other = + (com.google.cloud.dialogflow.v2.ServiceLatency) obj; + + if (!getInternalServiceLatenciesList().equals(other.getInternalServiceLatenciesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInternalServiceLatenciesCount() > 0) { + hash = (37 * hash) + INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER; + hash = (53 * hash) + getInternalServiceLatenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.ServiceLatency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Message to represent the latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ServiceLatency) + com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ServiceLatency.class, + com.google.cloud.dialogflow.v2.ServiceLatency.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ServiceLatency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } else { + internalServiceLatencies_ = null; + internalServiceLatenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_ServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency build() { + com.google.cloud.dialogflow.v2.ServiceLatency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2.ServiceLatency result = + new com.google.cloud.dialogflow.v2.ServiceLatency(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2.ServiceLatency result) { + if (internalServiceLatenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + java.util.Collections.unmodifiableList(internalServiceLatencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.internalServiceLatencies_ = internalServiceLatencies_; + } else { + result.internalServiceLatencies_ = internalServiceLatenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ServiceLatency result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ServiceLatency) { + return mergeFrom((com.google.cloud.dialogflow.v2.ServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ServiceLatency other) { + if (other == com.google.cloud.dialogflow.v2.ServiceLatency.getDefaultInstance()) return this; + if (internalServiceLatenciesBuilder_ == null) { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatencies_.isEmpty()) { + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.addAll(other.internalServiceLatencies_); + } + onChanged(); + } + } else { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatenciesBuilder_.isEmpty()) { + internalServiceLatenciesBuilder_.dispose(); + internalServiceLatenciesBuilder_ = null; + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + internalServiceLatenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInternalServiceLatenciesFieldBuilder() + : null; + } else { + internalServiceLatenciesBuilder_.addAllMessages(other.internalServiceLatencies_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency m = + input.readMessage( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .parser(), + extensionRegistry); + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(m); + } else { + internalServiceLatenciesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + internalServiceLatencies_ = java.util.Collections.emptyList(); + + private void ensureInternalServiceLatenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency>( + internalServiceLatencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + internalServiceLatenciesBuilder_; + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List + getInternalServiceLatenciesList() { + if (internalServiceLatenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } else { + return internalServiceLatenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public int getInternalServiceLatenciesCount() { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.size(); + } else { + return internalServiceLatenciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addAllInternalServiceLatencies( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency> + values) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalServiceLatencies_); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder clearInternalServiceLatencies() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + internalServiceLatenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder removeInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.remove(index); + onChanged(); + } else { + internalServiceLatenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + getInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + if (internalServiceLatenciesBuilder_ != null) { + return internalServiceLatenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder() { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder> + getInternalServiceLatenciesBuilderList() { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + internalGetInternalServiceLatenciesFieldBuilder() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder>( + internalServiceLatencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + internalServiceLatencies_ = null; + } + return internalServiceLatenciesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ServiceLatency) + private static final com.google.cloud.dialogflow.v2.ServiceLatency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2.ServiceLatency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLatency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ServiceLatency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java new file mode 100644 index 000000000000..d21a9d1ad084 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ServiceLatencyOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface ServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List + getInternalServiceLatenciesList(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency getInternalServiceLatencies( + int index); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + int getInternalServiceLatenciesCount(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List< + ? extends com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java index 13b928eec918..1a48eeda0f9d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequest.java @@ -864,6 +864,27 @@ public boolean getEnablePartialAutomatedAgentReply() { return enablePartialAutomatedAgentReply_; } + public static final int OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER = 18; + private boolean outputMultipleUtterances_ = false; + + /** + * + * + *
                                                                                                                                          +   * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                          +   * them individually instead of stitching them together to form a single
                                                                                                                                          +   * utterance.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19; private boolean enableDebuggingInfo_ = false; @@ -934,6 +955,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getCxParameters()); } + if (outputMultipleUtterances_ != false) { + output.writeBool(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { output.writeBool(19, enableDebuggingInfo_); } @@ -992,6 +1016,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCxParameters()); } + if (outputMultipleUtterances_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_); } @@ -1031,6 +1058,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false; if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply()) return false; + if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false; if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { @@ -1092,6 +1120,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply()); + hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances()); hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo()); switch (configCase_) { @@ -1345,6 +1375,7 @@ public Builder clear() { } enableExtendedStreaming_ = false; enablePartialAutomatedAgentReply_ = false; + outputMultipleUtterances_ = false; enableDebuggingInfo_ = false; configCase_ = 0; config_ = null; @@ -1422,6 +1453,9 @@ private void buildPartial0( result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.outputMultipleUtterances_ = outputMultipleUtterances_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.enableDebuggingInfo_ = enableDebuggingInfo_; } result.bitField0_ |= to_bitField0_; @@ -1481,6 +1515,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.StreamingAnalyzeContentR if (other.getEnablePartialAutomatedAgentReply() != false) { setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply()); } + if (other.getOutputMultipleUtterances() != false) { + setOutputMultipleUtterances(other.getOutputMultipleUtterances()); + } if (other.getEnableDebuggingInfo() != false) { setEnableDebuggingInfo(other.getEnableDebuggingInfo()); } @@ -1629,10 +1666,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 106 + case 144: + { + outputMultipleUtterances_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 144 case 152: { enableDebuggingInfo_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 152 default: @@ -3786,6 +3829,68 @@ public Builder clearEnablePartialAutomatedAgentReply() { return this; } + private boolean outputMultipleUtterances_; + + /** + * + * + *
                                                                                                                                          +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                          +     * them individually instead of stitching them together to form a single
                                                                                                                                          +     * utterance.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                          +     * them individually instead of stitching them together to form a single
                                                                                                                                          +     * utterance.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputMultipleUtterances to set. + * @return This builder for chaining. + */ + public Builder setOutputMultipleUtterances(boolean value) { + + outputMultipleUtterances_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                          +     * them individually instead of stitching them together to form a single
                                                                                                                                          +     * utterance.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMultipleUtterances() { + bitField0_ = (bitField0_ & ~0x00001000); + outputMultipleUtterances_ = false; + onChanged(); + return this; + } + private boolean enableDebuggingInfo_; /** @@ -3821,7 +3926,7 @@ public boolean getEnableDebuggingInfo() { public Builder setEnableDebuggingInfo(boolean value) { enableDebuggingInfo_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3839,7 +3944,7 @@ public Builder setEnableDebuggingInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDebuggingInfo() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); enableDebuggingInfo_ = false; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java index fb864d5f2622..58280f42c5b1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentRequestOrBuilder.java @@ -482,6 +482,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder */ boolean getEnablePartialAutomatedAgentReply(); + /** + * + * + *
                                                                                                                                          +   * Optional. If multiple uttereances are detected in the audio stream, process
                                                                                                                                          +   * them individually instead of stitching them together to form a single
                                                                                                                                          +   * utterance.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + boolean getOutputMultipleUtterances(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java index 761b3b0d8e76..ab9b4f40fa60 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestConversationSummaryResponse.java @@ -176,6 +176,86 @@ java.lang.String getTextSectionsOrDefault( */ java.lang.String getTextSectionsOrThrow(java.lang.String key); + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + int getSortedTextSectionsCount(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index); + /** * * @@ -265,6 +345,7 @@ private Summary(com.google.protobuf.GeneratedMessage.Builder builder) { private Summary() { text_ = ""; + sortedTextSections_ = java.util.Collections.emptyList(); answerRecord_ = ""; baselineModelVersion_ = ""; } @@ -297,6 +378,895 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl .class); } + public interface SummarySectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + } + + /** + * + * + *
                                                                                                                                          +     * A component of the generated summary.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class SummarySection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + SummarySectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummarySection"); + } + + // Use SummarySection.newBuilder() to construct. + private SummarySection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummarySection() { + section_ = ""; + summary_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, summary_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + other = + (com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) + obj; + + if (!getSection().equals(other.getSection())) return false; + if (!getSummary().equals(other.getSummary())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +       * A component of the generated summary.
                                                                                                                                          +       * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto + .internal_static_google_cloud_dialogflow_v2_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + build() { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + buildPartial() { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result = + new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + other) { + if (other + == com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()) return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection) + private static final com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection(); + } + + public static com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -467,6 +1437,109 @@ public java.lang.String getTextSectionsOrThrow(java.lang.String key) { return map.get(key); } + public static final int SORTED_TEXT_SECTIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + sortedTextSections_; + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public int getSortedTextSectionsCount() { + return sortedTextSections_.size(); + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index) { + return sortedTextSections_.get(index); + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + return sortedTextSections_.get(index); + } + public static final int ANSWER_RECORD_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -602,6 +1675,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + output.writeMessage(6, sortedTextSections_.get(i)); + } getUnknownFields().writeTo(output); } @@ -630,6 +1706,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, sortedTextSections_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -649,6 +1729,7 @@ public boolean equals(final java.lang.Object obj) { if (!getText().equals(other.getText())) return false; if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; + if (!getSortedTextSectionsList().equals(other.getSortedTextSectionsList())) return false; if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -668,6 +1749,10 @@ public int hashCode() { hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetTextSections().hashCode(); } + if (getSortedTextSectionsCount() > 0) { + hash = (37 * hash) + SORTED_TEXT_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSortedTextSectionsList().hashCode(); + } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; @@ -845,6 +1930,13 @@ public Builder clear() { bitField0_ = 0; text_ = ""; internalGetMutableTextSections().clear(); + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + } else { + sortedTextSections_ = null; + sortedTextSectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); answerRecord_ = ""; baselineModelVersion_ = ""; return this; @@ -878,6 +1970,7 @@ public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary buildPartial() { com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result = new com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -885,6 +1978,19 @@ public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result) { + if (sortedTextSectionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = java.util.Collections.unmodifiableList(sortedTextSections_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sortedTextSections_ = sortedTextSections_; + } else { + result.sortedTextSections_ = sortedTextSectionsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary result) { int from_bitField0_ = bitField0_; @@ -895,10 +2001,10 @@ private void buildPartial0( result.textSections_ = internalGetTextSections(); result.textSections_.makeImmutable(); } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.baselineModelVersion_ = baselineModelVersion_; } } @@ -927,14 +2033,41 @@ public Builder mergeFrom( } internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); bitField0_ |= 0x00000002; + if (sortedTextSectionsBuilder_ == null) { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSections_.isEmpty()) { + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.addAll(other.sortedTextSections_); + } + onChanged(); + } + } else { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSectionsBuilder_.isEmpty()) { + sortedTextSectionsBuilder_.dispose(); + sortedTextSectionsBuilder_ = null; + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + sortedTextSectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSortedTextSectionsFieldBuilder() + : null; + } else { + sortedTextSectionsBuilder_.addAllMessages(other.sortedTextSections_); + } + } + } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getBaselineModelVersion().isEmpty()) { baselineModelVersion_ = other.baselineModelVersion_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -972,7 +2105,7 @@ public Builder mergeFrom( case 26: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -990,9 +2123,26 @@ public Builder mergeFrom( case 42: { baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + m = + input.readMessage( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse + .Summary.SummarySection.parser(), + extensionRegistry); + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(m); + } else { + sortedTextSectionsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1312,6 +2462,487 @@ public Builder putAllTextSections(java.util.Map + sortedTextSections_ = java.util.Collections.emptyList(); + + private void ensureSortedTextSectionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection>(sortedTextSections_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + sortedTextSectionsBuilder_; + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + if (sortedTextSectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } else { + return sortedTextSectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public int getSortedTextSectionsCount() { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.size(); + } else { + return sortedTextSectionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection + .Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addAllSortedTextSections( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection> + values) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sortedTextSections_); + onChanged(); + } else { + sortedTextSectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder clearSortedTextSections() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sortedTextSectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder removeSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.remove(index); + onChanged(); + } else { + sortedTextSectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + getSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + if (sortedTextSectionsBuilder_ != null) { + return sortedTextSectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder() { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder> + getSortedTextSectionsBuilderList() { + return internalGetSortedTextSectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + internalGetSortedTextSectionsFieldBuilder() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder>( + sortedTextSections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sortedTextSections_ = null; + } + return sortedTextSectionsBuilder_; + } + private java.lang.Object answerRecord_ = ""; /** @@ -1380,7 +3011,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1399,7 +3030,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1423,7 +3054,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1496,7 +3127,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { throw new NullPointerException(); } baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1515,7 +3146,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { */ public Builder clearBaselineModelVersion() { baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1539,7 +3170,7 @@ public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java index 7418293da86d..7a19a2a180e0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCall.java @@ -254,6 +254,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(11), + CES_TOOLSET(12), + CES_APP(8), SOURCE_NOT_SET(0); private final int value; @@ -275,6 +278,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 11: + return CES_TOOL; + case 12: + return CES_TOOLSET; + case 8: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -376,6 +385,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 8; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 8; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 8) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 8) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -769,12 +1033,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dialogflow.v2.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } + if (sourceCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } getUnknownFields().writeTo(output); } @@ -802,12 +1075,21 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dialogflow.v2.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } + if (sourceCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -841,6 +1123,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 11: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 12: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 8: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -878,6 +1169,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 11: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 8: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1085,29 +1388,29 @@ public com.google.cloud.dialogflow.v2.ToolCall buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2.ToolCall result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.toolDisplayName_ = toolDisplayName_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.toolDisplayDetails_ = toolDisplayDetails_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.inputParameters_ = inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -1132,17 +1435,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCall other) { if (other == com.google.cloud.dialogflow.v2.ToolCall.getDefaultInstance()) return this; if (!other.getToolDisplayName().isEmpty()) { toolDisplayName_ = other.toolDisplayName_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getToolDisplayDetails().isEmpty()) { toolDisplayDetails_ = other.toolDisplayDetails_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputParameters()) { @@ -1153,180 +1456,711 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCall other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } - switch (other.getSourceCase()) { - case TOOL: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + case 74: + { + toolDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + toolDisplayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          +     * this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 18: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 50: - { - answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 74: - { - toolDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 82: - { - toolDisplayDetails_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + sourceCase_ = 12; + source_ = value; + onChanged(); return this; } - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; onChanged(); return this; } - private int bitField0_; - /** * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the tool field is set. + * @return Whether the cesApp field is set. */ @java.lang.Override - public boolean hasTool() { - return sourceCase_ == 1; + public boolean hasCesApp() { + return sourceCase_ == 8; } /** * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The tool. + * @return The cesApp. */ @java.lang.Override - public java.lang.String getTool() { + public java.lang.String getCesApp() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = s; } return s; @@ -1339,27 +2173,27 @@ public java.lang.String getTool() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The bytes for tool. + * @return The bytes for cesApp. */ @java.lang.Override - public com.google.protobuf.ByteString getToolBytes() { + public com.google.protobuf.ByteString getCesAppBytes() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = b; } return b; @@ -1372,23 +2206,23 @@ public com.google.protobuf.ByteString getToolBytes() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The tool to set. + * @param value The cesApp to set. * @return This builder for chaining. */ - public Builder setTool(java.lang.String value) { + public Builder setCesApp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1398,19 +2232,19 @@ public Builder setTool(java.lang.String value) { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ - public Builder clearTool() { - if (sourceCase_ == 1) { + public Builder clearCesApp() { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); @@ -1422,24 +2256,24 @@ public Builder clearTool() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2.Tool] associated with
                                                                                                                                          -     * this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The bytes for tool to set. + * @param value The bytes for cesApp to set. * @return This builder for chaining. */ - public Builder setToolBytes(com.google.protobuf.ByteString value) { + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1510,7 +2344,7 @@ public Builder setToolDisplayName(java.lang.String value) { throw new NullPointerException(); } toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1528,7 +2362,7 @@ public Builder setToolDisplayName(java.lang.String value) { */ public Builder clearToolDisplayName() { toolDisplayName_ = getDefaultInstance().getToolDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1551,7 +2385,7 @@ public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1621,7 +2455,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { throw new NullPointerException(); } toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1639,7 +2473,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { */ public Builder clearToolDisplayDetails() { toolDisplayDetails_ = getDefaultInstance().getToolDisplayDetails(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1662,7 +2496,7 @@ public Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1732,7 +2566,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1750,7 +2584,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -1773,7 +2607,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1798,7 +2632,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { * @return Whether the inputParameters field is set. */ public boolean hasInputParameters() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1842,7 +2676,7 @@ public Builder setInputParameters(com.google.protobuf.Struct value) { } else { inputParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1863,7 +2697,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV } else { inputParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1880,7 +2714,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV */ public Builder mergeInputParameters(com.google.protobuf.Struct value) { if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && inputParameters_ != null && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { getInputParametersBuilder().mergeFrom(value); @@ -1891,7 +2725,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { inputParametersBuilder_.mergeFrom(value); } if (inputParameters_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1908,7 +2742,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { * */ public Builder clearInputParameters() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); inputParameters_ = null; if (inputParametersBuilder_ != null) { inputParametersBuilder_.dispose(); @@ -1929,7 +2763,7 @@ public Builder clearInputParameters() { * */ public com.google.protobuf.Struct.Builder getInputParametersBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return internalGetInputParametersFieldBuilder().getBuilder(); } @@ -2002,7 +2836,7 @@ public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2048,7 +2882,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2070,7 +2904,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2088,7 +2922,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2099,7 +2933,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2117,7 +2951,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2139,7 +2973,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2258,7 +3092,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2276,7 +3110,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2299,7 +3133,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2340,7 +3174,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2383,7 +3217,7 @@ public Builder setState(com.google.cloud.dialogflow.v2.ToolCall.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -2403,7 +3237,7 @@ public Builder setState(com.google.cloud.dialogflow.v2.ToolCall.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java index e43c12d22670..57e77ac8672e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java index 0ae04259cf48..899af33a2631 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallProto.java @@ -65,10 +65,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*google/cloud/dialogflow/v2/tool_call.p" + "roto\022\032google.cloud.dialogflow.v2\032\037google" + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\265\003\n" + + "source.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\330\004\n" + "\010ToolCall\0226\n" + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\036\n" + + "\036dialogflow.googleapis.com/ToolH\000\0223\n" + + "\010ces_tool\030\013 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0229\n" + + "\013ces_toolset\030\014 \001(\tB\"\340A\001\372A\034\n" + + "\032ces.googleapis.com/ToolsetH\000\0221\n" + + "\007ces_app\030\010 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/AppH\000\022\036\n" + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n" + "\024tool_display_details\030\n" + " \001(\tB\003\340A\001\022\023\n" @@ -84,13 +90,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\r\n" + "\tTRIGGERED\020\001\022\026\n" + "\022NEEDS_CONFIRMATION\020\002B\010\n" - + "\006source\"\317\002\n" + + "\006source\"\362\003\n" + "\016ToolCallResult\0226\n" + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\023\n" + + "\036dialogflow.googleapis.com/ToolH\000\0229\n" + + "\013ces_toolset\030\r" + + " \001(\tB\"\340A\001\372A\034\n" + + "\032ces.googleapis.com/ToolsetH\000\0223\n" + + "\010ces_tool\030\014 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0221\n" + + "\007ces_app\030\013 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/AppH\000\022\023\n" + "\006action\030\002 \001(\tB\003\340A\001\022A\n" - + "\005error\030\003 \001(\01320.google.clou" - + "d.dialogflow.v2.ToolCallResult.ErrorH\001\022\025\n" + + "\005error\030\003 \001(\01320.googl" + + "e.cloud.dialogflow.v2.ToolCallResult.ErrorH\001\022\025\n" + "\013raw_content\030\005 \001(\014H\001\022\021\n" + "\007content\030\006 \001(\tH\001\0224\n" + "\013create_time\030\007" @@ -101,8 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006sourceB\010\n" + "\006resultB\223\001\n" + "\036com.google.cloud.dialogflow.v2B\r" - + "ToolCallProtoP\001Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dia" - + "logflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" + + "ToolCallProtoP\001Z>cloud.google.com/go/dialogflow/apiv2/dialogflow" + + "pb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -120,6 +133,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2_ToolCall_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "ToolDisplayName", "ToolDisplayDetails", "Action", @@ -136,6 +152,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2_ToolCallResult_descriptor, new java.lang.String[] { "Tool", + "CesToolset", + "CesTool", + "CesApp", "Action", "Error", "RawContent", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java index bb55e4ead02a..9ac071471e2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResult.java @@ -690,6 +690,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOLSET(13), + CES_TOOL(12), + CES_APP(11), SOURCE_NOT_SET(0); private final int value; @@ -711,6 +714,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 13: + return CES_TOOLSET; + case 12: + return CES_TOOL; + case 11: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -865,6 +874,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOLSET_FIELD_NUMBER = 13; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOL_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -1224,6 +1488,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, answerRecord_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } + if (sourceCase_ == 13) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, source_); + } getUnknownFields().writeTo(output); } @@ -1258,6 +1531,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, answerRecord_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } + if (sourceCase_ == 13) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1285,6 +1567,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 13: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 12: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 11: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -1326,6 +1617,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 13: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 11: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1545,15 +1848,15 @@ public com.google.cloud.dialogflow.v2.ToolCallResult buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2.ToolCallResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } result.bitField0_ |= to_bitField0_; @@ -1583,7 +1886,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { if (other == com.google.cloud.dialogflow.v2.ToolCallResult.getDefaultInstance()) return this; if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1591,7 +1894,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getSourceCase()) { @@ -1602,6 +1905,27 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolCallResult other) { onChanged(); break; } + case CES_TOOLSET: + { + sourceCase_ = 13; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } case SOURCE_NOT_SET: { break; @@ -1666,7 +1990,7 @@ public Builder mergeFrom( case 18: { action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 18 case 26: @@ -1692,15 +2016,36 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 58 case 74: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 74 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 13; + source_ = s; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1911,6 +2256,495 @@ public Builder setToolBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 13) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + @java.lang.Override + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + private java.lang.Object action_ = ""; /** @@ -1976,7 +2810,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1994,7 +2828,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2017,7 +2851,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2480,7 +3314,7 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2526,7 +3360,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2548,7 +3382,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2566,7 +3400,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2577,7 +3411,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2595,7 +3429,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2617,7 +3451,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2736,7 +3570,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2754,7 +3588,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2777,7 +3611,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java index f61ca2f448b2..ee4915312f2c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolCallResultOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallResultOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java new file mode 100644 index 000000000000..ffc1de3398fd --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public final class ToolsetProto extends com.google.protobuf.GeneratedFile { + private ToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/dialogflow/v2/toolset.pro" + + "to\022\032google.cloud.dialogflow.v2\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032%google/cloud/dialogflow/v2/t" + + "ool.proto\"\276\001\n\013ToolsetTool\0223\n\007toolset\030\001 \001" + + "(\tB\"\340A\002\372A\034\n\032ces.googleapis.com/Toolset\022\031" + + "\n\014operation_id\030\002 \001(\tB\003\340A\001\022_\n\030confirmatio" + + "n_requirement\030\003 \001(\01628.google.cloud.dialo" + + "gflow.v2.Tool.ConfirmationRequirementB\003\340" + + "A\001B\370\001\n\036com.google.cloud.dialogflow.v2B\014T" + + "oolsetProtoP\001Z>cloud.google.com/go/dialo" + + "gflow/apiv2/dialogflowpb;dialogflowpb\242\002\002" + + "DF\252\002\032Google.Cloud.Dialogflow.V2\352Ac\n\032ces." + + "googleapis.com/Toolset\022Eprojects/{projec" + + "t}/locations/{location}/apps/{app}/tools" + + "ets/{toolset}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor, + new java.lang.String[] { + "Toolset", "OperationId", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java new file mode 100644 index 000000000000..7ff800d8178d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetTool.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
                                                                                                                                          + * A tool that is created from a toolset.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ToolsetTool} + */ +@com.google.protobuf.Generated +public final class ToolsetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ToolsetTool) + ToolsetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetTool"); + } + + // Use ToolsetTool.newBuilder() to construct. + private ToolsetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsetTool() { + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ToolsetTool.class, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 3; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.ToolsetTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.ToolsetTool other = + (com.google.cloud.dialogflow.v2.ToolsetTool) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.ToolsetTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * A tool that is created from a toolset.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2.ToolsetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ToolsetTool) + com.google.cloud.dialogflow.v2.ToolsetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.ToolsetTool.class, + com.google.cloud.dialogflow.v2.ToolsetTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.ToolsetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ToolsetProto + .internal_static_google_cloud_dialogflow_v2_ToolsetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool build() { + com.google.cloud.dialogflow.v2.ToolsetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool buildPartial() { + com.google.cloud.dialogflow.v2.ToolsetTool result = + new com.google.cloud.dialogflow.v2.ToolsetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.ToolsetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.ToolsetTool) { + return mergeFrom((com.google.cloud.dialogflow.v2.ToolsetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.ToolsetTool other) { + if (other == com.google.cloud.dialogflow.v2.ToolsetTool.getDefaultInstance()) return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000004); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ToolsetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ToolsetTool) + private static final com.google.cloud.dialogflow.v2.ToolsetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ToolsetTool(); + } + + public static com.google.cloud.dialogflow.v2.ToolsetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsetTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.ToolsetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java new file mode 100644 index 000000000000..142ae8e0f29d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolsetToolOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface ToolsetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ToolsetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + java.lang.String getOperationId(); + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto index c7896c22796e..8fe79a056471 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto index 9ed21cd3e138..756e625272c7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/agent_coaching_instruction.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto index 300f1076612c..013dffeaed9d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index b3dbed6fa782..af0626faf2f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto new file mode 100644 index 000000000000..bb2e780590b0 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesAppProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/App" + pattern: "projects/{project}/locations/{location}/apps/{app}" +}; + +// Spec of CES app that the generator can choose from. +message CesAppSpec { + // Optional. Format: `projects//locations//apps/`. + string ces_app = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. Indicates whether the app requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto new file mode 100644 index 000000000000..1f1c3a66b624 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_tool.proto @@ -0,0 +1,42 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesToolProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Spec of CES tool that the generator can choose from. +message CesToolSpec { + // Optional. Format: `projects//locations//apps//tools/`. + string ces_tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto index dd7aa6aa0c24..01ace7907184 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/context.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto index 6fc9ff8de6e0..75020dc96d69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -367,6 +367,37 @@ message Conversation { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Represents the context of a generator. + message GeneratorContext { + // The available generator types. + enum GeneratorType { + // Unspecified generator type. + GENERATOR_TYPE_UNSPECIFIED = 0; + + // Free form generator type. + FREE_FORM = 1; + + // Agent coaching generator type. + AGENT_COACHING = 2; + + // Summarization generator type. + SUMMARIZATION = 3; + + // Translation generator type. + TRANSLATION = 4; + + // Agent feedback generator type. + AGENT_FEEDBACK = 5; + + // Customer message generation generator type. + CUSTOMER_MESSAGE_GENERATION = 6; + } + + // Output only. The type of the generator. + GeneratorType generator_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Identifier. The unique identifier of this conversation. // Format: `projects//locations//conversations/`. @@ -426,9 +457,22 @@ message Conversation { TelephonyConnectionInfo telephony_connection_info = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Output only. The initial conversation profile to be used to + // configure this conversation, which is a copy of the conversation profile + // config read at conversation creation time. + ConversationProfile initial_conversation_profile = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. The context reference updates provided by external systems. map ingested_context_references = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A map with generator name as key and generator context as + // value. + map initial_generator_contexts = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request message for @@ -651,6 +695,15 @@ message SuggestConversationSummaryRequest { message SuggestConversationSummaryResponse { // Generated summary for a conversation. message Summary { + // A component of the generated summary. + message SummarySection { + // Output only. Name of the section. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary text for the section. + string summary = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The summary content that is concatenated into one string. string text = 1; @@ -659,6 +712,10 @@ message SuggestConversationSummaryResponse { // specific format for the key or value. map text_sections = 4; + // Same as text_sections, but in an order that is consistent with the order + // of the sections in the generator. + repeated SummarySection sorted_text_sections = 6; + // The name of the answer record. Format: // "projects//answerRecords/" string answer_record = 3 [(google.api.resource_reference) = { @@ -1117,6 +1174,36 @@ message SearchKnowledgeRequest { bool exact_search = 14 [(google.api.field_behavior) = OPTIONAL]; } +// Debug information related to SearchKnowledge feature. +message SearchKnowledgeDebugInfo { + // Configured behaviors for SearchKnowledge. + message SearchKnowledgeBehavior { + // Whether data store agent rewriter was turned on for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // This field indicates whether third party connectors are enabled for the + // project. Note that this field only indicates if the project is + // allowlisted for connectors. + bool third_party_connector_allowed = 4; + } + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 1; + + // Configured behaviors for SearchKnowledge. + SearchKnowledgeBehavior search_knowledge_behavior = 2; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + + // The latency of the service. + ServiceLatency service_latency = 4; +} + // The response message for // [Conversations.SearchKnowledge][google.cloud.dialogflow.v2.Conversations.SearchKnowledge]. message SearchKnowledgeResponse { @@ -1126,6 +1213,9 @@ message SearchKnowledgeResponse { // The rewritten query used to search knowledge. string rewritten_query = 3; + + // Debug info for SearchKnowledge. + SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; } // Represents a SearchKnowledge answer. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto index bf126d212326..7c39a06bd05f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto index c7f8faafc21f..9ed3d9ebca63 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto index adc56a3d3166..ec7f4bd212e7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_model.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index da2faf83fc2c..3cbee623c8e6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -785,6 +785,31 @@ message HumanAgentAssistantConfig { // If Pub/Sub notification is configured, result will be in // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. bool enable_sentiment_analysis = 3; + + // Optional. Enables sentiment analysis for audio input and conversation + // messages. If unspecified, defaults to false. If this flag is set to true, + // other 'enable_sentiment_analysis' fields will be ignored. + // + // Sentiment analysis inspects user input and identifies the prevailing + // subjective opinion, especially to determine a user's attitude as + // positive, negative, or neutral. + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + // method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. + // For + // [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] + // method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] + // For + // [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] + // method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis_v3 = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Pub/Sub topic on which to publish new agent assistant events. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto index 10677935a91e..2d42c45f6ea1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto index c311958d5b79..0d441c3aa616 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto index 7112a605dbf6..94e665ed0049 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto index dbcbb3cc2832..f8eac1db1ece 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto index ddfba0c773f9..819d9a802e00 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto index 8e4706530081..4a5f70513206 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto index 8f7ecbfd068c..afbbe1d153da 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,10 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2/agent_coaching_instruction.proto"; +import "google/cloud/dialogflow/v2/ces_app.proto"; +import "google/cloud/dialogflow/v2/ces_tool.proto"; import "google/cloud/dialogflow/v2/tool_call.proto"; +import "google/cloud/dialogflow/v2/toolset.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -462,6 +465,18 @@ message Generator { // AI Coach feature. SuggestionDedupingConfig suggestion_deduping_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES toolset specs that the generator can choose from. + repeated ToolsetTool toolset_tools = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES tool specs that the generator can choose from. + repeated CesToolSpec ces_tool_specs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES app specs that the generator can choose from. + repeated CesAppSpec ces_app_specs = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Suggestion generated using free form generator. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto index 91c3d3520210..2a37a3b136ec 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/generator_evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto index 06cb7ced4a92..ba87fae3afc5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto index 99138f724029..efebee31d34b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto index 6646ec87b4d3..0f15305276cf 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto index 60d676019bac..698f70e68504 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index cdab1d59421c..d60c6bb8619f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -689,6 +689,11 @@ message StreamingAnalyzeContentRequest { bool enable_partial_automated_agent_reply = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If multiple uttereances are detected in the audio stream, process + // them individually instead of stitching them together to form a single + // utterance. + bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL]; + // If true, `StreamingAnalyzeContentResponse.debugging_info` will get // populated. bool enable_debugging_info = 19; @@ -1340,6 +1345,217 @@ message SuggestKnowledgeAssistResponse { int32 context_size = 3; } +// Debug information related to ingested context reference. +message IngestedContextReferenceDebugInfo { + // Debug information related to ingested parameters from context reference. + message IngestedParameterDebugInfo { + // Enum representing the various states of parameter ingestion. + enum IngestionStatus { + // Default value, indicates that the ingestion status is not specified. + INGESTION_STATUS_UNSPECIFIED = 0; + + // Indicates that the parameter was successfully ingested. + INGESTION_STATUS_SUCCEEDED = 1; + + // Indicates that the parameter was not available for ingestion. + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + + // Indicates that there was a failure parsing the parameter content. + INGESTION_STATUS_PARSE_FAILED = 3; + + // Indicates that the context reference had an unexpected number of + // content entries as Context reference should only have one entry. + INGESTION_STATUS_INVALID_ENTRY = 4; + + // Indicates that the context reference content was not in the expected + // format (e.g., JSON). + INGESTION_STATUS_INVALID_FORMAT = 5; + + // Indicates that the context reference language does not match the + // conversation language. + INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + } + + // The name of the parameter in the context reference. + string parameter = 1; + + // The ingestion status for this specific parameter. + IngestionStatus ingestion_status = 2; + } + + // Indicates if the project is allowlisted to use ingested context + // reference. + bool project_not_allowlisted = 1; + + // The status of context_reference retrieval from database. + bool context_reference_retrieved = 2; + + // Parameters ingested from the context reference. + repeated IngestedParameterDebugInfo ingested_parameters_debug_info = 3; +} + +// Message to represent the latency of the service. +message ServiceLatency { + // Message to represent the latency of an internal service. + message InternalServiceLatency { + // The name of the internal service. + string step = 1; + + // The latency of the internal service in milliseconds. + float latency_ms = 2; + + // The start time of the internal service. + google.protobuf.Timestamp start_time = 3; + + // The completion time of the internal service. + google.protobuf.Timestamp complete_time = 4; + } + + // A list of internal service latencies. + repeated InternalServiceLatency internal_service_latencies = 1; +} + +// Debug information related to Knowledge Assist feature. +message KnowledgeAssistDebugInfo { + // Reason for query generation failure. + enum QueryGenerationFailureReason { + // Default value. + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Query generation is blocked due to out of quota. + QUERY_GENERATION_OUT_OF_QUOTA = 1; + + // Call to Knowedge Assist query generation model fails. + QUERY_GENERATION_FAILED = 2; + + // Query generation model decides that there is no new topic change or + // there has been similar queries generated in the previous turns. + QUERY_GENERATION_NO_QUERY_GENERATED = 3; + + // Knowedge Assist generated query is blocked by RAI (Responsible AI). + QUERY_GENERATION_RAI_FAILED = 4; + + // Query generation is blocked by Knowledge Assist conversation profile + // level / agent id level filtering. + NOT_IN_ALLOWLIST = 5; + + // The generated query is blocked due to redaction. + QUERY_GENERATION_QUERY_REDACTED = 6; + + // Query generation failed due to LLM response parse failure. + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + + // The conversation has no messages. + QUERY_GENERATION_EMPTY_CONVERSATION = 11; + + // The last message in the conversation is empty. + QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + + // The trigger event condition is not met. + // This occurs in the following scenarios: + // 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last + // message is not from the customer. + // 2. The trigger_event is AGENT_MESSAGE, but the last message is not from + // the agent. + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + } + + // Reason for query categorization failure. + enum QueryCategorizationFailureReason { + // Default value. + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Vertex AI Search config supplied for query categorization is invalid. + QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + + // Vertex AI Search result does not contain a query categorization result. + QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + + // Vertex AI Search call fails. + QUERY_CATEGORIZATION_FAILED = 3; + } + + // Configured behaviors for Knowedge Assist. + message KnowledgeAssistBehavior { + // Whether data store agent rewriter was turned off for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // Whether customers configured to return query only in the + // conversation profile. + bool return_query_only = 4; + + // Whether customers configured to use pubsub to deliver. + bool use_pubsub_delivery = 5; + + // Whether customers configured to disable the synchronous delivery of + // Knowedge Assist response. + bool disable_sync_delivery = 6; + + // Whether previously suggested queries are included in the query generation + // process. + bool previous_queries_included = 7; + + // Translated message is included in query generation process. + bool use_translated_message = 8; + + // Safety filter is adjusted by user. + bool use_custom_safety_filter_level = 9; + + // Conversation transcript has mixed languages. + bool conversation_transcript_has_mixed_languages = 10; + + // Whether the agent language from the translation generator mismatches the + // end-user language. + bool query_generation_agent_language_mismatch = 11; + + // Whether the end-user language from the translation generator mismatches + // the end-user language. + bool query_generation_end_user_language_mismatch = 12; + + // This field indicates whether third party connectors are enabled for the + // project + bool third_party_connector_allowed = 13; + + // Indicates that the query generation model generated multiple queries. + bool multiple_queries_generated = 14; + + // Indicates that the generated query contains search context. + bool query_contained_search_context = 15; + + // Indicates that invalid items were skipped when parsing the LLM response. + bool invalid_items_query_suggestion_skipped = 16; + + // True if the primary suggested query was redacted and replaced by an + // additional query. + bool primary_query_redacted_and_replaced = 17; + + // The number of search contexts appended to the query. + int32 appended_search_context_count = 18; + } + + // Reason for query generation. + QueryGenerationFailureReason query_generation_failure_reason = 1; + + // Reason for query categorization. + QueryCategorizationFailureReason query_categorization_failure_reason = 2; + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 3; + + // Configured behaviors for Knowedge Assist. + KnowledgeAssistBehavior knowledge_assist_behavior = 4; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + + // The latency of the service. + ServiceLatency service_latency = 6; +} + // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. @@ -1404,4 +1620,41 @@ message KnowledgeAssistAnswer { // Format: `projects//locations//answer // Records/`. string answer_record = 3; + + // Debug information related to Knowledge Assist feature. + KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; +} + +// Response reason from datastore which indicates data serving status or +// answer quality degradation. +enum DatastoreResponseReason { + // Default value. + DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + + // No specific response reason from datastore. + NONE = 1; + + // Search is blocked due to out of quota. + SEARCH_OUT_OF_QUOTA = 2; + + // Search returns empty results. + SEARCH_EMPTY_RESULTS = 3; + + // Generative AI is disabled. + ANSWER_GENERATION_GEN_AI_DISABLED = 4; + + // Answer generation is blocked due to out of quota. + ANSWER_GENERATION_OUT_OF_QUOTA = 5; + + // Answer generation encounters an error. + ANSWER_GENERATION_ERROR = 6; + + // Answer generation does not have enough information to generate answer. + ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + + // Answer generation is blocked by RAI (Responsible AI) failure. + ANSWER_GENERATION_RAI_FAILED = 8; + + // Answer generation is not grounded on reliable sources. + ANSWER_GENERATION_NOT_GROUNDED = 9; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index 8580c792b5d4..a4b6c2cd7b37 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto index 4fe1a1cee2a7..ee935f1da3e2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto index b5982f22e8b7..1c2ebbe4f5fb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/sip_trunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto index 76c44b3d28e4..f1bb49543a45 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto index 3b838539fe2f..827c619d2a26 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/tool_call.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,6 +53,30 @@ message ToolCall { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. A human readable short name of the tool, to be shown on the UI. @@ -98,6 +122,30 @@ message ToolCallResult { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. The name of the tool's action associated with this call. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto new file mode 100644 index 000000000000..840f53dce151 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/toolset.proto @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Toolset" + pattern: "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}" +}; + +// A tool that is created from a toolset. +message ToolsetTool { + // Required. The name of the toolset to retrieve the schema for. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The operationId field of the OpenAPI endpoint. The operationId + // must be present in the toolset's definition. + string operation_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto index debaae21d6cc..c3cec8bb41f4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto index 6624cb363fad..3c6246443c6b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto index 9ca45adc6b18..671b57ec2b41 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java new file mode 100644 index 000000000000..33651db0df69 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class CesAppProto extends com.google.protobuf.GeneratedFile { + private CesAppProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2beta1/ces_ap" + + "p.proto\022\037google.cloud.dialogflow.v2beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032*google/cloud/dialo" + + "gflow/v2beta1/tool.proto\"\243\001\n\nCesAppSpec\022" + + "/\n\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n\026ces.googleapis" + + ".com/App\022d\n\030confirmation_requirement\030\002 \001" + + "(\0162=.google.cloud.dialogflow.v2beta1.Too" + + "l.ConfirmationRequirementB\003\340A\001B\357\001\n#com.g" + + "oogle.cloud.dialogflow.v2beta1B\013CesAppPr" + + "otoP\001ZCcloud.google.com/go/dialogflow/ap" + + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252" + + "\002\037Google.Cloud.Dialogflow.V2Beta1\352AL\n\026ce" + + "s.googleapis.com/App\0222projects/{project}" + + "/locations/{location}/apps/{app}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor, + new java.lang.String[] { + "CesApp", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java new file mode 100644 index 000000000000..c52ee5f60455 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java @@ -0,0 +1,800 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Spec of CES app that the generator can choose from.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesAppSpec} + */ +@com.google.protobuf.Generated +public final class CesAppSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CesAppSpec) + CesAppSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppSpec"); + } + + // Use CesAppSpec.newBuilder() to construct. + private CesAppSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesAppSpec() { + cesApp_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.class, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); + } + + public static final int CES_APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesApp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesApp_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.CesAppSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CesAppSpec other = + (com.google.cloud.dialogflow.v2beta1.CesAppSpec) obj; + + if (!getCesApp().equals(other.getCesApp())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.CesAppSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Spec of CES app that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesAppSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CesAppSpec) + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.class, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CesAppSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesApp_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.CesAppProto + .internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec build() { + com.google.cloud.dialogflow.v2beta1.CesAppSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec buildPartial() { + com.google.cloud.dialogflow.v2beta1.CesAppSpec result = + new com.google.cloud.dialogflow.v2beta1.CesAppSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesAppSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesApp_ = cesApp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CesAppSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CesAppSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesAppSpec other) { + if (other == com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()) return this; + if (!other.getCesApp().isEmpty()) { + cesApp_ = other.cesApp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cesApp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cesApp_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = cesApp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesApp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = cesApp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesApp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + cesApp_ = getDefaultInstance().getCesApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesApp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) + private static final com.google.cloud.dialogflow.v2beta1.CesAppSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CesAppSpec(); + } + + public static com.google.cloud.dialogflow.v2beta1.CesAppSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesAppSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java new file mode 100644 index 000000000000..ad0919cce9c8 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface CesAppSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CesAppSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the app requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java new file mode 100644 index 000000000000..5c51310a273e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolProto.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class CesToolProto extends com.google.protobuf.GeneratedFile { + private CesToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/dialogflow/v2beta1/ces_to" + + "ol.proto\022\037google.cloud.dialogflow.v2beta" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032*google/cloud/dial" + + "ogflow/v2beta1/tool.proto\"\246\001\n\013CesToolSpe" + + "c\0221\n\010ces_tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.googlea" + + "pis.com/Tool\022d\n\030confirmation_requirement" + + "\030\002 \001(\0162=.google.cloud.dialogflow.v2beta1" + + ".Tool.ConfirmationRequirementB\003\340A\001B\241\001\n#c" + + "om.google.cloud.dialogflow.v2beta1B\014CesT" + + "oolProtoP\001ZCcloud.google.com/go/dialogfl" + + "ow/apiv2beta1/dialogflowpb;dialogflowpb\242" + + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor, + new java.lang.String[] { + "CesTool", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java new file mode 100644 index 000000000000..45d75e88d36a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpec.java @@ -0,0 +1,801 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Spec of CES tool that the generator can choose from.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesToolSpec} + */ +@com.google.protobuf.Generated +public final class CesToolSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.CesToolSpec) + CesToolSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesToolSpec"); + } + + // Use CesToolSpec.newBuilder() to construct. + private CesToolSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesToolSpec() { + cesTool_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.class, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder.class); + } + + public static final int CES_TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 2; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cesTool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cesTool_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.CesToolSpec)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.CesToolSpec other = + (com.google.cloud.dialogflow.v2beta1.CesToolSpec) obj; + + if (!getCesTool().equals(other.getCesTool())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.CesToolSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Spec of CES tool that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.CesToolSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.CesToolSpec) + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.class, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.CesToolSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cesTool_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.CesToolProto + .internal_static_google_cloud_dialogflow_v2beta1_CesToolSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec build() { + com.google.cloud.dialogflow.v2beta1.CesToolSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec buildPartial() { + com.google.cloud.dialogflow.v2beta1.CesToolSpec result = + new com.google.cloud.dialogflow.v2beta1.CesToolSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesToolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cesTool_ = cesTool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.CesToolSpec) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.CesToolSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesToolSpec other) { + if (other == com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()) + return this; + if (!other.getCesTool().isEmpty()) { + cesTool_ = other.cesTool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cesTool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cesTool_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = cesTool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cesTool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = cesTool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cesTool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + cesTool_ = getDefaultInstance().getCesTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +     * ID>/tools/<tool ID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cesTool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000002); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesToolSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.CesToolSpec) + private static final com.google.cloud.dialogflow.v2beta1.CesToolSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.CesToolSpec(); + } + + public static com.google.cloud.dialogflow.v2beta1.CesToolSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesToolSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java new file mode 100644 index 000000000000..0042dc5f5943 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesToolSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/ces_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface CesToolSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.CesToolSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
                                                                                                                                          +   * ID>/tools/<tool ID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java index 3a74171c8561..428642edf021 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java @@ -73,6 +73,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -8096,6 +8098,893 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface GeneratorContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + int getGeneratorTypeValue(); + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType(); + } + + /** + * + * + *
                                                                                                                                          +   * Represents the context of a generator.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext} + */ + public static final class GeneratorContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + GeneratorContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorContext"); + } + + // Use GeneratorContext.newBuilder() to construct. + private GeneratorContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeneratorContext() { + generatorType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +     * The available generator types.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType} + */ + public enum GeneratorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +       * Unspecified generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + GENERATOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +       * Free form generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * FREE_FORM = 1; + */ + FREE_FORM(1), + /** + * + * + *
                                                                                                                                          +       * Agent coaching generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_COACHING = 2; + */ + AGENT_COACHING(2), + /** + * + * + *
                                                                                                                                          +       * Summarization generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * SUMMARIZATION = 3; + */ + SUMMARIZATION(3), + /** + * + * + *
                                                                                                                                          +       * Translation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * TRANSLATION = 4; + */ + TRANSLATION(4), + /** + * + * + *
                                                                                                                                          +       * Agent feedback generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_FEEDBACK = 5; + */ + AGENT_FEEDBACK(5), + /** + * + * + *
                                                                                                                                          +       * Customer message generation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + CUSTOMER_MESSAGE_GENERATION(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeneratorType"); + } + + /** + * + * + *
                                                                                                                                          +       * Unspecified generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * GENERATOR_TYPE_UNSPECIFIED = 0; + */ + public static final int GENERATOR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +       * Free form generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * FREE_FORM = 1; + */ + public static final int FREE_FORM_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +       * Agent coaching generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_COACHING = 2; + */ + public static final int AGENT_COACHING_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +       * Summarization generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * SUMMARIZATION = 3; + */ + public static final int SUMMARIZATION_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +       * Translation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * TRANSLATION = 4; + */ + public static final int TRANSLATION_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +       * Agent feedback generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * AGENT_FEEDBACK = 5; + */ + public static final int AGENT_FEEDBACK_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +       * Customer message generation generator type.
                                                                                                                                          +       * 
                                                                                                                                          + * + * CUSTOMER_MESSAGE_GENERATION = 6; + */ + public static final int CUSTOMER_MESSAGE_GENERATION_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GeneratorType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GeneratorType forNumber(int value) { + switch (value) { + case 0: + return GENERATOR_TYPE_UNSPECIFIED; + case 1: + return FREE_FORM; + case 2: + return AGENT_COACHING; + case 3: + return SUMMARIZATION; + case 4: + return TRANSLATION; + case 5: + return AGENT_FEEDBACK; + case 6: + return CUSTOMER_MESSAGE_GENERATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GeneratorType findValueByNumber(int number) { + return GeneratorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GeneratorType[] VALUES = values(); + + public static GeneratorType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GeneratorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType) + } + + public static final int GENERATOR_TYPE_FIELD_NUMBER = 1; + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The type of the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType.forNumber( + generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (generatorType_ + != com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, generatorType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generatorType_ + != com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .GENERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, generatorType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext other = + (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) obj; + + if (generatorType_ != other.generatorType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GENERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generatorType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Represents the context of a generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.class, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatorType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext build() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext buildPartial() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result = + new com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatorType_ = generatorType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext other) { + if (other + == com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance()) return this; + if (other.generatorType_ != 0) { + setGeneratorTypeValue(other.getGeneratorTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + generatorType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int generatorType_ = 0; + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for generatorType. + */ + @java.lang.Override + public int getGeneratorTypeValue() { + return generatorType_; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorTypeValue(int value) { + generatorType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The generatorType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + getGeneratorType() { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType result = + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .forNumber(generatorType_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The generatorType to set. + * @return This builder for chaining. + */ + public Builder setGeneratorType( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + generatorType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Output only. The type of the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.GeneratorType generator_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGeneratorType() { + bitField0_ = (bitField0_ & ~0x00000001); + generatorType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) + private static final com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext(); + } + + public static com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -8569,6 +9458,72 @@ public boolean hasTelephonyConnectionInfo() { : telephonyConnectionInfo_; } + public static final int INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER = 15; + private com.google.cloud.dialogflow.v2beta1.ConversationProfile initialConversationProfile_; + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + @java.lang.Override + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } + public static final int INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER = 17; private static final class IngestedContextReferencesDefaultEntryHolder { @@ -8619,63 +9574,202 @@ public int getIngestedContextReferencesCount() { * */ @java.lang.Override - public boolean containsIngestedContextReferences(java.lang.String key) { + public boolean containsIngestedContextReferences(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetIngestedContextReferences().getMap().containsKey(key); + } + + /** Use {@link #getIngestedContextReferencesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + getIngestedContextReferences() { + return getIngestedContextReferencesMap(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + getIngestedContextReferencesMap() { + return internalGetIngestedContextReferences().getMap(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference + getIngestedContextReferencesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + map = internalGetIngestedContextReferences().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference + getIngestedContextReferencesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> + map = internalGetIngestedContextReferences().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER = 18; + + private static final class InitialGeneratorContextsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().getMap().size(); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetIngestedContextReferences().getMap().containsKey(key); + return internalGetInitialGeneratorContexts().getMap().containsKey(key); } - /** Use {@link #getIngestedContextReferencesMap()} instead. */ + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - getIngestedContextReferences() { - return getIngestedContextReferencesMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); } /** * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - getIngestedContextReferencesMap() { - return internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getMap(); } /** * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference - getIngestedContextReferencesOrDefault( + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference defaultValue) { + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - map = internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + map = internalGetInitialGeneratorContexts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -8683,22 +9777,23 @@ public boolean containsIngestedContextReferences(java.lang.String key) { * * *
                                                                                                                                          -   * Output only. The context reference updates provided by external systems.
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                              * 
                                                                                                                                          * * - * map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference - getIngestedContextReferencesOrThrow(java.lang.String key) { + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< - java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> - map = internalGetIngestedContextReferences().getMap(); + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + map = internalGetInitialGeneratorContexts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8749,11 +9844,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getInitialConversationProfile()); + } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetIngestedContextReferences(), IngestedContextReferencesDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetInitialGeneratorContexts(), + InitialGeneratorContextsDefaultEntryHolder.defaultEntry, + 18); getUnknownFields().writeTo(output); } @@ -8795,6 +9898,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getTelephonyConnectionInfo()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getInitialConversationProfile()); + } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> entry : internalGetIngestedContextReferences().getMap().entrySet()) { @@ -8809,6 +9917,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, ingestedContextReferences__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + entry : internalGetInitialGeneratorContexts().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts__ = + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, initialGeneratorContexts__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8845,8 +9967,15 @@ public boolean equals(final java.lang.Object obj) { if (hasTelephonyConnectionInfo()) { if (!getTelephonyConnectionInfo().equals(other.getTelephonyConnectionInfo())) return false; } + if (hasInitialConversationProfile() != other.hasInitialConversationProfile()) return false; + if (hasInitialConversationProfile()) { + if (!getInitialConversationProfile().equals(other.getInitialConversationProfile())) + return false; + } if (!internalGetIngestedContextReferences() .equals(other.internalGetIngestedContextReferences())) return false; + if (!internalGetInitialGeneratorContexts().equals(other.internalGetInitialGeneratorContexts())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8882,10 +10011,18 @@ public int hashCode() { hash = (37 * hash) + TELEPHONY_CONNECTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getTelephonyConnectionInfo().hashCode(); } + if (hasInitialConversationProfile()) { + hash = (37 * hash) + INITIAL_CONVERSATION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getInitialConversationProfile().hashCode(); + } if (!internalGetIngestedContextReferences().getMap().isEmpty()) { hash = (37 * hash) + INGESTED_CONTEXT_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + internalGetIngestedContextReferences().hashCode(); } + if (!internalGetInitialGeneratorContexts().getMap().isEmpty()) { + hash = (37 * hash) + INITIAL_GENERATOR_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInitialGeneratorContexts().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9014,6 +10151,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 17: return internalGetIngestedContextReferences(); + case 18: + return internalGetInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -9025,6 +10164,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 17: return internalGetMutableIngestedContextReferences(); + case 18: + return internalGetMutableInitialGeneratorContexts(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -9056,6 +10197,7 @@ private void maybeForceBuilderInitialization() { internalGetStartTimeFieldBuilder(); internalGetEndTimeFieldBuilder(); internalGetTelephonyConnectionInfoFieldBuilder(); + internalGetInitialConversationProfileFieldBuilder(); } } @@ -9087,7 +10229,13 @@ public Builder clear() { telephonyConnectionInfoBuilder_.dispose(); telephonyConnectionInfoBuilder_ = null; } + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; + } internalGetMutableIngestedContextReferences().clear(); + internalGetMutableInitialGeneratorContexts().clear(); return this; } @@ -9158,10 +10306,22 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Conversation resu to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.initialConversationProfile_ = + initialConversationProfileBuilder_ == null + ? initialConversationProfile_ + : initialConversationProfileBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.ingestedContextReferences_ = internalGetIngestedContextReferences() .build(IngestedContextReferencesDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.initialGeneratorContexts_ = + internalGetInitialGeneratorContexts() + .build(InitialGeneratorContextsDefaultEntryHolder.defaultEntry); + } result.bitField0_ |= to_bitField0_; } @@ -9206,9 +10366,15 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Conversation other) if (other.hasTelephonyConnectionInfo()) { mergeTelephonyConnectionInfo(other.getTelephonyConnectionInfo()); } + if (other.hasInitialConversationProfile()) { + mergeInitialConversationProfile(other.getInitialConversationProfile()); + } internalGetMutableIngestedContextReferences() .mergeFrom(other.internalGetIngestedContextReferences()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; + internalGetMutableInitialGeneratorContexts() + .mergeFrom(other.internalGetInitialGeneratorContexts()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9287,6 +10453,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 122: + { + input.readMessage( + internalGetInitialConversationProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 case 138: { com.google.protobuf.MapEntry< @@ -9302,9 +10476,26 @@ public Builder mergeFrom( .put( ingestedContextReferences__.getKey(), ingestedContextReferences__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 138 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + initialGeneratorContexts__ = + input.readMessage( + InitialGeneratorContextsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableInitialGeneratorContexts() + .ensureBuilderMap() + .put( + initialGeneratorContexts__.getKey(), initialGeneratorContexts__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10591,22 +11782,250 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder + builderForValue) { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfo_ = builderForValue.build(); + } else { + telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTelephonyConnectionInfo( + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo value) { + if (telephonyConnectionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && telephonyConnectionInfo_ != null + && telephonyConnectionInfo_ + != com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo + .getDefaultInstance()) { + getTelephonyConnectionInfoBuilder().mergeFrom(value); + } else { + telephonyConnectionInfo_ = value; + } + } else { + telephonyConnectionInfoBuilder_.mergeFrom(value); + } + if (telephonyConnectionInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTelephonyConnectionInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + telephonyConnectionInfo_ = null; + if (telephonyConnectionInfoBuilder_ != null) { + telephonyConnectionInfoBuilder_.dispose(); + telephonyConnectionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder + getTelephonyConnectionInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder + getTelephonyConnectionInfoOrBuilder() { + if (telephonyConnectionInfoBuilder_ != null) { + return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + } else { + return telephonyConnectionInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo + .getDefaultInstance() + : telephonyConnectionInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The telephony connection information.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder> + internalGetTelephonyConnectionInfoFieldBuilder() { + if (telephonyConnectionInfoBuilder_ == null) { + telephonyConnectionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, + com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder>( + getTelephonyConnectionInfo(), getParentForChildren(), isClean()); + telephonyConnectionInfo_ = null; + } + return telephonyConnectionInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ConversationProfile initialConversationProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder> + initialConversationProfileBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + public boolean hasInitialConversationProfile() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + public com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile() { + if (initialConversationProfileBuilder_ == null) { + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; + } else { + return initialConversationProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialConversationProfile_ = value; + } else { + initialConversationProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder - builderForValue) { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfo_ = builderForValue.build(); + public Builder setInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder builderForValue) { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfile_ = builderForValue.build(); } else { - telephonyConnectionInfoBuilder_.setMessage(builderForValue.build()); + initialConversationProfileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10615,30 +12034,31 @@ public Builder setTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeTelephonyConnectionInfo( - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo value) { - if (telephonyConnectionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && telephonyConnectionInfo_ != null - && telephonyConnectionInfo_ - != com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo - .getDefaultInstance()) { - getTelephonyConnectionInfoBuilder().mergeFrom(value); + public Builder mergeInitialConversationProfile( + com.google.cloud.dialogflow.v2beta1.ConversationProfile value) { + if (initialConversationProfileBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && initialConversationProfile_ != null + && initialConversationProfile_ + != com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance()) { + getInitialConversationProfileBuilder().mergeFrom(value); } else { - telephonyConnectionInfo_ = value; + initialConversationProfile_ = value; } } else { - telephonyConnectionInfoBuilder_.mergeFrom(value); + initialConversationProfileBuilder_.mergeFrom(value); } - if (telephonyConnectionInfo_ != null) { - bitField0_ |= 0x00000080; + if (initialConversationProfile_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -10648,19 +12068,21 @@ public Builder mergeTelephonyConnectionInfo( * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearTelephonyConnectionInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - telephonyConnectionInfo_ = null; - if (telephonyConnectionInfoBuilder_ != null) { - telephonyConnectionInfoBuilder_.dispose(); - telephonyConnectionInfoBuilder_ = null; + public Builder clearInitialConversationProfile() { + bitField0_ = (bitField0_ & ~0x00000100); + initialConversationProfile_ = null; + if (initialConversationProfileBuilder_ != null) { + initialConversationProfileBuilder_.dispose(); + initialConversationProfileBuilder_ = null; } onChanged(); return this; @@ -10670,40 +12092,43 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder - getTelephonyConnectionInfoBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder + getInitialConversationProfileBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetTelephonyConnectionInfoFieldBuilder().getBuilder(); + return internalGetInitialConversationProfileFieldBuilder().getBuilder(); } /** * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder - getTelephonyConnectionInfoOrBuilder() { - if (telephonyConnectionInfoBuilder_ != null) { - return telephonyConnectionInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder() { + if (initialConversationProfileBuilder_ != null) { + return initialConversationProfileBuilder_.getMessageOrBuilder(); } else { - return telephonyConnectionInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo - .getDefaultInstance() - : telephonyConnectionInfo_; + return initialConversationProfile_ == null + ? com.google.cloud.dialogflow.v2beta1.ConversationProfile.getDefaultInstance() + : initialConversationProfile_; } } @@ -10711,28 +12136,30 @@ public Builder clearTelephonyConnectionInfo() { * * *
                                                                                                                                          -     * Output only. The telephony connection information.
                                                                                                                                          +     * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +     * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +     * config read at conversation creation time.
                                                                                                                                                * 
                                                                                                                                          * * - * .google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder> - internalGetTelephonyConnectionInfoFieldBuilder() { - if (telephonyConnectionInfoBuilder_ == null) { - telephonyConnectionInfoBuilder_ = + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder> + internalGetInitialConversationProfileFieldBuilder() { + if (initialConversationProfileBuilder_ == null) { + initialConversationProfileBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo.Builder, - com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder>( - getTelephonyConnectionInfo(), getParentForChildren(), isClean()); - telephonyConnectionInfo_ = null; + com.google.cloud.dialogflow.v2beta1.ConversationProfile, + com.google.cloud.dialogflow.v2beta1.ConversationProfile.Builder, + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder>( + getInitialConversationProfile(), getParentForChildren(), isClean()); + initialConversationProfile_ = null; } - return telephonyConnectionInfoBuilder_; + return initialConversationProfileBuilder_; } private static final class IngestedContextReferencesConverter @@ -10791,7 +12218,7 @@ public com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference build( ingestedContextReferences_ = new com.google.protobuf.MapFieldBuilder<>(ingestedContextReferencesConverter); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return ingestedContextReferences_; } @@ -10903,7 +12330,7 @@ public boolean containsIngestedContextReferences(java.lang.String key) { } public Builder clearIngestedContextReferences() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableIngestedContextReferences().clear(); return this; } @@ -10932,7 +12359,7 @@ public Builder removeIngestedContextReferences(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference> getMutableIngestedContextReferences() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableIngestedContextReferences().ensureMessageMap(); } @@ -10957,7 +12384,7 @@ public Builder putIngestedContextReferences( throw new NullPointerException("map value"); } internalGetMutableIngestedContextReferences().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10984,7 +12411,7 @@ public Builder putAllIngestedContextReferences( } } internalGetMutableIngestedContextReferences().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -11019,6 +12446,298 @@ public Builder putAllIngestedContextReferences( return (com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference.Builder) entry; } + private static final class InitialGeneratorContextsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> { + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext build( + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder val) { + if (val instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + return (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) val; + } + return ((com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + defaultEntry() { + return InitialGeneratorContextsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final InitialGeneratorContextsConverter initialGeneratorContextsConverter = + new InitialGeneratorContextsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + initialGeneratorContexts_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + internalGetInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + return initialGeneratorContexts_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder> + internalGetMutableInitialGeneratorContexts() { + if (initialGeneratorContexts_ == null) { + initialGeneratorContexts_ = + new com.google.protobuf.MapFieldBuilder<>(initialGeneratorContextsConverter); + } + bitField0_ |= 0x00000400; + onChanged(); + return initialGeneratorContexts_; + } + + public int getInitialGeneratorContextsCount() { + return internalGetInitialGeneratorContexts().ensureBuilderMap().size(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInitialGeneratorContexts().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContexts() { + return getInitialGeneratorContextsMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getInitialGeneratorContextsMap() { + return internalGetInitialGeneratorContexts().getImmutableMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + return map.containsKey(key) + ? initialGeneratorContextsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + map = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return initialGeneratorContextsConverter.build(map.get(key)); + } + + public Builder clearInitialGeneratorContexts() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableInitialGeneratorContexts().clear(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInitialGeneratorContexts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + getMutableInitialGeneratorContexts() { + bitField0_ |= 0x00000400; + return internalGetMutableInitialGeneratorContexts().ensureMessageMap(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInitialGeneratorContexts( + java.lang.String key, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInitialGeneratorContexts( + java.util.Map< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableInitialGeneratorContexts().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. A map with generator name as key and generator context as
                                                                                                                                          +     * value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder + putInitialGeneratorContextsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder> + builderMap = internalGetMutableInitialGeneratorContexts().ensureBuilderMap(); + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContextOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) { + entry = + ((com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext.Builder) entry; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Conversation) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java index 767317709374..b9720518e6d9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java @@ -357,6 +357,56 @@ public interface ConversationOrBuilder com.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder(); + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the initialConversationProfile field is set. + */ + boolean hasInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The initialConversationProfile. + */ + com.google.cloud.dialogflow.v2beta1.ConversationProfile getInitialConversationProfile(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Output only. The initial conversation profile to be used to
                                                                                                                                          +   * configure this conversation, which is a copy of the conversation profile
                                                                                                                                          +   * config read at conversation creation time.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.ConversationProfileOrBuilder + getInitialConversationProfileOrBuilder(); + /** * * @@ -433,4 +483,86 @@ public interface ConversationOrBuilder */ com.google.cloud.dialogflow.v2beta1.Conversation.ContextReference getIngestedContextReferencesOrThrow(java.lang.String key); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInitialGeneratorContextsCount(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsInitialGeneratorContexts(java.lang.String key); + + /** Use {@link #getInitialGeneratorContextsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInitialGeneratorContexts(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getInitialGeneratorContextsMap(); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext defaultValue); + + /** + * + * + *
                                                                                                                                          +   * Output only. A map with generator name as key and generator context as
                                                                                                                                          +   * value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext + getInitialGeneratorContextsOrThrow(java.lang.String key); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java index 6803695a061e..ec8a35a14efd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java @@ -289,6 +289,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int USE_BIDI_STREAMING_FIELD_NUMBER = 23; + private boolean useBidiStreaming_ = false; + + /** + * + * + *
                                                                                                                                          +   * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                          +   * for the conversation profile.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + @java.lang.Override + public boolean getUseBidiStreaming() { + return useBidiStreaming_; + } + public static final int AUTOMATED_AGENT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig automatedAgentConfig_; @@ -1083,6 +1103,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(21, getNewRecognitionResultNotificationConfig()); } + if (useBidiStreaming_ != false) { + output.writeBool(23, useBidiStreaming_); + } getUnknownFields().writeTo(output); } @@ -1148,6 +1171,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getNewRecognitionResultNotificationConfig()); } + if (useBidiStreaming_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, useBidiStreaming_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1174,6 +1200,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (getUseBidiStreaming() != other.getUseBidiStreaming()) return false; if (hasAutomatedAgentConfig() != other.hasAutomatedAgentConfig()) return false; if (hasAutomatedAgentConfig()) { if (!getAutomatedAgentConfig().equals(other.getAutomatedAgentConfig())) return false; @@ -1241,6 +1268,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + USE_BIDI_STREAMING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseBidiStreaming()); if (hasAutomatedAgentConfig()) { hash = (37 * hash) + AUTOMATED_AGENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutomatedAgentConfig().hashCode(); @@ -1455,6 +1484,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + useBidiStreaming_ = false; automatedAgentConfig_ = null; if (automatedAgentConfigBuilder_ != null) { automatedAgentConfigBuilder_.dispose(); @@ -1555,66 +1585,69 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ConversationProfi to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.useBidiStreaming_ = useBidiStreaming_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.automatedAgentConfig_ = automatedAgentConfigBuilder_ == null ? automatedAgentConfig_ : automatedAgentConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.humanAgentAssistantConfig_ = humanAgentAssistantConfigBuilder_ == null ? humanAgentAssistantConfig_ : humanAgentAssistantConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.humanAgentHandoffConfig_ = humanAgentHandoffConfigBuilder_ == null ? humanAgentHandoffConfig_ : humanAgentHandoffConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.notificationConfig_ = notificationConfigBuilder_ == null ? notificationConfig_ : notificationConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.loggingConfig_ = loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.newMessageEventNotificationConfig_ = newMessageEventNotificationConfigBuilder_ == null ? newMessageEventNotificationConfig_ : newMessageEventNotificationConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.newRecognitionResultNotificationConfig_ = newRecognitionResultNotificationConfigBuilder_ == null ? newRecognitionResultNotificationConfig_ : newRecognitionResultNotificationConfigBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.sttConfig_ = sttConfigBuilder_ == null ? sttConfig_ : sttConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.timeZone_ = timeZone_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.securitySettings_ = securitySettings_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } @@ -1650,6 +1683,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.getUseBidiStreaming() != false) { + setUseBidiStreaming(other.getUseBidiStreaming()); + } if (other.hasAutomatedAgentConfig()) { mergeAutomatedAgentConfig(other.getAutomatedAgentConfig()); } @@ -1677,17 +1713,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTtsConfig()) { @@ -1735,7 +1771,7 @@ public Builder mergeFrom( { input.readMessage( internalGetAutomatedAgentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1743,7 +1779,7 @@ public Builder mergeFrom( input.readMessage( internalGetHumanAgentAssistantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: @@ -1751,21 +1787,21 @@ public Builder mergeFrom( input.readMessage( internalGetHumanAgentHandoffConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage( internalGetNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( internalGetLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: @@ -1773,20 +1809,20 @@ public Builder mergeFrom( input.readMessage( internalGetNewMessageEventNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: { input.readMessage( internalGetSttConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 74 case 82: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 82 case 90: @@ -1806,20 +1842,20 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 146 case 170: @@ -1827,9 +1863,15 @@ public Builder mergeFrom( input.readMessage( internalGetNewRecognitionResultNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 170 + case 184: + { + useBidiStreaming_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 184 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2505,6 +2547,65 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private boolean useBidiStreaming_; + + /** + * + * + *
                                                                                                                                          +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                          +     * for the conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + @java.lang.Override + public boolean getUseBidiStreaming() { + return useBidiStreaming_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                          +     * for the conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useBidiStreaming to set. + * @return This builder for chaining. + */ + public Builder setUseBidiStreaming(boolean value) { + + useBidiStreaming_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                          +     * for the conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseBidiStreaming() { + bitField0_ = (bitField0_ & ~0x00000010); + useBidiStreaming_ = false; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig automatedAgentConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig, @@ -2525,7 +2626,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the automatedAgentConfig field is set. */ public boolean hasAutomatedAgentConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2570,7 +2671,7 @@ public Builder setAutomatedAgentConfig( } else { automatedAgentConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2592,7 +2693,7 @@ public Builder setAutomatedAgentConfig( } else { automatedAgentConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2610,7 +2711,7 @@ public Builder setAutomatedAgentConfig( public Builder mergeAutomatedAgentConfig( com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig value) { if (automatedAgentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && automatedAgentConfig_ != null && automatedAgentConfig_ != com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig.getDefaultInstance()) { @@ -2622,7 +2723,7 @@ public Builder mergeAutomatedAgentConfig( automatedAgentConfigBuilder_.mergeFrom(value); } if (automatedAgentConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2639,7 +2740,7 @@ public Builder mergeAutomatedAgentConfig( * */ public Builder clearAutomatedAgentConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); automatedAgentConfig_ = null; if (automatedAgentConfigBuilder_ != null) { automatedAgentConfigBuilder_.dispose(); @@ -2661,7 +2762,7 @@ public Builder clearAutomatedAgentConfig() { */ public com.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig.Builder getAutomatedAgentConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetAutomatedAgentConfigFieldBuilder().getBuilder(); } @@ -2736,7 +2837,7 @@ public Builder clearAutomatedAgentConfig() { * @return Whether the humanAgentAssistantConfig field is set. */ public boolean hasHumanAgentAssistantConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2784,7 +2885,7 @@ public Builder setHumanAgentAssistantConfig( } else { humanAgentAssistantConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2807,7 +2908,7 @@ public Builder setHumanAgentAssistantConfig( } else { humanAgentAssistantConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2826,7 +2927,7 @@ public Builder setHumanAgentAssistantConfig( public Builder mergeHumanAgentAssistantConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig value) { if (humanAgentAssistantConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && humanAgentAssistantConfig_ != null && humanAgentAssistantConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -2839,7 +2940,7 @@ public Builder mergeHumanAgentAssistantConfig( humanAgentAssistantConfigBuilder_.mergeFrom(value); } if (humanAgentAssistantConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2857,7 +2958,7 @@ public Builder mergeHumanAgentAssistantConfig( * */ public Builder clearHumanAgentAssistantConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); humanAgentAssistantConfig_ = null; if (humanAgentAssistantConfigBuilder_ != null) { humanAgentAssistantConfigBuilder_.dispose(); @@ -2880,7 +2981,7 @@ public Builder clearHumanAgentAssistantConfig() { */ public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.Builder getHumanAgentAssistantConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetHumanAgentAssistantConfigFieldBuilder().getBuilder(); } @@ -2959,7 +3060,7 @@ public Builder clearHumanAgentAssistantConfig() { * @return Whether the humanAgentHandoffConfig field is set. */ public boolean hasHumanAgentHandoffConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3013,7 +3114,7 @@ public Builder setHumanAgentHandoffConfig( } else { humanAgentHandoffConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3039,7 +3140,7 @@ public Builder setHumanAgentHandoffConfig( } else { humanAgentHandoffConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3061,7 +3162,7 @@ public Builder setHumanAgentHandoffConfig( public Builder mergeHumanAgentHandoffConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig value) { if (humanAgentHandoffConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && humanAgentHandoffConfig_ != null && humanAgentHandoffConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig @@ -3074,7 +3175,7 @@ public Builder mergeHumanAgentHandoffConfig( humanAgentHandoffConfigBuilder_.mergeFrom(value); } if (humanAgentHandoffConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3095,7 +3196,7 @@ public Builder mergeHumanAgentHandoffConfig( * */ public Builder clearHumanAgentHandoffConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); humanAgentHandoffConfig_ = null; if (humanAgentHandoffConfigBuilder_ != null) { humanAgentHandoffConfigBuilder_.dispose(); @@ -3121,7 +3222,7 @@ public Builder clearHumanAgentHandoffConfig() { */ public com.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.Builder getHumanAgentHandoffConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetHumanAgentHandoffConfigFieldBuilder().getBuilder(); } @@ -3201,7 +3302,7 @@ public Builder clearHumanAgentHandoffConfig() { * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3244,7 +3345,7 @@ public Builder setNotificationConfig( } else { notificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3265,7 +3366,7 @@ public Builder setNotificationConfig( } else { notificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3282,7 +3383,7 @@ public Builder setNotificationConfig( public Builder mergeNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && notificationConfig_ != null && notificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3294,7 +3395,7 @@ public Builder mergeNotificationConfig( notificationConfigBuilder_.mergeFrom(value); } if (notificationConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3310,7 +3411,7 @@ public Builder mergeNotificationConfig( * .google.cloud.dialogflow.v2beta1.NotificationConfig notification_config = 6; */ public Builder clearNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); notificationConfig_ = null; if (notificationConfigBuilder_ != null) { notificationConfigBuilder_.dispose(); @@ -3331,7 +3432,7 @@ public Builder clearNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetNotificationConfigFieldBuilder().getBuilder(); } @@ -3401,7 +3502,7 @@ public Builder clearNotificationConfig() { * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3443,7 +3544,7 @@ public Builder setLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingConfi } else { loggingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3464,7 +3565,7 @@ public Builder setLoggingConfig( } else { loggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3480,7 +3581,7 @@ public Builder setLoggingConfig( */ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingConfig value) { if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && loggingConfig_ != null && loggingConfig_ != com.google.cloud.dialogflow.v2beta1.LoggingConfig.getDefaultInstance()) { @@ -3492,7 +3593,7 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingCon loggingConfigBuilder_.mergeFrom(value); } if (loggingConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3508,7 +3609,7 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2beta1.LoggingCon * .google.cloud.dialogflow.v2beta1.LoggingConfig logging_config = 7; */ public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); loggingConfig_ = null; if (loggingConfigBuilder_ != null) { loggingConfigBuilder_.dispose(); @@ -3528,7 +3629,7 @@ public Builder clearLoggingConfig() { * .google.cloud.dialogflow.v2beta1.LoggingConfig logging_config = 7; */ public com.google.cloud.dialogflow.v2beta1.LoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetLoggingConfigFieldBuilder().getBuilder(); } @@ -3602,7 +3703,7 @@ public com.google.cloud.dialogflow.v2beta1.LoggingConfigOrBuilder getLoggingConf * @return Whether the newMessageEventNotificationConfig field is set. */ public boolean hasNewMessageEventNotificationConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3654,7 +3755,7 @@ public Builder setNewMessageEventNotificationConfig( } else { newMessageEventNotificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3679,7 +3780,7 @@ public Builder setNewMessageEventNotificationConfig( } else { newMessageEventNotificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3700,7 +3801,7 @@ public Builder setNewMessageEventNotificationConfig( public Builder mergeNewMessageEventNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (newMessageEventNotificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && newMessageEventNotificationConfig_ != null && newMessageEventNotificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3712,7 +3813,7 @@ public Builder mergeNewMessageEventNotificationConfig( newMessageEventNotificationConfigBuilder_.mergeFrom(value); } if (newMessageEventNotificationConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3732,7 +3833,7 @@ public Builder mergeNewMessageEventNotificationConfig( * */ public Builder clearNewMessageEventNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); newMessageEventNotificationConfig_ = null; if (newMessageEventNotificationConfigBuilder_ != null) { newMessageEventNotificationConfigBuilder_.dispose(); @@ -3757,7 +3858,7 @@ public Builder clearNewMessageEventNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNewMessageEventNotificationConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetNewMessageEventNotificationConfigFieldBuilder().getBuilder(); } @@ -3846,7 +3947,7 @@ public Builder clearNewMessageEventNotificationConfig() { * @return Whether the newRecognitionResultNotificationConfig field is set. */ public boolean hasNewRecognitionResultNotificationConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3910,7 +4011,7 @@ public Builder setNewRecognitionResultNotificationConfig( } else { newRecognitionResultNotificationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3941,7 +4042,7 @@ public Builder setNewRecognitionResultNotificationConfig( } else { newRecognitionResultNotificationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3968,7 +4069,7 @@ public Builder setNewRecognitionResultNotificationConfig( public Builder mergeNewRecognitionResultNotificationConfig( com.google.cloud.dialogflow.v2beta1.NotificationConfig value) { if (newRecognitionResultNotificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && newRecognitionResultNotificationConfig_ != null && newRecognitionResultNotificationConfig_ != com.google.cloud.dialogflow.v2beta1.NotificationConfig.getDefaultInstance()) { @@ -3980,7 +4081,7 @@ public Builder mergeNewRecognitionResultNotificationConfig( newRecognitionResultNotificationConfigBuilder_.mergeFrom(value); } if (newRecognitionResultNotificationConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4006,7 +4107,7 @@ public Builder mergeNewRecognitionResultNotificationConfig( * */ public Builder clearNewRecognitionResultNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); newRecognitionResultNotificationConfig_ = null; if (newRecognitionResultNotificationConfigBuilder_ != null) { newRecognitionResultNotificationConfigBuilder_.dispose(); @@ -4037,7 +4138,7 @@ public Builder clearNewRecognitionResultNotificationConfig() { */ public com.google.cloud.dialogflow.v2beta1.NotificationConfig.Builder getNewRecognitionResultNotificationConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetNewRecognitionResultNotificationConfigFieldBuilder().getBuilder(); } @@ -4127,7 +4228,7 @@ public Builder clearNewRecognitionResultNotificationConfig() { * @return Whether the sttConfig field is set. */ public boolean hasSttConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4169,7 +4270,7 @@ public Builder setSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextConf } else { sttConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4190,7 +4291,7 @@ public Builder setSttConfig( } else { sttConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4206,7 +4307,7 @@ public Builder setSttConfig( */ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig value) { if (sttConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && sttConfig_ != null && sttConfig_ != com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig.getDefaultInstance()) { @@ -4218,7 +4319,7 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextCo sttConfigBuilder_.mergeFrom(value); } if (sttConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4234,7 +4335,7 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2beta1.SpeechToTextCo * .google.cloud.dialogflow.v2beta1.SpeechToTextConfig stt_config = 9; */ public Builder clearSttConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); sttConfig_ = null; if (sttConfigBuilder_ != null) { sttConfigBuilder_.dispose(); @@ -4254,7 +4355,7 @@ public Builder clearSttConfig() { * .google.cloud.dialogflow.v2beta1.SpeechToTextConfig stt_config = 9; */ public com.google.cloud.dialogflow.v2beta1.SpeechToTextConfig.Builder getSttConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetSttConfigFieldBuilder().getBuilder(); } @@ -4381,7 +4482,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4403,7 +4504,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4430,7 +4531,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4506,7 +4607,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4526,7 +4627,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4551,7 +4652,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4627,7 +4728,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4647,7 +4748,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4672,7 +4773,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4699,7 +4800,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4747,7 +4848,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeech } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4771,7 +4872,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4791,7 +4892,7 @@ public Builder setTtsConfig( public Builder mergeTtsConfig( com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig @@ -4804,7 +4905,7 @@ public Builder mergeTtsConfig( ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4823,7 +4924,7 @@ public Builder mergeTtsConfig( * .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4847,7 +4948,7 @@ public Builder clearTtsConfig() { */ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java index d267ff5d788c..d0e9002565c1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java @@ -162,6 +162,20 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *
                                                                                                                                          +   * Optional. Whether to use the bidi streaming API in telephony integration
                                                                                                                                          +   * for the conversation profile.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool use_bidi_streaming = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useBidiStreaming. + */ + boolean getUseBidiStreaming(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index 1ccaf354a926..0d8d7cfc2a44 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -182,53 +182,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + "\032#google/longrunning/operations.proto\032\036g" + "oogle/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\206\n\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\247\n\n" + "\023ConversationProfile\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\026automated_agent_config\030\003" - + " \001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" - + "\034human_agent_assistant_config\030\004 \001(\0132:.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" - + "\032human_agent_handoff_config\030\005 \001(\0132" - + "8.google.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" - + "\023notification_config\030\006" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" - + "\016logging_config\030\007 " - + "\001(\0132..google.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + + "\013update_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" + + "\022use_bidi_streaming\030\027 \001(\010B\003\340A\001\022U\n" + + "\026automated_agent_config\030\003 " + + "\001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" + + "\034human_agent_assistant_config\030\004" + + " \001(\0132:.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" + + "\032human_agent_handoff_config\030\005 \001(\01328.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" + + "\023notification_config\030\006 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" + + "\016logging_config\030\007 \001(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" + "%new_message_event_notification_config\030\010" + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022l\n" - + "*new_recognition_result_notification_config\030\025 " - + "\001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" - + "stt_config\030\t \001(" - + "\01323.google.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + + "*new_recognition_result_notification_config\030\025 \001(\01323.g" + + "oogle.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" + + "stt_config\030\t \001(\01323.goo" + + "gle.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" + "language_code\030\n" + " \001(\t\022\021\n" + "\ttime_zone\030\016 \001(\t\022L\n" + "\021security_settings\030\r" + " \001(\tB1\372A.\n" + ",dialogflow.googleapis.com/CXSecuritySettings\022K\n\n" - + "tts_config\030\022 \001(\01327.goo" - + "gle.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{pro" - + "ject}/conversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/" - + "{location}/conversationProfiles/{conversation_profile}\"\203\001\n" + + "tts_config\030\022 \001(\01327.google.clo" + + "ud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" + + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{project}/c" + + "onversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/{locati" + + "on}/conversationProfiles/{conversation_profile}\"\203\001\n" + "\024AutomatedAgentConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\0223\n" + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\234\036\n" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\310\036\n" + "\031HumanAgentAssistantConfig\022P\n" - + "\023notification_config\030\002" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialo" - + "gflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" - + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v" - + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022q\n" - + "\027message_analysis_config\030\005 \001(\0132P.google.cloud.dialogflow.v2beta1.Hum" - + "anAgentAssistantConfig.MessageAnalysisConfig\032I\n" + + "\023notification_config\030\002 \001(\013" + + "23.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" + + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialogflow.v" + + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" + + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v2beta1." + + "HumanAgentAssistantConfig.SuggestionConfig\022q\n" + + "\027message_analysis_config\030\005 \001(\0132P.go" + + "ogle.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig\032I\n" + "\031SuggestionTriggerSettings\022\025\n\r" + "no_small_talk\030\001 \001(\010\022\025\n\r" + "only_end_user\030\002 \001(\010\032\223\007\n" @@ -241,21 +243,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" - + "\014rai_settings\030\023 \001(\0132,." - + "google.cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" + + "\014rai_settings\030\023 \001(\0132,.google." + + "cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" + "\033suggestion_trigger_settings\030\n" - + " \001(\0132T.google.cloud.dialogflow.v2beta1." - + "HumanAgentAssistantConfig.SuggestionTriggerSettings\022f\n" - + "\014query_config\030\006 \001(\0132P.goog" - + "le.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" - + "\031conversation_model_config\030\007 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" - + "\033conversation_process_config\030\010 \001(\0132T.google" - + ".cloud.dialogflow.v2beta1.HumanAgentAssi" - + "stantConfig.ConversationProcessConfig\032\242\003\n" + + " \001(\0132T.google.cloud.dialogflow.v2beta1.HumanAg" + + "entAssistantConfig.SuggestionTriggerSettings\022f\n" + + "\014query_config\030\006 \001(\0132P.google.clou" + + "d.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" + + "\031conversation_model_config\030\007 \001(\0132R.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" + + "\033conversation_process_config\030\010 \001(\0132T.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig\032\242\003\n" + "\020SuggestionConfig\022k\n" - + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionFeatureConfig\022\"\n" + + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.HumanAgen" + + "tAssistantConfig.SuggestionFeatureConfig\022\"\n" + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" + "generators\030\004 \003(\tB+\340A\001\372A%\n" + "#dialogflow.googleapis.com/Generator\0228\n" @@ -264,21 +265,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\267\r\n" + "\025SuggestionQueryConfig\022\220\001\n" - + "\033knowledge_base_query_source\030\001 \001" - + "(\0132i.google.cloud.dialogflow.v2beta1.Hum" - + "anAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" - + "\025document_query_source\030\002 \001(\0132d.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantCon" - + "fig.SuggestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132f.google.cloud.dialogflow.v2beta1.Huma" - + "nAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + + "\033knowledge_base_query_source\030\001 \001(\0132i.go" + + "ogle.cloud.dialogflow.v2beta1.HumanAgent" + + "AssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" + + "\025document_query_source\030\002 \001(\0132d.google.cloud.dialogfl" + + "ow.v2beta1.HumanAgentAssistantConfig.Sug" + + "gestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" + + "\027dialogflow_query_source\030\003 \001(\0132f.goo" + + "gle.cloud.dialogflow.v2beta1.HumanAgentA" + + "ssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" + "\013max_results\030\004 \001(\005\022\034\n" + "\024confidence_threshold\030\005 \001(\002\022\207\001\n" - + "\027context_filter_settings\030\007 \001(\0132f.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentAss" - + "istantConfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" - + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentA" - + "ssistantConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + + "\027context_filter_settings\030\007 \001(\0132f.google.cloud" + + ".dialogflow.v2beta1.HumanAgentAssistantC" + + "onfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" + + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentAssistan" + + "tConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" + "\030KnowledgeBaseQuerySource\022H\n" + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" @@ -289,9 +291,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DialogflowQuerySource\0226\n" + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dia" - + "logflow.v2beta1.HumanAgentAssistantConfi" - + "g.SuggestionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" + "\024HumanAgentSideConfig\0226\n" + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" + "\037dialogflow.googleapis.com/Agent\032v\n" @@ -300,9 +302,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" + "\021drop_ivr_messages\030\003 \001(\010\032\247\002\n" + "\010Sections\022|\n\r" - + "section_types\030\001 \003(\0162e.google.cloud.di" - + "alogflow.v2beta1.HumanAgentAssistantConf" - + "ig.SuggestionQueryConfig.Sections.SectionType\"\234\001\n" + + "section_types\030\001 \003(\0162e.google.cloud.dialogflo" + + "w.v2beta1.HumanAgentAssistantConfig.Sugg" + + "estionQueryConfig.Sections.SectionType\"\234\001\n" + "\013SectionType\022\034\n" + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -317,15 +319,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+dialogflow.googleapis.com/ConversationModel\022\036\n" + "\026baseline_model_version\030\010 \001(\t\032;\n" + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\\\n" + + "\026recent_sentences_count\030\002 \001(\005\032\207\001\n" + "\025MessageAnalysisConfig\022 \n" + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\"\316\003\n" + + "\031enable_sentiment_analysis\030\003 \001(\010\022)\n" + + "\034enable_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\316\003\n" + "\027HumanAgentHandoffConfig\022g\n" - + "\022live_person_config\030\001 \001(\0132I.go" - + "ogle.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + + "\022live_person_config\030\001 \001(\0132I.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" + + "\034salesforce_live_agent_config\030\002 \001(\0132R.google.clo" + + "ud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" + "\020LivePersonConfig\022\033\n" + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" + "\031SalesforceLiveAgentConfig\022\034\n" @@ -336,8 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "agent_service\"\304\001\n" + "\022NotificationConfig\022\r\n" + "\005topic\030\001 \001(\t\022Y\n" - + "\016message_format\030\002 \001(\0162A.google.clou" - + "d.dialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" + + "\016message_format\030\002 \001(\0162A.google.cloud.d" + + "ialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" + "MessageFormat\022\036\n" + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + "\005PROTO\020\001\022\010\n" @@ -345,114 +348,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "LoggingConfig\022\"\n" + "\032enable_stackdriver_logging\030\003 \001(\010\"\217\001\n" + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-di" - + "alogflow.googleapis.com/ConversationProfile\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialo" + + "gflow.googleapis.com/ConversationProfile\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\220\001\n" + " ListConversationProfilesResponse\022S\n" - + "\025conversation_profiles\030\001 \003(\01324.google." - + "cloud.dialogflow.v2beta1.ConversationProfile\022\027\n" + + "\025conversation_profiles\030\001 \003(\01324.google.clo" + + "ud.dialogflow.v2beta1.ConversationProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035GetConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\302\001\n" + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialog" - + "flow.googleapis.com/ConversationProfile\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.c" - + "loud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022W\n" + + "\024conversation_profile\030\002 \001(\01324.google.clou" + + "d.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" + " UpdateConversationProfileRequest\022W\n" - + "\024conversation_profile\030\001 \001(\01324.go" - + "ogle.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + + "\024conversation_profile\030\001 \001(\01324.googl" + + "e.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" + " DeleteConversationProfileRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-dialogflow.googleapis.com/ConversationProfile\"\224\002\n" + "!SetSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.googl" - + "e.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" - + "\031suggestion_feature_config\030\003 \001(\0132R.google.cloud.dialogflow.v2beta1.Hu" - + "manAgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + + "\020participant_role\030\002 \001(\01621.google.c" + + "loud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" + + "\031suggestion_feature_config\030\003 \001(\013" + + "2R.google.cloud.dialogflow.v2beta1.Human" + + "AgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" + "#ClearSuggestionFeatureConfigRequest\022!\n" + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.goog" - + "le.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001" - + "(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" + + "\020participant_role\030\002 \001(\01621.google." + + "cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + + "\027suggestion_feature_type\030\003 \001(\0162" + + "7.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" + "\024conversation_profile\030\001 \001(\t\022P\n" + "\020participant_role\030\002" + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\01627.google.cloud.dialogf" - + "low.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\027suggestion_feature_type\030\003" + + " \001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002 \001(\01621.goo" - + "gle.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 " - + "\001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + + "\020participant_role\030\002 \001(\01621.google" + + ".cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" + + "\027suggestion_feature_type\030\003 \001(\016" + + "27.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\025\n" + "\024ConversationProfiles\022\245\002\n" - + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2bet" - + "a1.ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConvers" - + "ationProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\022" - + "1/v2beta1/{parent=projects/*}/conversati" - + "onProfilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" - + "\026GetConversationProfile\022>.google.cloud.di" - + "alogflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" - + ".ConversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v" - + "2beta1/{name=projects/*/conversationProf" - + "iles/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" - + "\031CreateConversationProfile\022A.google.cloud.di" - + "alogflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2be" - + "ta1.ConversationProfile\"\305\001\332A\033parent,conv" - + "ersation_profile\202\323\344\223\002\240\001\"1/v2beta1/{paren" - + "t=projects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=pro" - + "jects/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" - + "\031UpdateConversationProfile\022A.google.cloud.dialogflow." - + "v2beta1.UpdateConversationProfileRequest" - + "\0324.google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" - + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversat" - + "ion_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2" - + "beta1/{conversation_profile.name=project" - + "s/*/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" - + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2" - + "beta1.DeleteConversationProfileRequest\032\026" - + ".google.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1" - + "/v2beta1/{name=projects/*/conversationPr" - + "ofiles/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" - + "\032SetSuggestionFeatureConfig\022B.google.cloud" - + ".dialogflow.v2beta1.SetSuggestionFeature" - + "ConfigRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024c" - + "onversation_profile\332A?conversation_profile,participant_role,suggestion_feature_c" - + "onfig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_pro" - + "file=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta" - + "1/{conversation_profile=projects/*/locat" - + "ions/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" - + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow." - + "v2beta1.ClearSuggestionFeatureConfigRequ" - + "est\032\035.google.longrunning.Operation\"\371\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFe" - + "atureConfigOperationMetadata\332A\024conversat" - + "ion_profile\332A=conversation_profile,parti" - + "cipant_role,suggestion_feature_type\202\323\344\223\002" - + "\324\001\"^/v2beta1/{conversation_profile=proje" - + "cts/*/conversationProfiles/*}:clearSuggestionFeatureConfig:\001*Zo\"j/v2beta1/{conve" - + "rsation_profile=projects/*/locations/*/conversationProfiles/*}:clearSuggestionFe" - + "atureConfig:\001*\032x\312A\031dialogflow.googleapis" - + ".com\322AYhttps://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfilePro" - + "toP\001ZCcloud.google.com/go/dialogflow/api" - + "v2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySetting" - + "s\022Lprojects/{project}/locations/{locatio" - + "n}/securitySettings/{security_settings}\352A~\n" - + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{l" - + "ocation}/conversationModels/{conversation_model}b\006proto3" + + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2beta1." + + "ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConversati" + + "onProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v" + + "2beta1/{parent=projects/*}/conversationP" + + "rofilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" + + "\026GetConversationProfile\022>.google.cloud.dialo" + + "gflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.Co" + + "nversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2be" + + "ta1/{name=projects/*/conversationProfile" + + "s/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" + + "\031CreateConversationProfile\022A.google.cloud.dialo" + + "gflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" + + ".ConversationProfile\"\305\001\332A\033parent,convers" + + "ation_profile\202\323\344\223\002\240\001\"1/v2beta1/{parent=p" + + "rojects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=projec" + + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" + + "\031UpdateConversationProfile\022A.google.cloud.dialogflow.v2b" + + "eta1.UpdateConversationProfileRequest\0324." + + "google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" + + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversation" + + "_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2bet" + + "a1/{conversation_profile.name=projects/*" + + "/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" + + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2bet" + + "a1.DeleteConversationProfileRequest\032\026.go" + + "ogle.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2" + + "beta1/{name=projects/*/conversationProfi" + + "les/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" + + "\032SetSuggestionFeatureConfig\022B.google.cloud.di" + + "alogflow.v2beta1.SetSuggestionFeatureCon" + + "figRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" + + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conv" + + "ersation_profile\332A?conversation_profile,participant_role,suggestion_feature_conf" + + "ig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_profil" + + "e=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta1/{" + + "conversation_profile=projects/*/location" + + "s/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" + + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow.v2b" + + "eta1.ClearSuggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\371\002\312AD\n" + + "\023ConversationProfile\022-ClearSuggestionFeatu" + + "reConfigOperationMetadata\332A\024conversation" + + "_profile\332A=conversation_profile,particip" + + "ant_role,suggestion_feature_type\202\323\344\223\002\324\001\"" + + "^/v2beta1/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggesti" + + "onFeatureConfig:\001*Zo\"j/v2beta1/{conversation_profile=projects/*/locations/*/conv" + + "ersationProfiles/*}:clearSuggestionFeatu" + + "reConfig:\001*\032x\312A\031dialogflow.googleapis.co" + + "m\322AYhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" + + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfileProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" + + ",dialogflow.googleapis.com/CXSecuritySettings\022L" + + "projects/{project}/locations/{location}/securitySettings/{security_settings}\352A~\n" + + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{loca" + + "tion}/conversationModels/{conversation_model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -481,6 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "CreateTime", "UpdateTime", + "UseBidiStreaming", "AutomatedAgentConfig", "HumanAgentAssistantConfig", "HumanAgentHandoffConfig", @@ -653,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, new java.lang.String[] { - "EnableEntityExtraction", "EnableSentimentAnalysis", + "EnableEntityExtraction", "EnableSentimentAnalysis", "EnableSentimentAnalysisV3", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentHandoffConfig_descriptor = getDescriptor().getMessageType(3); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java index 385558f14cfa..9c808c556ba9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java @@ -64,10 +64,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_Conversation_ContextReference_ContextContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Conversation_ContextReference_ContextContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -140,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -208,6 +220,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeRequest_SearchConfig_FilterSpecs_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeRequest_SearchConfig_FilterSpecs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -241,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032:google/cloud/dialogflow/v2beta1/conversation_profile.proto\032/google/cloud/dialo" + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + "\032-google/cloud/dialogflow/v2beta1/sessio" - + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\267\022\n" + + "n.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\300\027\n" + "\014Conversation\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022Z\n" + "\017lifecycle_state\030\002 \001(\0162<.google.cloud.dialogflow" @@ -256,18 +276,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022m\n" + "\031telephony_connection_info\030\n" + " \001(\0132E.google.cloud.dialogflow.v2bet" - + "a1.Conversation.TelephonyConnectionInfoB\003\340A\003\022v\n" - + "\033ingested_context_references\030\021 \003(" - + "\0132L.google.cloud.dialogflow.v2beta1.Conv" - + "ersation.IngestedContextReferencesEntryB\003\340A\003\032\230\003\n" + + "a1.Conversation.TelephonyConnectionInfoB\003\340A\003\022b\n" + + "\034initial_conversation_profile\030\017 \001" + + "(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\006\340A\001\340A\003\022v\n" + + "\033ingested_context_references\030\021 \003(\0132L.google.cloud.dia" + + "logflow.v2beta1.Conversation.IngestedContextReferencesEntryB\003\340A\003\022t\n" + + "\032initial_generator_contexts\030\022 \003(\0132K.google.cloud.dial" + + "ogflow.v2beta1.Conversation.InitialGeneratorContextsEntryB\003\340A\003\032\230\003\n" + "\027TelephonyConnectionInfo\022\032\n\r" + "dialed_number\030\002 \001(\tB\003\340A\003\022\020\n" + "\003sdp\030\005 \001(\tB\003\340A\001\022i\n" - + "\013sip_headers\030\014 \003(\0132O.google.cloud.dialo" - + "gflow.v2beta1.Conversation.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022s\n" + + "\013sip_headers\030\014 \003(\0132O.google.cloud.dialogflow.v2beta1.Conversa" + + "tion.TelephonyConnectionInfo.SipHeaderB\003\340A\003\022s\n" + "\023extra_mime_contents\030\r" - + " \003(\0132Q.google.cloud.dialogflow" - + ".v2beta1.Conversation.TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + + " \003(\0132Q.google.cloud.dialogflow.v2beta1.Conversation." + + "TelephonyConnectionInfo.MimeContentB\003\340A\003\0322\n" + "\tSipHeader\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\032;\n" @@ -275,17 +298,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\014B\003\340A\001\032\273\005\n" + "\020ContextReference\022l\n" - + "\020context_contents\030\001 \003(\0132M.google.cloud.di" - + "alogflow.v2beta1.Conversation.ContextReference.ContextContentB\003\340A\002\022c\n" - + "\013update_mode\030\002 \001(\0162I.google.cloud.dialogflow.v2beta" - + "1.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + + "\020context_contents\030\001 \003(\0132M.google.cloud.dialogflow.v2beta1.Conve" + + "rsation.ContextReference.ContextContentB\003\340A\002\022c\n" + + "\013update_mode\030\002 \001(\0162I.google.cloud" + + ".dialogflow.v2beta1.Conversation.ContextReference.UpdateModeB\003\340A\002\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\273\002\n" + "\016ContextContent\022\024\n" + "\007content\030\001 \001(\tB\003\340A\002\022x\n" - + "\016content_format\030\002 \001(\0162[.google.cloud.dialogflow.v2beta1.Conversatio" - + "n.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + + "\016content_format\030\002 \001(\0162[.google.cloud.dialogflow.v" + + "2beta1.Conversation.ContextReference.ContextContent.ContentFormatB\003\340A\002\0227\n" + "\016ingestion_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + "answer_record\030\004 \001(\t\"I\n\r" @@ -296,11 +319,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UpdateMode\022\033\n" + "\027UPDATE_MODE_UNSPECIFIED\020\000\022\n\n" + "\006APPEND\020\001\022\r\n" - + "\tOVERWRITE\020\002\032\200\001\n" + + "\tOVERWRITE\020\002\032\253\002\n" + + "\020GeneratorContext\022i\n" + + "\016generator_type\030\001 \001(\0162L.google.cloud.dial" + + "ogflow.v2beta1.Conversation.GeneratorContext.GeneratorTypeB\003\340A\003\"\253\001\n\r" + + "GeneratorType\022\036\n" + + "\032GENERATOR_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tFREE_FORM\020\001\022\022\n" + + "\016AGENT_COACHING\020\002\022\021\n\r" + + "SUMMARIZATION\020\003\022\017\n" + + "\013TRANSLATION\020\004\022\022\n" + + "\016AGENT_FEEDBACK\020\005\022\037\n" + + "\033CUSTOMER_MESSAGE_GENERATION\020\006\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" + "\005value\030\002 \001(\0132>.google.cloud.dial" - + "ogflow.v2beta1.Conversation.ContextReference:\0028\001\"Q\n" + + "ogflow.v2beta1.Conversation.ContextReference:\0028\001\032\177\n" + + "\035InitialGeneratorContextsEntry\022\013\n" + + "\003key\030\001 \001(\t\022M\n" + + "\005value\030\002 \001(\0132>.google.c" + + "loud.dialogflow.v2beta1.Conversation.GeneratorContext:\0028\001\"Q\n" + "\016LifecycleState\022\037\n" + "\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\r\n" @@ -309,23 +347,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027\n" + "\023VIRTUAL_AGENT_STAGE\020\001\022\026\n" + "\022HUMAN_ASSIST_STAGE\020\002:\300\001\352A\274\001\n" - + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conversations/{" - + "conversation}\022Dprojects/{project}/locati" - + "ons/{location}/conversations/{conversation}*\r" + + "&dialogflow.googleapis.com/Conversation\022/projects/{project}/conver" + + "sations/{conversation}\022Dprojects/{projec" + + "t}/locations/{location}/conversations/{conversation}*\r" + "conversations2\014conversation\"O\n" + "\027ConversationPhoneNumber\022\031\n" + "\014country_code\030\002 \001(\005B\003\340A\003\022\031\n" + "\014phone_number\030\003 \001(\tB\003\340A\003\"\303\001\n" + "\031CreateConversationRequest\022>\n" - + "\006parent\030\001 \001(\tB" - + ".\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" - + "\014conversation\030\002 \001(\0132-.google.c" - + "loud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022H\n" + + "\014conversation\030\002 \001(\0132-" + + ".google.cloud.dialogflow.v2beta1.ConversationB\003\340A\002\022\034\n" + "\017conversation_id\030\003 \001(\tB\003\340A\001\"\240\001\n" + "\030ListConversationsRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A" - + "\002\372A(\022&dialogflow.googleapis.com/Conversation\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&dialogflow.googleapis.com/Conversation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"z\n" + "\031ListConversationsResponse\022D\n\r" @@ -351,8 +390,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033BatchCreateMessagesResponse\022:\n" + "\010messages\030\001 \003(\0132(.google.cloud.dialogflow.v2beta1.Message\"\226\001\n" + "\023ListMessagesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + + "\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Message\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"k\n" @@ -362,50 +401,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036IngestContextReferencesRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022w\n" - + "\022context_references\030\002 \003(\0132V.google" - + ".cloud.dialogflow.v2beta1.IngestContextR" - + "eferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + + "\022context_references\030\002 \003(\0132V.google.cloud.dialogflow.v2beta1.Inges" + + "tContextReferencesRequest.ContextReferencesEntryB\003\340A\002\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.dialog" - + "flow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + + "\005value\030\002 \001(\0132>.google.clo" + + "ud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\253\002\n" + "\037IngestContextReferencesResponse\022\204\001\n" - + "\033ingested_context_references\030\001 \003(\013" - + "2_.google.cloud.dialogflow.v2beta1.Inges" - + "tContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + + "\033ingested_context_references\030\001 \003(\0132_.google.cloud.dialogflow.v2be" + + "ta1.IngestContextReferencesResponse.IngestedContextReferencesEntry\032\200\001\n" + "\036IngestedContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\013" - + "2>.google.cloud.dialogflow.v2beta1.Conversation.ContextReference:\0028\001\"\241\002\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialogflow.v2be" + + "ta1.Conversation.ContextReference:\0028\001\"\241\002\n" + "!SuggestConversationSummaryRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\004 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\005 \001(\01326.google.cloud.dialo" - + "gflow.v2beta1.AssistQueryParametersB\003\340A\001\"\201\004\n" + + "\023assist_query_params\030\005 \001(\01326.google.cl" + + "oud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\271\005\n" + "\"SuggestConversationSummaryResponse\022\\\n" - + "\007summary\030\001 \001(\0132K.google.cloud.dialogfl" - + "ow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132K.google.cloud" + + ".dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" - + "\014context_size\030\003 \001(\005\032\246\002\n" + + "\014context_size\030\003 \001(\005\032\336\003\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022t\n\r" - + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1.SuggestConversati" - + "onSummaryResponse.Summary.TextSectionsEntry\022B\n\r" + + "text_sections\030\004 \003(\0132].google.cloud.dialogflow.v2beta1.SuggestC" + + "onversationSummaryResponse.Summary.TextSectionsEntry\022x\n" + + "\024sorted_text_sections\030\006 \003(\0132Z.google.cloud.dialogflow.v2beta1.Sug" + + "gestConversationSummaryResponse.Summary.SummarySection\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\022\036\n" - + "\026baseline_model_version\030\005 \001(\t\0323\n" + + "\026baseline_model_version\030\005 \001(\t\032<\n" + + "\016SummarySection\022\024\n" + + "\007section\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007summary\030\002 \001(\tB\003\340A\003\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\003\n" + "\037GenerateStatelessSummaryRequest\022y\n" - + "\026stateless_conversation\030\001 \001(\0132T.google.cloud." - + "dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.cloud" - + ".dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + + "\026stateless_conversation\030\001 \001(\0132T.google.cloud.dialogf" + + "low.v2beta1.GenerateStatelessSummaryRequest.MinimalConversationB\003\340A\002\022W\n" + + "\024conversation_profile\030\002" + + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\022A\n" + "\016latest_message\030\003 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\035\n" + "\020max_context_size\030\004 \001(\005B\003\340A\001\032\221\001\n" @@ -415,15 +457,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\"\267\003\n" + " GenerateStatelessSummaryResponse\022Z\n" - + "\007summary\030\001 \001(\0132I.google.cloud." - + "dialogflow.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + + "\007summary\030\001 \001(\0132I.google.cloud.dialogf" + + "low.v2beta1.GenerateStatelessSummaryResponse.Summary\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\032\340\001\n" + "\007Summary\022\014\n" + "\004text\030\001 \001(\t\022r\n\r" - + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2beta1.GenerateSta" - + "telessSummaryResponse.Summary.TextSectionsEntry\022\036\n" + + "text_sections\030\002 \003(\0132[.google.cloud.dialogflow.v2beta1.GenerateStatelessS" + + "ummaryResponse.Summary.TextSectionsEntry\022\036\n" + "\026baseline_model_version\030\004 \001(\t\0323\n" + "\021TextSectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -431,21 +473,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"GenerateStatelessSuggestionRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022?\n" - + "\tgenerator\030\002" - + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorH\000\022\030\n" + + "\tgenerator\030\002 \001" + + "(\0132*.google.cloud.dialogflow.v2beta1.GeneratorH\000\022\030\n" + "\016generator_name\030\003 \001(\tH\000\022{\n" - + "\022context_references\030\004 \003(\0132Z.google.c" - + "loud.dialogflow.v2beta1.GenerateStateles" - + "sSuggestionRequest.ContextReferencesEntryB\003\340A\001\022W\n" - + "\024conversation_context\030\005 \001(\01324.g" - + "oogle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" - + "\016trigger_events\030\006 \003(\0162" - + "-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + + "\022context_references\030\004 \003(\0132Z.google.cloud.di" + + "alogflow.v2beta1.GenerateStatelessSugges" + + "tionRequest.ContextReferencesEntryB\003\340A\001\022W\n" + + "\024conversation_context\030\005 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022J\n" + + "\016trigger_events\030\006 \003(\0162-.googl" + + "e.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + "\021security_settings\030\010 \001(\tB\003\340A\001\032x\n" + "\026ContextReferencesEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.dialogf" - + "low.v2beta1.Conversation.ContextReference:\0028\001B\024\n" + + "\005value\030\002 \001(\0132>.google.cloud.dialogflow.v2b" + + "eta1.Conversation.ContextReference:\0028\001B\024\n" + "\022generator_resource\"~\n" + "#GenerateStatelessSuggestionResponse\022W\n" + "\024generator_suggestion\030\001" @@ -461,44 +503,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\005 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022^\n" - + "\014query_source\030\007 \001(\0162C.google.cloud.dialogfl" - + "ow.v2beta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + + "\014query_source\030\007 \001(\0162C.google.cloud.dialogflow.v2be" + + "ta1.SearchKnowledgeRequest.QuerySourceB\003\340A\001\0227\n" + "\021end_user_metadata\030\t" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022`\n\r" - + "search_config\030\013 \001(\0132D.google.cloud.dialogflow.v2b" - + "eta1.SearchKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + + "search_config\030\013 \001(\0132D.google.cloud.dialogflow.v2beta1.Se" + + "archKnowledgeRequest.SearchConfigB\003\340A\001\022\031\n" + "\014exact_search\030\016 \001(\010B\003\340A\001\032\203\r\n" + "\014SearchConfig\022i\n" - + "\013boost_specs\030\001 \003(\0132O.google." - + "cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" - + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialog" - + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + + "\013boost_specs\030\001 \003(\0132O.google.cloud.d" + + "ialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecsB\003\340A\001\022k\n" + + "\014filter_specs\030\002 \003(\0132P.google.cloud.dialogflow.v2" + + "beta1.SearchKnowledgeRequest.SearchConfig.FilterSpecsB\003\340A\001\032\334\n\n\n" + "BoostSpecs\022E\n" + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022l\n" - + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1." - + "SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + + "\004spec\030\002 \003(\0132Y.google.cloud.dialogflow.v2beta1.SearchK" + + "nowledgeRequest.SearchConfig.BoostSpecs.BoostSpecB\003\340A\001\032\230\t\n" + "\tBoostSpec\022\220\001\n" - + "\025condition_boost_specs\030\001 \003(\0132l.google.clo" - + "ud.dialogflow.v2beta1.SearchKnowledgeReq" - + "uest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + + "\025condition_boost_specs\030\001 \003(\0132l.google.cloud.dial" + + "ogflow.v2beta1.SearchKnowledgeRequest.Se" + + "archConfig.BoostSpecs.BoostSpec.ConditionBoostSpecB\003\340A\001\032\367\007\n" + "\022ConditionBoostSpec\022\026\n" + "\tcondition\030\001 \001(\tB\003\340A\001\022\022\n" + "\005boost\030\002 \001(\002B\003\340A\001\022\236\001\n" - + "\022boost_control_spec\030\004 \001(\0132}.google.cloud.dialogflow.v2beta1.SearchK" - + "nowledgeRequest.SearchConfig.BoostSpecs." - + "BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + + "\022boost_control_spec\030\004 \001(\0132}.google" + + ".cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSp" + + "ec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\223\006\n" + "\020BoostControlSpec\022\027\n\n" + "field_name\030\001 \001(\tB\003\340A\001\022\251\001\n" - + "\016attribute_type\030\002 \001(\0162\213\001.google.cloud.dialogflow.v2beta1.Sea" - + "rchKnowledgeRequest.SearchConfig.BoostSp" - + "ecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" - + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialog" - + "flow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionB" - + "oostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" - + "\016control_points\030\004 \003(\0132\212\001.goo" - + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.Boos" - + "tSpec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\016attribute_type\030\002 \001(\0162\213\001.go" + + "ogle.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.Boo" + + "stSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\261\001\n" + + "\022interpolation_type\030\003 \001(\0162\217\001.google.cloud.dialogflow.v2" + + "beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpe" + + "c.BoostControlSpec.InterpolationTypeB\003\340A\001\022\250\001\n" + + "\016control_points\030\004 \003(\0132\212\001.google.clo" + + "ud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.C" + + "onditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + "\014ControlPoint\022\034\n" + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" @@ -515,28 +557,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013QuerySource\022\034\n" + "\030QUERY_SOURCE_UNSPECIFIED\020\000\022\017\n" + "\013AGENT_QUERY\020\001\022\023\n" - + "\017SUGGESTED_QUERY\020\002\"{\n" + + "\017SUGGESTED_QUERY\020\002\"\270\004\n" + + "\030SearchKnowledgeDebugInfo\022[\n" + + "\031datastore_response_reason\030\001 \001" + + "(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031search_knowledge_behavior\030\002 \001(\0132Q.google.cloud.dialogflo" + + "w.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\003 \001(\0132B.google.cloud" + + ".dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\004 \001(\0132/" + + ".google.cloud.dialogflow.v2beta1.ServiceLatency\032\213\001\n" + + "\027SearchKnowledgeBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\004 \001(\010\"\333\001\n" + "\027SearchKnowledgeResponse\022G\n" - + "\007answers\030\002 \003(\01326.google.c" - + "loud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" - + "\017rewritten_query\030\003 \001(\t\"\330\003\n" + + "\007answers\030\002 \003(\01326.goo" + + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + + "\017rewritten_query\030\003 \001(\t\022^\n" + + "\033search_knowledge_debug_info\030\004 \001(\01329.googl" + + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\330\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022V\n" - + "\013answer_type\030\002 \001(\0162A.google.cloud.dialogflow." - + "v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" - + "\016answer_sources\030\003 \003(\0132C.google.cloud." - + "dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + + "\013answer_type\030\002 \001(\0162A.goo" + + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerType\022[\n" + + "\016answer_sources\030\003" + + " \003(\0132C.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource\022B\n\r" + "answer_record\030\005 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\032f\n" - + "\014AnswerSource\022\r\n" + + "\014AnswerSource\022\r" + + "\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003FAQ\020\001\022\016\n" - + "\n" + + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" + "\006INTENT\020\003\"\361\001\n" + "\032GenerateSuggestionsRequest\022D\n" @@ -544,88 +601,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022J\n" - + "\016trigger_events\030\003" - + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + + "\016trigger_events\030\003 \003(\0162-" + + ".google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + "Conversations\022\241\002\n" - + "\022CreateConversation\022:.google.cloud.dialogflow.v2beta1.CreateConversat" - + "ionRequest\032-.google.cloud.dialogflow.v2b" - + "eta1.Conversation\"\237\001\332A\023parent,conversati" - + "on\202\323\344\223\002\202\001\"*/v2beta1/{parent=projects/*}/" - + "conversations:\014conversationZF\"6/v2beta1/" - + "{parent=projects/*/locations/*}/conversations:\014conversation\022\201\002\n" - + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.List" - + "ConversationsRequest\032:.google.cloud.dialogflow.v2beta1.ListConversationsResponse" - + "\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{parent=proj" - + "ects/*}/conversationsZ8\0226/v2beta1/{paren" - + "t=projects/*/locations/*}/conversations\022\356\001\n" - + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetConversationRequest\032-.g" - + "oogle.cloud.dialogflow.v2beta1.Conversat" - + "ion\"s\332A\004name\202\323\344\223\002f\022*/v2beta1/{name=proje" - + "cts/*/conversations/*}Z8\0226/v2beta1/{name" - + "=projects/*/locations/*/conversations/*}\022\221\002\n" - + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1.CompleteConversation" - + "Request\032-.google.cloud.dialogflow.v2beta" - + "1.Conversation\"\213\001\332A\004name\202\323\344\223\002~\"3/v2beta1" - + "/{name=projects/*/conversations/*}:compl" - + "ete:\001*ZD\"?/v2beta1/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" - + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1.IngestContextReferenc" - + "esRequest\032@.google.cloud.dialogflow.v2be" - + "ta1.IngestContextReferencesResponse\"\203\001\332A" - + "\037conversation,context_references\202\323\344\223\002[\"V" - + "/v2beta1/{conversation=projects/*/locati" - + "ons/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" - + "\023BatchCreateMessages\022;.google.cloud.dialogflow.v2beta1.BatchCreateM" - + "essagesRequest\032<.google.cloud.dialogflow" - + ".v2beta1.BatchCreateMessagesResponse\"\263\001\332" - + "A\017parent,requests\202\323\344\223\002\232\001\"A/v2beta1/{pare" - + "nt=projects/*/conversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=proje" - + "cts/*/locations/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" - + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessag" - + "esRequest\0325.google.cloud.dialogflow.v2be" - + "ta1.ListMessagesResponse\"\213\001\332A\006parent\202\323\344\223" - + "\002|\0225/v2beta1/{parent=projects/*/conversa" - + "tions/*}/messagesZC\022A/v2beta1/{parent=pr" - + "ojects/*/locations/*/conversations/*}/messages\022\210\003\n" - + "\032SuggestConversationSummary\022B.google.cloud.dialogflow.v2beta1.SuggestC" - + "onversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1.SuggestConversationS" - + "ummaryResponse\"\340\001\332A\014conversation\202\323\344\223\002\312\001\"" - + "Y/v2beta1/{conversation=projects/*/conversations/*}/suggestions:suggestConversat" - + "ionSummary:\001*Zj\"e/v2beta1/{conversation=projects/*/locations/*/conversations/*}/" - + "suggestions:suggestConversationSummary:\001*\022\361\002\n" - + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2beta1.GenerateStatele" - + "ssSummaryRequest\032A.google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRespo" - + "nse\"\317\001\202\323\344\223\002\310\001\"X/v2beta1/{stateless_conve" - + "rsation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zi\"d/v2beta1/{" - + "stateless_conversation.parent=projects/*" - + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" - + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2beta1." - + "GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.GenerateSta" - + "telessSuggestionResponse\"P\202\323\344\223\002J\"E/v2bet" - + "a1/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" - + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1" - + ".SearchKnowledgeRequest\0328.google.cloud.dialogflow.v2beta1.SearchKnowledgeRespons" - + "e\"\305\002\202\323\344\223\002\276\002\"8/v2beta1/{parent=projects/*" - + "}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projects/*/locations/*}/sug" - + "gestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=projects/*/conversations/*" - + "}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=projects/*/locations/" - + "*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" - + "\023GenerateSuggestions\022;.google.cloud.dialogflow.v2beta1.GenerateSugg" - + "estionsRequest\032<.google.cloud.dialogflow" - + ".v2beta1.GenerateSuggestionsResponse\"\274\001\332" - + "A\014conversation\202\323\344\223\002\246\001\"G/v2beta1/{convers" - + "ation=projects/*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversat" - + "ion=projects/*/locations/*/conversations" - + "/*}/suggestions:generate:\001*\032x\312A\031dialogfl" - + "ow.googleapis.com\322AYhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\314\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\021Conversat" - + "ionProtoP\001ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb\242" - + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" - + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" - + "ions/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" - + "tools/{tool}b\006proto3" + + "\022CreateConversation\022:.google.cloud.dialogflow.v2" + + "beta1.CreateConversationRequest\032-.google" + + ".cloud.dialogflow.v2beta1.Conversation\"\237" + + "\001\332A\023parent,conversation\202\323\344\223\002\202\001\"*/v2beta1" + + "/{parent=projects/*}/conversations:\014conversationZF\"6/v2beta1/{parent=projects/*/" + + "locations/*}/conversations:\014conversation\022\201\002\n" + + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.ListConversationsReques" + + "t\032:.google.cloud.dialogflow.v2beta1.List" + + "ConversationsResponse\"u\332A\006parent\202\323\344\223\002f\022*" + + "/v2beta1/{parent=projects/*}/conversatio" + + "nsZ8\0226/v2beta1/{parent=projects/*/locations/*}/conversations\022\356\001\n" + + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetCo" + + "nversationRequest\032-.google.cloud.dialogf" + + "low.v2beta1.Conversation\"s\332A\004name\202\323\344\223\002f\022" + + "*/v2beta1/{name=projects/*/conversations" + + "/*}Z8\0226/v2beta1/{name=projects/*/locations/*/conversations/*}\022\221\002\n" + + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1" + + ".CompleteConversationRequest\032-.google.cl" + + "oud.dialogflow.v2beta1.Conversation\"\213\001\332A" + + "\004name\202\323\344\223\002~\"3/v2beta1/{name=projects/*/c" + + "onversations/*}:complete:\001*ZD\"?/v2beta1/" + + "{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" + + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1." + + "IngestContextReferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextRe" + + "ferencesResponse\"\203\001\332A\037conversation,conte" + + "xt_references\202\323\344\223\002[\"V/v2beta1/{conversat" + + "ion=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" + + "\023BatchCreateMessages\022;.google.cloud.dialogflow" + + ".v2beta1.BatchCreateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreat" + + "eMessagesResponse\"\263\001\332A\017parent,requests\202\323" + + "\344\223\002\232\001\"A/v2beta1/{parent=projects/*/conve" + + "rsations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=projects/*/locations/*/c" + + "onversations/*}/messages:batchCreate:\001*\022\211\002\n" + + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessagesRequest\0325.google." + + "cloud.dialogflow.v2beta1.ListMessagesRes" + + "ponse\"\213\001\332A\006parent\202\323\344\223\002|\0225/v2beta1/{paren" + + "t=projects/*/conversations/*}/messagesZC" + + "\022A/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" + + "\032SuggestConversationSummary\022B.google.cloud.dialog" + + "flow.v2beta1.SuggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1" + + ".SuggestConversationSummaryResponse\"\340\001\332A" + + "\014conversation\202\323\344\223\002\312\001\"Y/v2beta1/{conversa" + + "tion=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v" + + "2beta1/{conversation=projects/*/location" + + "s/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" + + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2" + + "beta1.GenerateStatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.Generate" + + "StatelessSummaryResponse\"\317\001\202\323\344\223\002\310\001\"X/v2b" + + "eta1/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSum" + + "mary:\001*Zi\"d/v2beta1/{stateless_conversat" + + "ion.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" + + "\033GenerateStatelessSuggestion\022C.google.clou" + + "d.dialogflow.v2beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflo" + + "w.v2beta1.GenerateStatelessSuggestionRes" + + "ponse\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects" + + "/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" + + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1.SearchKnowledgeReq" + + "uest\0328.google.cloud.dialogflow.v2beta1.S" + + "earchKnowledgeResponse\"\305\002\202\323\344\223\002\276\002\"8/v2bet" + + "a1/{parent=projects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projec" + + "ts/*/locations/*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=proje" + + "cts/*/conversations/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=" + + "projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" + + "\023GenerateSuggestions\022;.google.cloud.dialogflow" + + ".v2beta1.GenerateSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSu" + + "ggestionsResponse\"\274\001\332A\014conversation\202\323\344\223\002" + + "\246\001\"G/v2beta1/{conversation=projects/*/co" + + "nversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversation=projects/*/loca" + + "tions/*/conversations/*}/suggestions:gen" + + "erate:\001*\032x\312A\031dialogflow.googleapis.com\322A", + "Yhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "dialogflowB\314\003\n#com.google.cloud.dialogfl" + + "ow.v2beta1B\021ConversationProtoP\001ZCcloud.g" + + "oogle.com/go/dialogflow/apiv2beta1/dialo" + + "gflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud" + + ".Dialogflow.V2Beta1\352A\305\001\n(discoveryengine" + + ".googleapis.com/DataStore\022Xprojects/{pro" + + "ject}/locations/{location}/collections/{" + + "collection}/dataStores/{data_store}\022?pro" + + "jects/{project}/locations/{location}/dat" + + "aStores/{data_store}\352AZ\n\027ces.googleapis." + + "com/Tool\022?projects/{project}/locations/{" + + "location}/apps/{app}/tools/{tool}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -656,7 +719,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "TelephonyConnectionInfo", + "InitialConversationProfile", "IngestedContextReferences", + "InitialGeneratorContexts", }); internal_static_google_cloud_dialogflow_v2beta1_Conversation_TelephonyConnectionInfo_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(0); @@ -701,14 +766,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Content", "ContentFormat", "IngestionTime", "AnswerRecord", }); - internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor = internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Conversation_GeneratorContext_descriptor, + new java.lang.String[] { + "GeneratorType", + }); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(3); internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_Conversation_IngestedContextReferencesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_Conversation_descriptor.getNestedType(4); + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_Conversation_InitialGeneratorContextsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_dialogflow_v2beta1_ConversationPhoneNumber_fieldAccessorTable = @@ -854,11 +935,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor, new java.lang.String[] { - "Text", "TextSections", "AnswerRecord", "BaselineModelVersion", + "Text", "TextSections", "SortedTextSections", "AnswerRecord", "BaselineModelVersion", }); - internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor = internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor, + new java.lang.String[] { + "Section", "Summary", + }); + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_descriptor + .getNestedType(1); internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_TextSectionsEntry_descriptor, @@ -1020,16 +1110,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataStores", "Filter", }); - internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor = getDescriptor().getMessageType(21); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor, + new java.lang.String[] { + "DatastoreResponseReason", + "SearchKnowledgeBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", "EndUserMetadataIncluded", "ThirdPartyConnectorAllowed", + }); + internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor = + getDescriptor().getMessageType(22); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeResponse_descriptor, new java.lang.String[] { - "Answers", "RewrittenQuery", + "Answers", "RewrittenQuery", "SearchKnowledgeDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeAnswer_descriptor, @@ -1046,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Title", "Uri", "Snippet", "Metadata", }); internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_GenerateSuggestionsRequest_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java new file mode 100644 index 000000000000..c0d457e6708f --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DatastoreResponseReason.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Response reason from datastore which indicates data serving status or
                                                                                                                                          + * answer quality degradation.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf enum {@code google.cloud.dialogflow.v2beta1.DatastoreResponseReason} + */ +@com.google.protobuf.Generated +public enum DatastoreResponseReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +   * Default value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + DATASTORE_RESPONSE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +   * No specific response reason from datastore.
                                                                                                                                          +   * 
                                                                                                                                          + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
                                                                                                                                          +   * Search is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + SEARCH_OUT_OF_QUOTA(2), + /** + * + * + *
                                                                                                                                          +   * Search returns empty results.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_EMPTY_RESULTS = 3; + */ + SEARCH_EMPTY_RESULTS(3), + /** + * + * + *
                                                                                                                                          +   * Generative AI is disabled.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + ANSWER_GENERATION_GEN_AI_DISABLED(4), + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + ANSWER_GENERATION_OUT_OF_QUOTA(5), + /** + * + * + *
                                                                                                                                          +   * Answer generation encounters an error.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_ERROR = 6; + */ + ANSWER_GENERATION_ERROR(6), + /** + * + * + *
                                                                                                                                          +   * Answer generation does not have enough information to generate answer.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + ANSWER_GENERATION_NOT_ENOUGH_INFO(7), + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + ANSWER_GENERATION_RAI_FAILED(8), + /** + * + * + *
                                                                                                                                          +   * Answer generation is not grounded on reliable sources.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + ANSWER_GENERATION_NOT_GROUNDED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DatastoreResponseReason"); + } + + /** + * + * + *
                                                                                                                                          +   * Default value.
                                                                                                                                          +   * 
                                                                                                                                          + * + * DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + */ + public static final int DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +   * No specific response reason from datastore.
                                                                                                                                          +   * 
                                                                                                                                          + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +   * Search is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_OUT_OF_QUOTA = 2; + */ + public static final int SEARCH_OUT_OF_QUOTA_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +   * Search returns empty results.
                                                                                                                                          +   * 
                                                                                                                                          + * + * SEARCH_EMPTY_RESULTS = 3; + */ + public static final int SEARCH_EMPTY_RESULTS_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +   * Generative AI is disabled.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_GEN_AI_DISABLED = 4; + */ + public static final int ANSWER_GENERATION_GEN_AI_DISABLED_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked due to out of quota.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_OUT_OF_QUOTA = 5; + */ + public static final int ANSWER_GENERATION_OUT_OF_QUOTA_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +   * Answer generation encounters an error.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_ERROR = 6; + */ + public static final int ANSWER_GENERATION_ERROR_VALUE = 6; + + /** + * + * + *
                                                                                                                                          +   * Answer generation does not have enough information to generate answer.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + */ + public static final int ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUE = 7; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is blocked by RAI (Responsible AI) failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_RAI_FAILED = 8; + */ + public static final int ANSWER_GENERATION_RAI_FAILED_VALUE = 8; + + /** + * + * + *
                                                                                                                                          +   * Answer generation is not grounded on reliable sources.
                                                                                                                                          +   * 
                                                                                                                                          + * + * ANSWER_GENERATION_NOT_GROUNDED = 9; + */ + public static final int ANSWER_GENERATION_NOT_GROUNDED_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatastoreResponseReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatastoreResponseReason forNumber(int value) { + switch (value) { + case 0: + return DATASTORE_RESPONSE_REASON_UNSPECIFIED; + case 1: + return NONE; + case 2: + return SEARCH_OUT_OF_QUOTA; + case 3: + return SEARCH_EMPTY_RESULTS; + case 4: + return ANSWER_GENERATION_GEN_AI_DISABLED; + case 5: + return ANSWER_GENERATION_OUT_OF_QUOTA; + case 6: + return ANSWER_GENERATION_ERROR; + case 7: + return ANSWER_GENERATION_NOT_ENOUGH_INFO; + case 8: + return ANSWER_GENERATION_RAI_FAILED; + case 9: + return ANSWER_GENERATION_NOT_GROUNDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatastoreResponseReason findValueByNumber(int number) { + return DatastoreResponseReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DatastoreResponseReason[] VALUES = values(); + + public static DatastoreResponseReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatastoreResponseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.DatastoreResponseReason) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java index df583b2aba74..6cfddfcc2c72 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Generator.java @@ -56,6 +56,9 @@ private Generator() { description_ = ""; triggerEvent_ = 0; tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + toolsetTools_ = java.util.Collections.emptyList(); + cesToolSpecs_ = java.util.Collections.emptyList(); + cesAppSpecs_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -887,6 +890,267 @@ public boolean hasSuggestionDedupingConfig() { : suggestionDedupingConfig_; } + public static final int TOOLSET_TOOLS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List toolsetTools_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetToolsList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetToolsOrBuilderList() { + return toolsetTools_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetToolsCount() { + return toolsetTools_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index) { + return toolsetTools_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder( + int index) { + return toolsetTools_.get(index); + } + + public static final int CES_TOOL_SPECS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List cesToolSpecs_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesToolSpecsList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesToolSpecsOrBuilderList() { + return cesToolSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesToolSpecsCount() { + return cesToolSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index) { + return cesToolSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder( + int index) { + return cesToolSpecs_.get(index); + } + + public static final int CES_APP_SPECS_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private java.util.List cesAppSpecs_; + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCesAppSpecsList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCesAppSpecsOrBuilderList() { + return cesAppSpecs_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCesAppSpecsCount() { + return cesAppSpecs_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index) { + return cesAppSpecs_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder( + int index) { + return cesAppSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -938,6 +1202,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + output.writeMessage(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + output.writeMessage(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + output.writeMessage(29, cesAppSpecs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -997,6 +1270,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getSuggestionDedupingConfig()); } + for (int i = 0; i < toolsetTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, toolsetTools_.get(i)); + } + for (int i = 0; i < cesToolSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, cesToolSpecs_.get(i)); + } + for (int i = 0; i < cesAppSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, cesAppSpecs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1033,6 +1315,9 @@ public boolean equals(final java.lang.Object obj) { if (hasSuggestionDedupingConfig()) { if (!getSuggestionDedupingConfig().equals(other.getSuggestionDedupingConfig())) return false; } + if (!getToolsetToolsList().equals(other.getToolsetToolsList())) return false; + if (!getCesToolSpecsList().equals(other.getCesToolSpecsList())) return false; + if (!getCesAppSpecsList().equals(other.getCesAppSpecsList())) return false; if (!getContextCase().equals(other.getContextCase())) return false; switch (contextCase_) { case 11: @@ -1092,6 +1377,18 @@ public int hashCode() { hash = (37 * hash) + SUGGESTION_DEDUPING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSuggestionDedupingConfig().hashCode(); } + if (getToolsetToolsCount() > 0) { + hash = (37 * hash) + TOOLSET_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetToolsList().hashCode(); + } + if (getCesToolSpecsCount() > 0) { + hash = (37 * hash) + CES_TOOL_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesToolSpecsList().hashCode(); + } + if (getCesAppSpecsCount() > 0) { + hash = (37 * hash) + CES_APP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCesAppSpecsList().hashCode(); + } switch (contextCase_) { case 11: hash = (37 * hash) + FREE_FORM_CONTEXT_FIELD_NUMBER; @@ -1261,6 +1558,9 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetSuggestionDedupingConfigFieldBuilder(); + internalGetToolsetToolsFieldBuilder(); + internalGetCesToolSpecsFieldBuilder(); + internalGetCesAppSpecsFieldBuilder(); } } @@ -1301,6 +1601,27 @@ public Builder clear() { suggestionDedupingConfigBuilder_.dispose(); suggestionDedupingConfigBuilder_ = null; } + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + } else { + toolsetTools_ = null; + toolsetToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + } else { + cesToolSpecs_ = null; + cesToolSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + } else { + cesAppSpecs_ = null; + cesAppSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); contextCase_ = 0; context_ = null; foundationModelCase_ = 0; @@ -1332,6 +1653,7 @@ public com.google.cloud.dialogflow.v2beta1.Generator build() { public com.google.cloud.dialogflow.v2beta1.Generator buildPartial() { com.google.cloud.dialogflow.v2beta1.Generator result = new com.google.cloud.dialogflow.v2beta1.Generator(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1340,6 +1662,36 @@ public com.google.cloud.dialogflow.v2beta1.Generator buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.v2beta1.Generator result) { + if (toolsetToolsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = java.util.Collections.unmodifiableList(toolsetTools_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.toolsetTools_ = toolsetTools_; + } else { + result.toolsetTools_ = toolsetToolsBuilder_.build(); + } + if (cesToolSpecsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = java.util.Collections.unmodifiableList(cesToolSpecs_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.cesToolSpecs_ = cesToolSpecs_; + } else { + result.cesToolSpecs_ = cesToolSpecsBuilder_.build(); + } + if (cesAppSpecsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = java.util.Collections.unmodifiableList(cesAppSpecs_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.cesAppSpecs_ = cesAppSpecs_; + } else { + result.cesAppSpecs_ = cesAppSpecsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.Generator result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1444,6 +1796,87 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.Generator other) { if (other.hasSuggestionDedupingConfig()) { mergeSuggestionDedupingConfig(other.getSuggestionDedupingConfig()); } + if (toolsetToolsBuilder_ == null) { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetTools_.isEmpty()) { + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureToolsetToolsIsMutable(); + toolsetTools_.addAll(other.toolsetTools_); + } + onChanged(); + } + } else { + if (!other.toolsetTools_.isEmpty()) { + if (toolsetToolsBuilder_.isEmpty()) { + toolsetToolsBuilder_.dispose(); + toolsetToolsBuilder_ = null; + toolsetTools_ = other.toolsetTools_; + bitField0_ = (bitField0_ & ~0x00001000); + toolsetToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetToolsFieldBuilder() + : null; + } else { + toolsetToolsBuilder_.addAllMessages(other.toolsetTools_); + } + } + } + if (cesToolSpecsBuilder_ == null) { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecs_.isEmpty()) { + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.addAll(other.cesToolSpecs_); + } + onChanged(); + } + } else { + if (!other.cesToolSpecs_.isEmpty()) { + if (cesToolSpecsBuilder_.isEmpty()) { + cesToolSpecsBuilder_.dispose(); + cesToolSpecsBuilder_ = null; + cesToolSpecs_ = other.cesToolSpecs_; + bitField0_ = (bitField0_ & ~0x00002000); + cesToolSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesToolSpecsFieldBuilder() + : null; + } else { + cesToolSpecsBuilder_.addAllMessages(other.cesToolSpecs_); + } + } + } + if (cesAppSpecsBuilder_ == null) { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecs_.isEmpty()) { + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.addAll(other.cesAppSpecs_); + } + onChanged(); + } + } else { + if (!other.cesAppSpecs_.isEmpty()) { + if (cesAppSpecsBuilder_.isEmpty()) { + cesAppSpecsBuilder_.dispose(); + cesAppSpecsBuilder_ = null; + cesAppSpecs_ = other.cesAppSpecs_; + bitField0_ = (bitField0_ & ~0x00004000); + cesAppSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCesAppSpecsFieldBuilder() + : null; + } else { + cesAppSpecsBuilder_.addAllMessages(other.cesAppSpecs_); + } + } + } switch (other.getContextCase()) { case FREE_FORM_CONTEXT: { @@ -1586,6 +2019,47 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 186 + case 218: + { + com.google.cloud.dialogflow.v2beta1.ToolsetTool m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.parser(), + extensionRegistry); + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(m); + } else { + toolsetToolsBuilder_.addMessage(m); + } + break; + } // case 218 + case 226: + { + com.google.cloud.dialogflow.v2beta1.CesToolSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.parser(), + extensionRegistry); + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(m); + } else { + cesToolSpecsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.dialogflow.v2beta1.CesAppSpec m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.parser(), extensionRegistry); + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(m); + } else { + cesAppSpecsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3910,6 +4384,1229 @@ public Builder clearSuggestionDedupingConfig() { return suggestionDedupingConfigBuilder_; } + private java.util.List toolsetTools_ = + java.util.Collections.emptyList(); + + private void ensureToolsetToolsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + toolsetTools_ = + new java.util.ArrayList(toolsetTools_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder> + toolsetToolsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetToolsList() { + if (toolsetToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsetTools_); + } else { + return toolsetToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetToolsCount() { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.size(); + } else { + return toolsetToolsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools(com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool value) { + if (toolsetToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, value); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsetTools( + int index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder builderForValue) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsetTools( + java.lang.Iterable values) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsetTools_); + onChanged(); + } else { + toolsetToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTools() { + if (toolsetToolsBuilder_ == null) { + toolsetTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + toolsetToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsetTools(int index) { + if (toolsetToolsBuilder_ == null) { + ensureToolsetToolsIsMutable(); + toolsetTools_.remove(index); + onChanged(); + } else { + toolsetToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder getToolsetToolsBuilder( + int index) { + return internalGetToolsetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder( + int index) { + if (toolsetToolsBuilder_ == null) { + return toolsetTools_.get(index); + } else { + return toolsetToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsOrBuilderList() { + if (toolsetToolsBuilder_ != null) { + return toolsetToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsetTools_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder addToolsetToolsBuilder() { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder addToolsetToolsBuilder( + int index) { + return internalGetToolsetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetToolsBuilderList() { + return internalGetToolsetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder> + internalGetToolsetToolsFieldBuilder() { + if (toolsetToolsBuilder_ == null) { + toolsetToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ToolsetTool, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder, + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder>( + toolsetTools_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + toolsetTools_ = null; + } + return toolsetToolsBuilder_; + } + + private java.util.List cesToolSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesToolSpecsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + cesToolSpecs_ = + new java.util.ArrayList(cesToolSpecs_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder> + cesToolSpecsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesToolSpecsList() { + if (cesToolSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } else { + return cesToolSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesToolSpecsCount() { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.size(); + } else { + return cesToolSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs(com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec value) { + if (cesToolSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, value); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesToolSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder builderForValue) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesToolSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesToolSpecs( + java.lang.Iterable values) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesToolSpecs_); + onChanged(); + } else { + cesToolSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesToolSpecs() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + cesToolSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesToolSpecs(int index) { + if (cesToolSpecsBuilder_ == null) { + ensureCesToolSpecsIsMutable(); + cesToolSpecs_.remove(index); + onChanged(); + } else { + cesToolSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder getCesToolSpecsBuilder( + int index) { + return internalGetCesToolSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder( + int index) { + if (cesToolSpecsBuilder_ == null) { + return cesToolSpecs_.get(index); + } else { + return cesToolSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsOrBuilderList() { + if (cesToolSpecsBuilder_ != null) { + return cesToolSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesToolSpecs_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder addCesToolSpecsBuilder() { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder addCesToolSpecsBuilder( + int index) { + return internalGetCesToolSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.CesToolSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesToolSpecsBuilderList() { + return internalGetCesToolSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder> + internalGetCesToolSpecsFieldBuilder() { + if (cesToolSpecsBuilder_ == null) { + cesToolSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesToolSpec, + com.google.cloud.dialogflow.v2beta1.CesToolSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder>( + cesToolSpecs_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + cesToolSpecs_ = null; + } + return cesToolSpecsBuilder_; + } + + private java.util.List cesAppSpecs_ = + java.util.Collections.emptyList(); + + private void ensureCesAppSpecsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + cesAppSpecs_ = + new java.util.ArrayList(cesAppSpecs_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder> + cesAppSpecsBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCesAppSpecsList() { + if (cesAppSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } else { + return cesAppSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCesAppSpecsCount() { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.size(); + } else { + return cesAppSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs(int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCesAppSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs(int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec value) { + if (cesAppSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, value); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCesAppSpecs( + int index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder builderForValue) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + cesAppSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCesAppSpecs( + java.lang.Iterable values) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cesAppSpecs_); + onChanged(); + } else { + cesAppSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCesAppSpecs() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + cesAppSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCesAppSpecs(int index) { + if (cesAppSpecsBuilder_ == null) { + ensureCesAppSpecsIsMutable(); + cesAppSpecs_.remove(index); + onChanged(); + } else { + cesAppSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder getCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder( + int index) { + if (cesAppSpecsBuilder_ == null) { + return cesAppSpecs_.get(index); + } else { + return cesAppSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsOrBuilderList() { + if (cesAppSpecsBuilder_ != null) { + return cesAppSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cesAppSpecs_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder addCesAppSpecsBuilder() { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder addCesAppSpecsBuilder(int index) { + return internalGetCesAppSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.v2beta1.CesAppSpec.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCesAppSpecsBuilderList() { + return internalGetCesAppSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder> + internalGetCesAppSpecsFieldBuilder() { + if (cesAppSpecsBuilder_ == null) { + cesAppSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.CesAppSpec, + com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder, + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder>( + cesAppSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + cesAppSpecs_ = null; + } + return cesAppSpecsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.Generator) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java index 9e555f64e8c9..dc22c521bd97 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorOrBuilder.java @@ -516,6 +516,204 @@ public interface GeneratorOrBuilder com.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigOrBuilder getSuggestionDedupingConfigOrBuilder(); + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetToolsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolsetTool getToolsetTools(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetToolsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsetToolsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES toolset specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ToolsetTool toolset_tools = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder getToolsetToolsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesToolSpecsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesToolSpec getCesToolSpecs(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesToolSpecsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesToolSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES tool specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesToolSpec ces_tool_specs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesToolSpecOrBuilder getCesToolSpecsOrBuilder(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCesAppSpecsList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesAppSpec getCesAppSpecs(int index); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCesAppSpecsCount(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCesAppSpecsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Optional. List of CES app specs that the generator can choose from.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.CesAppSpec ces_app_specs = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.CesAppSpecOrBuilder getCesAppSpecsOrBuilder(int index); + com.google.cloud.dialogflow.v2beta1.Generator.ContextCase getContextCase(); com.google.cloud.dialogflow.v2beta1.Generator.FoundationModelCase getFoundationModelCase(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java index b77bcb1c8720..540fe43f3d50 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorProto.java @@ -178,14 +178,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032@g" - + "oogle/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto\032/google/cloud/di" - + "alogflow/v2beta1/tool_call.proto\032\033google/protobuf/empty.proto\032" + + "oogle/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto\032-google/cloud/di" + + "alogflow/v2beta1/ces_app.proto\032.google/cloud/dialogflow/v2beta1/ces_tool.proto\032/" + + "google/cloud/dialogflow/v2beta1/tool_call.proto\032-google/cloud/dialogflow/v2beta1" + + "/toolset.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\274\001\n" + "\026CreateGeneratorRequest\022C\n" + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022B\n" - + "\tgenerator\030\002 " - + "\001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + + "\tgenerator\030\002" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\022\031\n" + "\014generator_id\030\003 \001(\tB\003\340A\001\"P\n" + "\023GetGeneratorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" @@ -202,13 +204,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#dialogflow.googleapis.com/Generator\"\222\001\n" + "\026UpdateGeneratorRequest\022B\n" - + "\tgenerator\030\001 \001(\0132*.google" - + ".cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + + "\tgenerator\030\001" + + " \001(\0132*.google.cloud.dialogflow.v2beta1.GeneratorB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\214\002\n" + "\014MessageEntry\022E\n" - + "\004role\030\001" - + " \001(\01622.google.cloud.dialogflow.v2beta1.MessageEntry.RoleB\003\340A\001\022\021\n" + + "\004role\030\001 \001(\01622.google.clo" + + "ud.dialogflow.v2beta1.MessageEntry.RoleB\003\340A\001\022\021\n" + "\004text\030\002 \001(\tB\003\340A\001\022\032\n\r" + "language_code\030\003 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"P\n" @@ -218,20 +220,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017AUTOMATED_AGENT\020\002\022\014\n" + "\010END_USER\020\003\"b\n" + "\023ConversationContext\022K\n" - + "\017message_entries\030\001" - + " \003(\0132-.google.cloud.dialogflow.v2beta1.MessageEntryB\003\340A\001\"v\n" + + "\017message_entries\030\001 \003(\0132-.go" + + "ogle.cloud.dialogflow.v2beta1.MessageEntryB\003\340A\001\"v\n" + "\030SummarizationSectionList\022Z\n" - + "\026summarization_sections\030\001" - + " \003(\01325.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\"\264\003\n" + + "\026summarization_sections\030\001 \003(\01325.google.clo" + + "ud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\"\264\003\n" + "\016FewShotExample\022W\n" - + "\024conversation_context\030\003 \001(\01324.goo" - + "gle.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" - + "extra_info\030\004 \003(\0132>.goog" - + "le.cloud.dialogflow.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" - + "\032summarization_section_list\030\006 \001(\01329.google.cloud.dialog" - + "flow.v2beta1.SummarizationSectionListH\000\022I\n" - + "\006output\030\007" - + " \001(\01324.google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + + "\024conversation_context\030\003" + + " \001(\01324.google.cloud.dialogflow.v2beta1.ConversationContextB\003\340A\001\022W\n\n" + + "extra_info\030\004 \003(\0132>.google.cloud.dialogflo" + + "w.v2beta1.FewShotExample.ExtraInfoEntryB\003\340A\001\022_\n" + + "\032summarization_section_list\030\006 \001(\013" + + "29.google.cloud.dialogflow.v2beta1.SummarizationSectionListH\000\022I\n" + + "\006output\030\007 \001(\01324." + + "google.cloud.dialogflow.v2beta1.GeneratorSuggestionB\003\340A\002\0320\n" + "\016ExtraInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\022\n" @@ -247,15 +249,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_top_p\"\310\001\n" + "\024AgentCoachingContext\022!\n" + "\024overarching_guidance\030\007 \001(\tB\003\340A\001\022T\n" - + "\014instructions\030\001 \003(\01329.google.cloud" - + ".dialogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022\024\n" + + "\014instructions\030\001" + + " \003(\01329.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022\024\n" + "\007version\030\002 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\t \001(\tB\003\340A\001\"\341\002\n" + "\024SummarizationSection\022\020\n" + "\003key\030\001 \001(\tB\003\340A\001\022\027\n\n" + "definition\030\002 \001(\tB\003\340A\001\022M\n" - + "\004type\030\003 \001(\0162:.google.cl" - + "oud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + + "\004type\030\003" + + " \001(\0162:.google.cloud.dialogflow.v2beta1.SummarizationSection.TypeB\003\340A\001\"\316\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + "\tSITUATION\020\001\022\n\n" @@ -269,25 +271,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ACTION_CONCISE\020\n" + "\"\374\001\n" + "\024SummarizationContext\022Z\n" - + "\026summarization_sections\030\001 \003(\0132" - + "5.google.cloud.dialogflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" - + "\021few_shot_examples\030\002" - + " \003(\0132/.google.cloud.dialogflow.v2beta1.FewShotExampleB\003\340A\001\022\024\n" + + "\026summarization_sections\030\001 \003(\01325.google.cloud.dia" + + "logflow.v2beta1.SummarizationSectionB\003\340A\001\022O\n" + + "\021few_shot_examples\030\002 \003(\0132/.google.cl" + + "oud.dialogflow.v2beta1.FewShotExampleB\003\340A\001\022\024\n" + "\007version\030\003 \001(\tB\003\340A\001\022!\n" + "\024output_language_code\030\006 \001(\tB\003\340A\001\"$\n" + "\017FreeFormContext\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\001\"\244\007\n" + + "\004text\030\001 \001(\tB\003\340A\001\"\202\t\n" + "\tGenerator\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022M\n" - + "\021free_form_context\030\013" - + " \001(\01320.google.cloud.dialogflow.v2beta1.FreeFormContextH\000\022W\n" - + "\026agent_coaching_context\030\014" - + " \001(\01325.google.cloud.dialogflow.v2beta1.AgentCoachingContextH\000\022V\n" + + "\021free_form_context\030\013 \001(\01320.google.clou" + + "d.dialogflow.v2beta1.FreeFormContextH\000\022W\n" + + "\026agent_coaching_context\030\014 \001(\01325.google." + + "cloud.dialogflow.v2beta1.AgentCoachingContextH\000\022V\n" + "\025summarization_context\030\r" + " \001(\01325.google.cloud.dialogflow.v2beta1.SummarizationContextH\000\022U\n" - + "\023inference_parameter\030\004 \001(\01323.google.cloud.di" - + "alogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + + "\023inference_parameter\030\004" + + " \001(\01323.google.cloud.dialogflow.v2beta1.InferenceParameterB\003\340A\001\022I\n\r" + "trigger_event\030\005" + " \001(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\001\022\036\n" + "\017published_model\030\017 \001(\tB\003\340A\001H\001\0224\n" @@ -295,61 +297,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + "\005tools\030\016 \003(\tB&\340A\001\372A \n" + "\036dialogflow.googleapis.com/Tool\022b\n" - + "\032suggestion_deduping_config\030\027 \001(\01329.google.clou" - + "d.dialogflow.v2beta1.SuggestionDedupingConfigB\003\340A\001:\177\352A|\n" - + "#dialogflow.googleapis.c" - + "om/Generator\022>projects/{project}/locations/{location}/generators/{generator}*\n" + + "\032suggestion_deduping_config\030\027" + + " \001(\01329.google.cloud.dialogflow.v2beta1.SuggestionDedupingConfigB\003\340A\001\022H\n\r" + + "toolset_tools\030\033" + + " \003(\0132,.google.cloud.dialogflow.v2beta1.ToolsetToolB\003\340A\001\022I\n" + + "\016ces_tool_specs\030\034" + + " \003(\0132,.google.cloud.dialogflow.v2beta1.CesToolSpecB\003\340A\001\022G\n\r" + + "ces_app_specs\030\035" + + " \003(\0132+.google.cloud.dialogflow.v2beta1.CesAppSpecB\003\340A\001:\177\352A|\n" + + "#dialogflow.googleapis.com/Generator\022>projects/{project}/loc" + + "ations/{location}/generators/{generator}*\n" + "generators2\tgeneratorB\t\n" + "\007contextB\022\n" + "\020foundation_model\"+\n" + "\022FreeFormSuggestion\022\025\n" + "\010response\030\001 \001(\tB\003\340A\002\"\263\001\n" + "\021SummarySuggestion\022`\n" - + "\020summary_sections\030\001 \003(\0132A.google.cloud.d" - + "ialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + + "\020summary_sections\030\001 \003(\0132A.google.clo" + + "ud.dialogflow.v2beta1.SummarySuggestion.SummarySectionB\003\340A\002\032<\n" + "\016SummarySection\022\024\n" + "\007section\030\001 \001(\tB\003\340A\002\022\024\n" + "\007summary\030\002 \001(\tB\003\340A\002\"\355\t\n" + "\027AgentCoachingSuggestion\022_\n" - + "\027applicable_instructions\030\001 \003(\01329.google.cloud.dialog" - + "flow.v2beta1.AgentCoachingInstructionB\003\340A\001\022u\n" - + "\030agent_action_suggestions\030\002 \003(\0132N.g" - + "oogle.cloud.dialogflow.v2beta1.AgentCoac" - + "hingSuggestion.AgentActionSuggestionB\003\340A\001\022f\n" - + "\020sample_responses\030\003 \003(\0132G.google.clo" - + "ud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + + "\027applicable_instructions\030\001 \003(\01329.google.cloud.di" + + "alogflow.v2beta1.AgentCoachingInstructionB\003\340A\001\022u\n" + + "\030agent_action_suggestions\030\002 \003(\0132N.google.cloud.dialogflow.v2beta1.Agent" + + "CoachingSuggestion.AgentActionSuggestionB\003\340A\001\022f\n" + + "\020sample_responses\030\003 \003(\0132G.google" + + ".cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SampleResponseB\003\340A\001\032+\n" + "\007Sources\022 \n" + "\023instruction_indexes\030\002 \003(\005B\003\340A\003\032\350\002\n" + "\024DuplicateCheckResult\022\205\001\n" - + "\025duplicate_suggestions\030\001 \003(\0132a.google.cloud.dialogflow.v2beta" - + "1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\307\001\n" + + "\025duplicate_suggestions\030\001 \003(\0132a.google.cloud.dialogflow.v2" + + "beta1.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestionB\003\340A\003\032\307\001\n" + "\023DuplicateSuggestion\022\032\n\r" + "answer_record\030\001 \001(\tB\003\340A\003\022V\n" - + "\007sources\030\002 \001(\0132@.google.cloud.dial" - + "ogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + + "\007sources\030\002 \001(\0132@.google.cloud." + + "dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022\035\n" + "\020suggestion_index\030\003 \001(\005B\003\340A\003\022\035\n" + "\020similarity_score\030\004 \001(\002B\003\340A\003\032\376\001\n" + "\025AgentActionSuggestion\022\031\n" + "\014agent_action\030\001 \001(\tB\003\340A\001\022V\n" - + "\007sources\030\002 \001(\0132@.google.cloud.d" - + "ialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" - + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogflow.v2beta1" - + ".AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\370\001\n" + + "\007sources\030\002 \001(\0132@.google.clo" + + "ud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogflow.v2b" + + "eta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\032\370\001\n" + "\016SampleResponse\022\032\n\r" + "response_text\030\001 \001(\tB\003\340A\001\022V\n" - + "\007sources\030\002 \001(\0132@.goo" - + "gle.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" - + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dialogf" - + "low.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\274\004\n" + + "\007sources\030\002 \001(\0132@" + + ".google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.SourcesB\003\340A\003\022r\n" + + "\026duplicate_check_result\030\003 \001(\0132M.google.cloud.dia" + + "logflow.v2beta1.AgentCoachingSuggestion.DuplicateCheckResultB\003\340A\003\"\274\004\n" + "\023GeneratorSuggestion\022X\n" - + "\024free_form_suggestion\030\001 \001(\01323.go" - + "ogle.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" - + "\022summary_suggestion\030\002 " - + "\001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000\022b\n" - + "\031agent_coaching_suggestion\030\003 \001(\01328.google.cloud.dialogf" - + "low.v2beta1.AgentCoachingSuggestionB\003\340A\001H\000\022^\n" - + "\016tool_call_info\030\t \003(\0132A.google.clou" - + "d.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\241\001\n" + + "\024free_form_suggestion\030\001 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.FreeFormSuggestionB\003\340A\001H\000\022U\n" + + "\022summary_suggestion\030\002" + + " \001(\01322.google.cloud.dialogflow.v2beta1.SummarySuggestionB\003\340A\001H\000\022b\n" + + "\031agent_coaching_suggestion\030\003 \001(\01328.google.cloud.dia" + + "logflow.v2beta1.AgentCoachingSuggestionB\003\340A\001H\000\022^\n" + + "\016tool_call_info\030\t \003(\0132A.google." + + "cloud.dialogflow.v2beta1.GeneratorSuggestion.ToolCallInfoB\003\340A\001\032\241\001\n" + "\014ToolCallInfo\022A\n" + "\ttool_call\030\001" + " \001(\0132).google.cloud.dialogflow.v2beta1.ToolCallB\003\340A\002\022N\n" @@ -360,13 +367,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017enable_deduping\030\001 \001(\010B\003\340A\001\022!\n" + "\024similarity_threshold\030\002 \001(\002B\003\340A\001\"\307\004\n" + "\013RaiSettings\022\\\n" - + "\024rai_category_configs\030\001 \003(\0132>.google.cloud.dialogflo" - + "w.v2beta1.RaiSettings.RaiCategoryConfig\032\331\003\n" + + "\024rai_category_configs\030\001 \003(\0132>.google.cloud.dialo" + + "gflow.v2beta1.RaiSettings.RaiCategoryConfig\032\331\003\n" + "\021RaiCategoryConfig\022a\n" - + "\010category\030\001 \001(\0162J.google.cloud.dialogflow.v2beta1.RaiSet" - + "tings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022o\n" - + "\021sensitivity_level\030\002 \001(\0162O.google.clo" - + "ud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + + "\010category\030\001 \001(\0162J.google.cloud.dialogflow.v2beta1.Ra" + + "iSettings.RaiCategoryConfig.RaiCategoryB\003\340A\001\022o\n" + + "\021sensitivity_level\030\002 \001(\0162O.google" + + ".cloud.dialogflow.v2beta1.RaiSettings.RaiCategoryConfig.SensitivityLevelB\003\340A\001\"z\n" + "\013RaiCategory\022\034\n" + "\030RAI_CATEGORY_UNSPECIFIED\020\000\022\025\n" + "\021DANGEROUS_CONTENT\020\001\022\025\n" @@ -386,35 +393,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CUSTOMER_MESSAGE\020\003\022\021\n\r" + "AGENT_MESSAGE\020\0042\326\t\n\n" + "Generators\022\225\002\n" - + "\017CreateGenerator\0227.google.cloud.dialogflow.v2beta1.CreateGe" - + "neratorRequest\032*.google.cloud.dialogflow" - + ".v2beta1.Generator\"\234\001\332A\035parent,generator" - + ",generator_id\202\323\344\223\002v\"3/v2beta1/{parent=projects/*/locations/*}/generators:" + + "\017CreateGenerator\0227.google.cloud.dialogflow.v2beta1.Crea" + + "teGeneratorRequest\032*.google.cloud.dialog" + + "flow.v2beta1.Generator\"\234\001\332A\035parent,gener" + + "ator,generator_id\202\323\344\223\002v\"3/v2beta1/{parent=projects/*/locations/*}/generators:" + "\tgeneratorZ4\"\'/v2beta1/{parent=projects/*}/generators:\tgenerator\022\264\001\n" - + "\014GetGenerator\0224.google.cloud.dialogflow.v2beta1.GetGenerato" - + "rRequest\032*.google.cloud.dialogflow.v2bet" - + "a1.Generator\"B\332A\004name\202\323\344\223\0025\0223/v2beta1/{n" - + "ame=projects/*/locations/*/generators/*}\022\362\001\n" - + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest\0327.go" - + "ogle.cloud.dialogflow.v2beta1.ListGenera" - + "torsResponse\"o\332A\006parent\202\323\344\223\002`\0223/v2beta1/" - + "{parent=projects/*/locations/*}/generato" - + "rsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" - + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.DeleteGeneratorReque" - + "st\032\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\002" - + "5*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" - + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2beta1.UpdateGener" - + "atorRequest\032*.google.cloud.dialogflow.v2" - + "beta1.Generator\"h\332A\025generator,update_mas" - + "k\202\323\344\223\002J2=/v2beta1/{generator.name=projects/*/locations/*/generators/*}:" - + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogflowB\240\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcloud.google.com/" - + "go/dialogflow/apiv2beta1/dialogflowpb;di" - + "alogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/location" - + "s/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\014GetGenerator\0224.google.cloud.dialogflow.v2beta1.GetGene" + + "ratorRequest\032*.google.cloud.dialogflow.v" + + "2beta1.Generator\"B\332A\004name\202\323\344\223\0025\0223/v2beta" + + "1/{name=projects/*/locations/*/generators/*}\022\362\001\n" + + "\016ListGenerators\0226.google.cloud.dialogflow.v2beta1.ListGeneratorsRequest\032" + + "7.google.cloud.dialogflow.v2beta1.ListGe" + + "neratorsResponse\"o\332A\006parent\202\323\344\223\002`\0223/v2be" + + "ta1/{parent=projects/*/locations/*}/gene" + + "ratorsZ)\022\'/v2beta1/{parent=projects/*}/generators\022\246\001\n" + + "\017DeleteGenerator\0227.google.cloud.dialogflow.v2beta1.DeleteGeneratorR" + + "equest\032\026.google.protobuf.Empty\"B\332A\004name\202" + + "\323\344\223\0025*3/v2beta1/{name=projects/*/locations/*/generators/*}\022\340\001\n" + + "\017UpdateGenerator\0227.google.cloud.dialogflow.v2beta1.UpdateG" + + "eneratorRequest\032*.google.cloud.dialogflo" + + "w.v2beta1.Generator\"h\332A\025generator,update" + + "_mask\202\323\344\223\002J2=/v2beta1/{generator.name=projects/*/locations/*/generators/*}:" + + "\tgenerator\032x\312A\031dialogflow.googleapis.com\322AYht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form,https://www.googleapis.com/auth/dialogflowB\240\002\n" + + "#com.google.cloud.dialogflow.v2beta1B\016GeneratorProtoP\001ZCcloud.google." + + "com/go/dialogflow/apiv2beta1/dialogflowp" + + "b;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/loca" + + "tions/{location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -425,7 +432,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.CesAppProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.CesToolProto.getDescriptor(), com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolsetProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -580,6 +590,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Tools", "SuggestionDedupingConfig", + "ToolsetTools", + "CesToolSpecs", + "CesAppSpecs", "Context", "FoundationModel", }); @@ -712,7 +725,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.AgentCoachingInstructionProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.CesAppProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.CesToolProto.getDescriptor(); com.google.cloud.dialogflow.v2beta1.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolsetProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index ff827f4db851..b46be1fef9fa 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -17097,6 +17097,40 @@ public interface MessageAnalysisConfigOrBuilder * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); + + /** + * + * + *
                                                                                                                                          +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +     *
                                                                                                                                          +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +     * positive, negative, or neutral.
                                                                                                                                          +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                          +     * For
                                                                                                                                          +     * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                          +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + boolean getEnableSentimentAnalysisV3(); } /** @@ -17211,6 +17245,46 @@ public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER = 5; + private boolean enableSentimentAnalysisV3_ = false; + + /** + * + * + *
                                                                                                                                          +     * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +     * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +     * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +     *
                                                                                                                                          +     * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +     * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +     * positive, negative, or neutral.
                                                                                                                                          +     * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +     * For
                                                                                                                                          +     * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                          +     * For
                                                                                                                                          +     * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                          +     * method, result will be in
                                                                                                                                          +     * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                          +     * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +     * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17231,6 +17305,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableSentimentAnalysis_ != false) { output.writeBool(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + output.writeBool(5, enableSentimentAnalysisV3_); + } getUnknownFields().writeTo(output); } @@ -17246,6 +17323,10 @@ public int getSerializedSize() { if (enableSentimentAnalysis_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableSentimentAnalysis_); } + if (enableSentimentAnalysisV3_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableSentimentAnalysisV3_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17266,6 +17347,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableEntityExtraction() != other.getEnableEntityExtraction()) return false; if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; + if (getEnableSentimentAnalysisV3() != other.getEnableSentimentAnalysisV3()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17281,6 +17363,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntityExtraction()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_V3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysisV3()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17448,6 +17532,7 @@ public Builder clear() { bitField0_ = 0; enableEntityExtraction_ = false; enableSentimentAnalysis_ = false; + enableSentimentAnalysisV3_ = false; return this; } @@ -17498,6 +17583,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.enableSentimentAnalysis_ = enableSentimentAnalysis_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableSentimentAnalysisV3_ = enableSentimentAnalysisV3_; + } } @java.lang.Override @@ -17526,6 +17614,9 @@ public Builder mergeFrom( if (other.getEnableSentimentAnalysis() != false) { setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); } + if (other.getEnableSentimentAnalysisV3() != false) { + setEnableSentimentAnalysisV3(other.getEnableSentimentAnalysisV3()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17564,6 +17655,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + enableSentimentAnalysisV3_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17767,6 +17864,128 @@ public Builder clearEnableSentimentAnalysis() { return this; } + private boolean enableSentimentAnalysisV3_; + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableSentimentAnalysisV3. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysisV3() { + return enableSentimentAnalysisV3_; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableSentimentAnalysisV3 to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysisV3(boolean value) { + + enableSentimentAnalysisV3_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. Enables sentiment analysis for audio input and conversation
                                                                                                                                          +       * messages. If unspecified, defaults to false. If this flag is set to true,
                                                                                                                                          +       * other 'enable_sentiment_analysis' fields will be ignored.
                                                                                                                                          +       *
                                                                                                                                          +       * Sentiment analysis inspects user input and identifies the prevailing
                                                                                                                                          +       * subjective opinion, especially to determine a user's attitude as
                                                                                                                                          +       * positive, negative, or neutral.
                                                                                                                                          +       * https://cloud.google.com/natural-language/docs/basics#sentiment_analysis
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message].
                                                                                                                                          +       * For
                                                                                                                                          +       * [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message]
                                                                                                                                          +       * For
                                                                                                                                          +       * [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]
                                                                                                                                          +       * method, result will be in
                                                                                                                                          +       * [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages]
                                                                                                                                          +       * If Pub/Sub notification is configured, result will be in
                                                                                                                                          +       * [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload].
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool enable_sentiment_analysis_v3 = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysisV3() { + bitField0_ = (bitField0_ & ~0x00000004); + enableSentimentAnalysisV3_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java new file mode 100644 index 000000000000..4cb45aa15751 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfo.java @@ -0,0 +1,2441 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Debug information related to ingested context reference.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo} + */ +@com.google.protobuf.Generated +public final class IngestedContextReferenceDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + IngestedContextReferenceDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedContextReferenceDebugInfo"); + } + + // Use IngestedContextReferenceDebugInfo.newBuilder() to construct. + private IngestedContextReferenceDebugInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedContextReferenceDebugInfo() { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder.class); + } + + public interface IngestedParameterDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + java.lang.String getParameter(); + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + com.google.protobuf.ByteString getParameterBytes(); + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + int getIngestionStatusValue(); + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + .IngestionStatus + getIngestionStatus(); + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to ingested parameters from context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class IngestedParameterDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + IngestedParameterDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestedParameterDebugInfo"); + } + + // Use IngestedParameterDebugInfo.newBuilder() to construct. + private IngestedParameterDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestedParameterDebugInfo() { + parameter_ = ""; + ingestionStatus_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +     * Enum representing the various states of parameter ingestion.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus} + */ + public enum IngestionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + INGESTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was successfully ingested.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + INGESTION_STATUS_SUCCEEDED(1), + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE(2), + /** + * + * + *
                                                                                                                                          +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + INGESTION_STATUS_PARSE_FAILED(3), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference had an unexpected number of
                                                                                                                                          +       * content entries as Context reference should only have one entry.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + INGESTION_STATUS_INVALID_ENTRY(4), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference content was not in the expected
                                                                                                                                          +       * format (e.g., JSON).
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + INGESTION_STATUS_INVALID_FORMAT(5), + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference language does not match the
                                                                                                                                          +       * conversation language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + INGESTION_STATUS_LANGUAGE_MISMATCH(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionStatus"); + } + + /** + * + * + *
                                                                                                                                          +       * Default value, indicates that the ingestion status is not specified.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_UNSPECIFIED = 0; + */ + public static final int INGESTION_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was successfully ingested.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_SUCCEEDED = 1; + */ + public static final int INGESTION_STATUS_SUCCEEDED_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the parameter was not available for ingestion.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + */ + public static final int INGESTION_STATUS_CONTEXT_NOT_AVAILABLE_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +       * Indicates that there was a failure parsing the parameter content.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_PARSE_FAILED = 3; + */ + public static final int INGESTION_STATUS_PARSE_FAILED_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference had an unexpected number of
                                                                                                                                          +       * content entries as Context reference should only have one entry.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_ENTRY = 4; + */ + public static final int INGESTION_STATUS_INVALID_ENTRY_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference content was not in the expected
                                                                                                                                          +       * format (e.g., JSON).
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_INVALID_FORMAT = 5; + */ + public static final int INGESTION_STATUS_INVALID_FORMAT_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the context reference language does not match the
                                                                                                                                          +       * conversation language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + */ + public static final int INGESTION_STATUS_LANGUAGE_MISMATCH_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IngestionStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static IngestionStatus forNumber(int value) { + switch (value) { + case 0: + return INGESTION_STATUS_UNSPECIFIED; + case 1: + return INGESTION_STATUS_SUCCEEDED; + case 2: + return INGESTION_STATUS_CONTEXT_NOT_AVAILABLE; + case 3: + return INGESTION_STATUS_PARSE_FAILED; + case 4: + return INGESTION_STATUS_INVALID_ENTRY; + case 5: + return INGESTION_STATUS_INVALID_FORMAT; + case 6: + return INGESTION_STATUS_LANGUAGE_MISMATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngestionStatus findValueByNumber(int number) { + return IngestionStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IngestionStatus[] VALUES = values(); + + public static IngestionStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IngestionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus) + } + + public static final int PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +     * The name of the parameter in the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INGESTION_STATUS_FIELD_NUMBER = 2; + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                          +     * The ingestion status for this specific parameter.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + result = + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, ingestionStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parameter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parameter_); + } + if (ingestionStatus_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.INGESTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, ingestionStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other = + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + obj; + + if (!getParameter().equals(other.getParameter())) return false; + if (ingestionStatus_ != other.ingestionStatus_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + ingestionStatus_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to ingested parameters from context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameter_ = ""; + ingestionStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + build() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ingestionStatus_ = ingestionStatus_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()) return this; + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.ingestionStatus_ != 0) { + setIngestionStatusValue(other.getIngestionStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + ingestionStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parameter_ = ""; + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @param value The parameter to set. + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the parameter in the context reference.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string parameter = 1; + * + * @param value The bytes for parameter to set. + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int ingestionStatus_ = 0; + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The enum numeric value on the wire for ingestionStatus. + */ + @java.lang.Override + public int getIngestionStatusValue() { + return ingestionStatus_; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The enum numeric value on the wire for ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatusValue(int value) { + ingestionStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return The ingestionStatus. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + getIngestionStatus() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + result = + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.forNumber(ingestionStatus_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @param value The ingestionStatus to set. + * @return This builder for chaining. + */ + public Builder setIngestionStatus( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.IngestionStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + ingestionStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The ingestion status for this specific parameter.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearIngestionStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + ingestionStatus_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedParameterDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER = 1; + private boolean projectNotAllowlisted_ = false; + + /** + * + * + *
                                                                                                                                          +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +   * reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + public static final int CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER = 2; + private boolean contextReferenceRetrieved_ = false; + + /** + * + * + *
                                                                                                                                          +   * The status of context_reference retrieval from database.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + public static final int INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + return ingestedParametersDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public int getIngestedParametersDebugInfoCount() { + return ingestedParametersDebugInfo_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + return ingestedParametersDebugInfo_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (projectNotAllowlisted_ != false) { + output.writeBool(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + output.writeBool(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + output.writeMessage(3, ingestedParametersDebugInfo_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (projectNotAllowlisted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, projectNotAllowlisted_); + } + if (contextReferenceRetrieved_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contextReferenceRetrieved_); + } + for (int i = 0; i < ingestedParametersDebugInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, ingestedParametersDebugInfo_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) obj; + + if (getProjectNotAllowlisted() != other.getProjectNotAllowlisted()) return false; + if (getContextReferenceRetrieved() != other.getContextReferenceRetrieved()) return false; + if (!getIngestedParametersDebugInfoList().equals(other.getIngestedParametersDebugInfoList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_NOT_ALLOWLISTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProjectNotAllowlisted()); + hash = (37 * hash) + CONTEXT_REFERENCE_RETRIEVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContextReferenceRetrieved()); + if (getIngestedParametersDebugInfoCount() > 0) { + hash = (37 * hash) + INGESTED_PARAMETERS_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedParametersDebugInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to ingested context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectNotAllowlisted_ = false; + contextReferenceRetrieved_ = false; + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + } else { + ingestedParametersDebugInfo_ = null; + ingestedParametersDebugInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfo_; + } else { + result.ingestedParametersDebugInfo_ = ingestedParametersDebugInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectNotAllowlisted_ = projectNotAllowlisted_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contextReferenceRetrieved_ = contextReferenceRetrieved_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) return this; + if (other.getProjectNotAllowlisted() != false) { + setProjectNotAllowlisted(other.getProjectNotAllowlisted()); + } + if (other.getContextReferenceRetrieved() != false) { + setContextReferenceRetrieved(other.getContextReferenceRetrieved()); + } + if (ingestedParametersDebugInfoBuilder_ == null) { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfo_.isEmpty()) { + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.addAll(other.ingestedParametersDebugInfo_); + } + onChanged(); + } + } else { + if (!other.ingestedParametersDebugInfo_.isEmpty()) { + if (ingestedParametersDebugInfoBuilder_.isEmpty()) { + ingestedParametersDebugInfoBuilder_.dispose(); + ingestedParametersDebugInfoBuilder_ = null; + ingestedParametersDebugInfo_ = other.ingestedParametersDebugInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + ingestedParametersDebugInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIngestedParametersDebugInfoFieldBuilder() + : null; + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(other.ingestedParametersDebugInfo_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + projectNotAllowlisted_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + contextReferenceRetrieved_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.parser(), + extensionRegistry); + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(m); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean projectNotAllowlisted_; + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + @java.lang.Override + public boolean getProjectNotAllowlisted() { + return projectNotAllowlisted_; + } + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @param value The projectNotAllowlisted to set. + * @return This builder for chaining. + */ + public Builder setProjectNotAllowlisted(boolean value) { + + projectNotAllowlisted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +     * reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectNotAllowlisted() { + bitField0_ = (bitField0_ & ~0x00000001); + projectNotAllowlisted_ = false; + onChanged(); + return this; + } + + private boolean contextReferenceRetrieved_; + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + @java.lang.Override + public boolean getContextReferenceRetrieved() { + return contextReferenceRetrieved_; + } + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @param value The contextReferenceRetrieved to set. + * @return This builder for chaining. + */ + public Builder setContextReferenceRetrieved(boolean value) { + + contextReferenceRetrieved_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The status of context_reference retrieval from database.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return This builder for chaining. + */ + public Builder clearContextReferenceRetrieved() { + bitField0_ = (bitField0_ & ~0x00000002); + contextReferenceRetrieved_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + + private void ensureIngestedParametersDebugInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + ingestedParametersDebugInfo_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo>(ingestedParametersDebugInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + ingestedParametersDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public int getIngestedParametersDebugInfoCount() { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.size(); + } else { + return ingestedParametersDebugInfoBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder setIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo + value) { + if (ingestedParametersDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, value); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addIngestedParametersDebugInfo( + int index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + builderForValue) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder addAllIngestedParametersDebugInfo( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + values) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ingestedParametersDebugInfo_); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder clearIngestedParametersDebugInfo() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public Builder removeIngestedParametersDebugInfo(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + ensureIngestedParametersDebugInfoIsMutable(); + ingestedParametersDebugInfo_.remove(index); + onChanged(); + } else { + ingestedParametersDebugInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + getIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index) { + if (ingestedParametersDebugInfoBuilder_ == null) { + return ingestedParametersDebugInfo_.get(index); + } else { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList() { + if (ingestedParametersDebugInfoBuilder_ != null) { + return ingestedParametersDebugInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ingestedParametersDebugInfo_); + } + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder() { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder + addIngestedParametersDebugInfoBuilder(int index) { + return internalGetIngestedParametersDebugInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * Parameters ingested from the context reference.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder> + getIngestedParametersDebugInfoBuilderList() { + return internalGetIngestedParametersDebugInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + internalGetIngestedParametersDebugInfoFieldBuilder() { + if (ingestedParametersDebugInfoBuilder_ == null) { + ingestedParametersDebugInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder>( + ingestedParametersDebugInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + ingestedParametersDebugInfo_ = null; + } + return ingestedParametersDebugInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestedContextReferenceDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java new file mode 100644 index 000000000000..12050537f9e6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IngestedContextReferenceDebugInfoOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface IngestedContextReferenceDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Indicates if the project is allowlisted to use ingested context
                                                                                                                                          +   * reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool project_not_allowlisted = 1; + * + * @return The projectNotAllowlisted. + */ + boolean getProjectNotAllowlisted(); + + /** + * + * + *
                                                                                                                                          +   * The status of context_reference retrieval from database.
                                                                                                                                          +   * 
                                                                                                                                          + * + * bool context_reference_retrieved = 2; + * + * @return The contextReferenceRetrieved. + */ + boolean getContextReferenceRetrieved(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfo> + getIngestedParametersDebugInfoList(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo + getIngestedParametersDebugInfo(int index); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + int getIngestedParametersDebugInfoCount(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder> + getIngestedParametersDebugInfoOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * Parameters ingested from the context reference.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .IngestedParameterDebugInfoOrBuilder + getIngestedParametersDebugInfoOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java index b031efae8f24..f15e0f14a638 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java @@ -5775,6 +5775,67 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } + public static final int KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getKnowledgeAssistDebugInfo() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5798,6 +5859,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getKnowledgeAssistDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -5817,6 +5881,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerRecord_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getKnowledgeAssistDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5842,6 +5911,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSuggestedQueryAnswer().equals(other.getSuggestedQueryAnswer())) return false; } if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (hasKnowledgeAssistDebugInfo() != other.hasKnowledgeAssistDebugInfo()) return false; + if (hasKnowledgeAssistDebugInfo()) { + if (!getKnowledgeAssistDebugInfo().equals(other.getKnowledgeAssistDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5863,6 +5936,10 @@ public int hashCode() { } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); + if (hasKnowledgeAssistDebugInfo()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6007,6 +6084,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSuggestedQueryFieldBuilder(); internalGetSuggestedQueryAnswerFieldBuilder(); + internalGetKnowledgeAssistDebugInfoFieldBuilder(); } } @@ -6025,6 +6103,11 @@ public Builder clear() { suggestedQueryAnswerBuilder_ = null; } answerRecord_ = ""; + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } return this; } @@ -6077,6 +6160,13 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAn if (((from_bitField0_ & 0x00000004) != 0)) { result.answerRecord_ = answerRecord_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistDebugInfo_ = + knowledgeAssistDebugInfoBuilder_ == null + ? knowledgeAssistDebugInfo_ + : knowledgeAssistDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -6104,6 +6194,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnsw bitField0_ |= 0x00000004; onChanged(); } + if (other.hasKnowledgeAssistDebugInfo()) { + mergeKnowledgeAssistDebugInfo(other.getKnowledgeAssistDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6150,6 +6243,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 58: + { + input.readMessage( + internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6756,6 +6857,226 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledgeAssistDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder> + knowledgeAssistDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + public boolean hasKnowledgeAssistDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getKnowledgeAssistDebugInfo() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } else { + return knowledgeAssistDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistDebugInfo_ = value; + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder setKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder builderForValue) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfo_ = builderForValue.build(); + } else { + knowledgeAssistDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder mergeKnowledgeAssistDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo value) { + if (knowledgeAssistDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistDebugInfo_ != null + && knowledgeAssistDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .getDefaultInstance()) { + getKnowledgeAssistDebugInfoBuilder().mergeFrom(value); + } else { + knowledgeAssistDebugInfo_ = value; + } + } else { + knowledgeAssistDebugInfoBuilder_.mergeFrom(value); + } + if (knowledgeAssistDebugInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public Builder clearKnowledgeAssistDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistDebugInfo_ = null; + if (knowledgeAssistDebugInfoBuilder_ != null) { + knowledgeAssistDebugInfoBuilder_.dispose(); + knowledgeAssistDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder + getKnowledgeAssistDebugInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder() { + if (knowledgeAssistDebugInfoBuilder_ != null) { + return knowledgeAssistDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance() + : knowledgeAssistDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug information related to Knowledge Assist feature.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder> + internalGetKnowledgeAssistDebugInfoFieldBuilder() { + if (knowledgeAssistDebugInfoBuilder_ == null) { + knowledgeAssistDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder>( + getKnowledgeAssistDebugInfo(), getParentForChildren(), isClean()); + knowledgeAssistDebugInfo_ = null; + } + return knowledgeAssistDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java index 4c218e927428..87a1ba54198e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswerOrBuilder.java @@ -150,4 +150,48 @@ public interface KnowledgeAssistAnswerOrBuilder * @return The bytes for answerRecord. */ com.google.protobuf.ByteString getAnswerRecordBytes(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return Whether the knowledgeAssistDebugInfo field is set. + */ + boolean hasKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + * + * @return The knowledgeAssistDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo getKnowledgeAssistDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder + getKnowledgeAssistDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java new file mode 100644 index 000000000000..c0831883f277 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java @@ -0,0 +1,4903 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Debug information related to Knowledge Assist feature.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ +@com.google.protobuf.Generated +public final class KnowledgeAssistDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + KnowledgeAssistDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistDebugInfo"); + } + + // Use KnowledgeAssistDebugInfo.newBuilder() to construct. + private KnowledgeAssistDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistDebugInfo() { + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason} + */ + public enum QueryGenerationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked due to out of quota.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + QUERY_GENERATION_OUT_OF_QUOTA(1), + /** + * + * + *
                                                                                                                                          +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILED = 2; + */ + QUERY_GENERATION_FAILED(2), + /** + * + * + *
                                                                                                                                          +     * Query generation model decides that there is no new topic change or
                                                                                                                                          +     * there has been similar queries generated in the previous turns.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + QUERY_GENERATION_NO_QUERY_GENERATED(3), + /** + * + * + *
                                                                                                                                          +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + QUERY_GENERATION_RAI_FAILED(4), + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                          +     * level / agent id level filtering.
                                                                                                                                          +     * 
                                                                                                                                          + * + * NOT_IN_ALLOWLIST = 5; + */ + NOT_IN_ALLOWLIST(5), + /** + * + * + *
                                                                                                                                          +     * The generated query is blocked due to redaction.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + QUERY_GENERATION_QUERY_REDACTED(6), + /** + * + * + *
                                                                                                                                          +     * Query generation failed due to LLM response parse failure.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED(10), + /** + * + * + *
                                                                                                                                          +     * The conversation has no messages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + QUERY_GENERATION_EMPTY_CONVERSATION(11), + /** + * + * + *
                                                                                                                                          +     * The last message in the conversation is empty.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + QUERY_GENERATION_EMPTY_LAST_MESSAGE(12), + /** + * + * + *
                                                                                                                                          +     * The trigger event condition is not met.
                                                                                                                                          +     * This occurs in the following scenarios:
                                                                                                                                          +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                          +     * message is not from the customer.
                                                                                                                                          +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                          +     * the agent.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET(13), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationFailureReason"); + } + + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked due to out of quota.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_OUT_OF_QUOTA = 1; + */ + public static final int QUERY_GENERATION_OUT_OF_QUOTA_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +     * Call to Knowedge Assist query generation model fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_FAILED = 2; + */ + public static final int QUERY_GENERATION_FAILED_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +     * Query generation model decides that there is no new topic change or
                                                                                                                                          +     * there has been similar queries generated in the previous turns.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_NO_QUERY_GENERATED = 3; + */ + public static final int QUERY_GENERATION_NO_QUERY_GENERATED_VALUE = 3; + + /** + * + * + *
                                                                                                                                          +     * Knowedge Assist generated query is blocked by RAI (Responsible AI).
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_RAI_FAILED = 4; + */ + public static final int QUERY_GENERATION_RAI_FAILED_VALUE = 4; + + /** + * + * + *
                                                                                                                                          +     * Query generation is blocked by Knowledge Assist conversation profile
                                                                                                                                          +     * level / agent id level filtering.
                                                                                                                                          +     * 
                                                                                                                                          + * + * NOT_IN_ALLOWLIST = 5; + */ + public static final int NOT_IN_ALLOWLIST_VALUE = 5; + + /** + * + * + *
                                                                                                                                          +     * The generated query is blocked due to redaction.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_QUERY_REDACTED = 6; + */ + public static final int QUERY_GENERATION_QUERY_REDACTED_VALUE = 6; + + /** + * + * + *
                                                                                                                                          +     * Query generation failed due to LLM response parse failure.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + */ + public static final int QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED_VALUE = 10; + + /** + * + * + *
                                                                                                                                          +     * The conversation has no messages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_CONVERSATION = 11; + */ + public static final int QUERY_GENERATION_EMPTY_CONVERSATION_VALUE = 11; + + /** + * + * + *
                                                                                                                                          +     * The last message in the conversation is empty.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + */ + public static final int QUERY_GENERATION_EMPTY_LAST_MESSAGE_VALUE = 12; + + /** + * + * + *
                                                                                                                                          +     * The trigger event condition is not met.
                                                                                                                                          +     * This occurs in the following scenarios:
                                                                                                                                          +     * 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last
                                                                                                                                          +     * message is not from the customer.
                                                                                                                                          +     * 2. The trigger_event is AGENT_MESSAGE, but the last message is not from
                                                                                                                                          +     * the agent.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + */ + public static final int QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET_VALUE = 13; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryGenerationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryGenerationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_GENERATION_OUT_OF_QUOTA; + case 2: + return QUERY_GENERATION_FAILED; + case 3: + return QUERY_GENERATION_NO_QUERY_GENERATED; + case 4: + return QUERY_GENERATION_RAI_FAILED; + case 5: + return NOT_IN_ALLOWLIST; + case 6: + return QUERY_GENERATION_QUERY_REDACTED; + case 10: + return QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED; + case 11: + return QUERY_GENERATION_EMPTY_CONVERSATION; + case 12: + return QUERY_GENERATION_EMPTY_LAST_MESSAGE; + case 13: + return QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryGenerationFailureReason findValueByNumber(int number) { + return QueryGenerationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final QueryGenerationFailureReason[] VALUES = values(); + + public static QueryGenerationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryGenerationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason) + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization failure.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf enum {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason} + */ + public enum QueryCategorizationFailureReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED(0), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + QUERY_CATEGORIZATION_INVALID_CONFIG(1), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + QUERY_CATEGORIZATION_RESULT_NOT_FOUND(2), + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search call fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + QUERY_CATEGORIZATION_FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryCategorizationFailureReason"); + } + + /** + * + * + *
                                                                                                                                          +     * Default value.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + */ + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search config supplied for query categorization is invalid.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + */ + public static final int QUERY_CATEGORIZATION_INVALID_CONFIG_VALUE = 1; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search result does not contain a query categorization result.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + */ + public static final int QUERY_CATEGORIZATION_RESULT_NOT_FOUND_VALUE = 2; + + /** + * + * + *
                                                                                                                                          +     * Vertex AI Search call fails.
                                                                                                                                          +     * 
                                                                                                                                          + * + * QUERY_CATEGORIZATION_FAILED = 3; + */ + public static final int QUERY_CATEGORIZATION_FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCategorizationFailureReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryCategorizationFailureReason forNumber(int value) { + switch (value) { + case 0: + return QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED; + case 1: + return QUERY_CATEGORIZATION_INVALID_CONFIG; + case 2: + return QUERY_CATEGORIZATION_RESULT_NOT_FOUND; + case 3: + return QUERY_CATEGORIZATION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryCategorizationFailureReason findValueByNumber(int number) { + return QueryCategorizationFailureReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final QueryCategorizationFailureReason[] VALUES = values(); + + public static QueryCategorizationFailureReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryCategorizationFailureReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason) + } + + public interface KnowledgeAssistBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to return query only in the
                                                                                                                                          +     * conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + boolean getReturnQueryOnly(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + boolean getUsePubsubDelivery(); + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +     * Knowedge Assist response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + boolean getDisableSyncDelivery(); + + /** + * + * + *
                                                                                                                                          +     * Whether previously suggested queries are included in the query generation
                                                                                                                                          +     * process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + boolean getPreviousQueriesIncluded(); + + /** + * + * + *
                                                                                                                                          +     * Translated message is included in query generation process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + boolean getUseTranslatedMessage(); + + /** + * + * + *
                                                                                                                                          +     * Safety filter is adjusted by user.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + boolean getUseCustomSafetyFilterLevel(); + + /** + * + * + *
                                                                                                                                          +     * Conversation transcript has mixed languages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + boolean getConversationTranscriptHasMixedLanguages(); + + /** + * + * + *
                                                                                                                                          +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +     * end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + boolean getQueryGenerationAgentLanguageMismatch(); + + /** + * + * + *
                                                                                                                                          +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +     * the end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + boolean getQueryGenerationEndUserLanguageMismatch(); + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + boolean getMultipleQueriesGenerated(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that the generated query contains search context.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + boolean getQueryContainedSearchContext(); + + /** + * + * + *
                                                                                                                                          +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + boolean getInvalidItemsQuerySuggestionSkipped(); + + /** + * + * + *
                                                                                                                                          +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +     * additional query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + boolean getPrimaryQueryRedactedAndReplaced(); + + /** + * + * + *
                                                                                                                                          +     * The number of search contexts appended to the query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + int getAppendedSearchContextCount(); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class KnowledgeAssistBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + KnowledgeAssistBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAssistBehavior"); + } + + // Use KnowledgeAssistBehavior.newBuilder() to construct. + private KnowledgeAssistBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAssistBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int RETURN_QUERY_ONLY_FIELD_NUMBER = 4; + private boolean returnQueryOnly_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to return query only in the
                                                                                                                                          +     * conversation profile.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + public static final int USE_PUBSUB_DELIVERY_FIELD_NUMBER = 5; + private boolean usePubsubDelivery_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + public static final int DISABLE_SYNC_DELIVERY_FIELD_NUMBER = 6; + private boolean disableSyncDelivery_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +     * Knowedge Assist response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + public static final int PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER = 7; + private boolean previousQueriesIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether previously suggested queries are included in the query generation
                                                                                                                                          +     * process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + public static final int USE_TRANSLATED_MESSAGE_FIELD_NUMBER = 8; + private boolean useTranslatedMessage_ = false; + + /** + * + * + *
                                                                                                                                          +     * Translated message is included in query generation process.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + public static final int USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER = 9; + private boolean useCustomSafetyFilterLevel_ = false; + + /** + * + * + *
                                                                                                                                          +     * Safety filter is adjusted by user.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + public static final int CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER = 10; + private boolean conversationTranscriptHasMixedLanguages_ = false; + + /** + * + * + *
                                                                                                                                          +     * Conversation transcript has mixed languages.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + public static final int QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER = 11; + private boolean queryGenerationAgentLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +     * end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + public static final int QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER = 12; + private boolean queryGenerationEndUserLanguageMismatch_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +     * the end-user language.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 13; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + public static final int MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER = 14; + private boolean multipleQueriesGenerated_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + public static final int QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER = 15; + private boolean queryContainedSearchContext_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that the generated query contains search context.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + public static final int INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER = 16; + private boolean invalidItemsQuerySuggestionSkipped_ = false; + + /** + * + * + *
                                                                                                                                          +     * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + public static final int PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER = 17; + private boolean primaryQueryRedactedAndReplaced_ = false; + + /** + * + * + *
                                                                                                                                          +     * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +     * additional query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + public static final int APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER = 18; + private int appendedSearchContextCount_ = 0; + + /** + * + * + *
                                                                                                                                          +     * The number of search contexts appended to the query.
                                                                                                                                          +     * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + output.writeBool(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + output.writeBool(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + output.writeBool(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + output.writeBool(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + output.writeBool(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + output.writeBool(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + output.writeBool(10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + output.writeBool(11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + output.writeBool(12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + output.writeBool(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + output.writeBool(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + output.writeBool(16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + output.writeBool(17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + output.writeInt32(18, appendedSearchContextCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (returnQueryOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnQueryOnly_); + } + if (usePubsubDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, usePubsubDelivery_); + } + if (disableSyncDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableSyncDelivery_); + } + if (previousQueriesIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, previousQueriesIncluded_); + } + if (useTranslatedMessage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useTranslatedMessage_); + } + if (useCustomSafetyFilterLevel_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, useCustomSafetyFilterLevel_); + } + if (conversationTranscriptHasMixedLanguages_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, conversationTranscriptHasMixedLanguages_); + } + if (queryGenerationAgentLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, queryGenerationAgentLanguageMismatch_); + } + if (queryGenerationEndUserLanguageMismatch_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, queryGenerationEndUserLanguageMismatch_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, thirdPartyConnectorAllowed_); + } + if (multipleQueriesGenerated_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(14, multipleQueriesGenerated_); + } + if (queryContainedSearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, queryContainedSearchContext_); + } + if (invalidItemsQuerySuggestionSkipped_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 16, invalidItemsQuerySuggestionSkipped_); + } + if (primaryQueryRedactedAndReplaced_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 17, primaryQueryRedactedAndReplaced_); + } + if (appendedSearchContextCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(18, appendedSearchContextCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getReturnQueryOnly() != other.getReturnQueryOnly()) return false; + if (getUsePubsubDelivery() != other.getUsePubsubDelivery()) return false; + if (getDisableSyncDelivery() != other.getDisableSyncDelivery()) return false; + if (getPreviousQueriesIncluded() != other.getPreviousQueriesIncluded()) return false; + if (getUseTranslatedMessage() != other.getUseTranslatedMessage()) return false; + if (getUseCustomSafetyFilterLevel() != other.getUseCustomSafetyFilterLevel()) return false; + if (getConversationTranscriptHasMixedLanguages() + != other.getConversationTranscriptHasMixedLanguages()) return false; + if (getQueryGenerationAgentLanguageMismatch() + != other.getQueryGenerationAgentLanguageMismatch()) return false; + if (getQueryGenerationEndUserLanguageMismatch() + != other.getQueryGenerationEndUserLanguageMismatch()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (getMultipleQueriesGenerated() != other.getMultipleQueriesGenerated()) return false; + if (getQueryContainedSearchContext() != other.getQueryContainedSearchContext()) return false; + if (getInvalidItemsQuerySuggestionSkipped() != other.getInvalidItemsQuerySuggestionSkipped()) + return false; + if (getPrimaryQueryRedactedAndReplaced() != other.getPrimaryQueryRedactedAndReplaced()) + return false; + if (getAppendedSearchContextCount() != other.getAppendedSearchContextCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + RETURN_QUERY_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnQueryOnly()); + hash = (37 * hash) + USE_PUBSUB_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePubsubDelivery()); + hash = (37 * hash) + DISABLE_SYNC_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSyncDelivery()); + hash = (37 * hash) + PREVIOUS_QUERIES_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreviousQueriesIncluded()); + hash = (37 * hash) + USE_TRANSLATED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTranslatedMessage()); + hash = (37 * hash) + USE_CUSTOM_SAFETY_FILTER_LEVEL_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseCustomSafetyFilterLevel()); + hash = (37 * hash) + CONVERSATION_TRANSCRIPT_HAS_MIXED_LANGUAGES_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getConversationTranscriptHasMixedLanguages()); + hash = (37 * hash) + QUERY_GENERATION_AGENT_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getQueryGenerationAgentLanguageMismatch()); + hash = (37 * hash) + QUERY_GENERATION_END_USER_LANGUAGE_MISMATCH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getQueryGenerationEndUserLanguageMismatch()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (37 * hash) + MULTIPLE_QUERIES_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultipleQueriesGenerated()); + hash = (37 * hash) + QUERY_CONTAINED_SEARCH_CONTEXT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryContainedSearchContext()); + hash = (37 * hash) + INVALID_ITEMS_QUERY_SUGGESTION_SKIPPED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInvalidItemsQuerySuggestionSkipped()); + hash = (37 * hash) + PRIMARY_QUERY_REDACTED_AND_REPLACED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getPrimaryQueryRedactedAndReplaced()); + hash = (37 * hash) + APPENDED_SEARCH_CONTEXT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAppendedSearchContextCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + returnQueryOnly_ = false; + usePubsubDelivery_ = false; + disableSyncDelivery_ = false; + previousQueriesIncluded_ = false; + useTranslatedMessage_ = false; + useCustomSafetyFilterLevel_ = false; + conversationTranscriptHasMixedLanguages_ = false; + queryGenerationAgentLanguageMismatch_ = false; + queryGenerationEndUserLanguageMismatch_ = false; + thirdPartyConnectorAllowed_ = false; + multipleQueriesGenerated_ = false; + queryContainedSearchContext_ = false; + invalidItemsQuerySuggestionSkipped_ = false; + primaryQueryRedactedAndReplaced_ = false; + appendedSearchContextCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnQueryOnly_ = returnQueryOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.usePubsubDelivery_ = usePubsubDelivery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableSyncDelivery_ = disableSyncDelivery_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previousQueriesIncluded_ = previousQueriesIncluded_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.useTranslatedMessage_ = useTranslatedMessage_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.useCustomSafetyFilterLevel_ = useCustomSafetyFilterLevel_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationTranscriptHasMixedLanguages_ = + conversationTranscriptHasMixedLanguages_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.queryGenerationAgentLanguageMismatch_ = queryGenerationAgentLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.queryGenerationEndUserLanguageMismatch_ = queryGenerationEndUserLanguageMismatch_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.multipleQueriesGenerated_ = multipleQueriesGenerated_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.queryContainedSearchContext_ = queryContainedSearchContext_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.invalidItemsQuerySuggestionSkipped_ = invalidItemsQuerySuggestionSkipped_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.primaryQueryRedactedAndReplaced_ = primaryQueryRedactedAndReplaced_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.appendedSearchContextCount_ = appendedSearchContextCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getReturnQueryOnly() != false) { + setReturnQueryOnly(other.getReturnQueryOnly()); + } + if (other.getUsePubsubDelivery() != false) { + setUsePubsubDelivery(other.getUsePubsubDelivery()); + } + if (other.getDisableSyncDelivery() != false) { + setDisableSyncDelivery(other.getDisableSyncDelivery()); + } + if (other.getPreviousQueriesIncluded() != false) { + setPreviousQueriesIncluded(other.getPreviousQueriesIncluded()); + } + if (other.getUseTranslatedMessage() != false) { + setUseTranslatedMessage(other.getUseTranslatedMessage()); + } + if (other.getUseCustomSafetyFilterLevel() != false) { + setUseCustomSafetyFilterLevel(other.getUseCustomSafetyFilterLevel()); + } + if (other.getConversationTranscriptHasMixedLanguages() != false) { + setConversationTranscriptHasMixedLanguages( + other.getConversationTranscriptHasMixedLanguages()); + } + if (other.getQueryGenerationAgentLanguageMismatch() != false) { + setQueryGenerationAgentLanguageMismatch(other.getQueryGenerationAgentLanguageMismatch()); + } + if (other.getQueryGenerationEndUserLanguageMismatch() != false) { + setQueryGenerationEndUserLanguageMismatch( + other.getQueryGenerationEndUserLanguageMismatch()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + if (other.getMultipleQueriesGenerated() != false) { + setMultipleQueriesGenerated(other.getMultipleQueriesGenerated()); + } + if (other.getQueryContainedSearchContext() != false) { + setQueryContainedSearchContext(other.getQueryContainedSearchContext()); + } + if (other.getInvalidItemsQuerySuggestionSkipped() != false) { + setInvalidItemsQuerySuggestionSkipped(other.getInvalidItemsQuerySuggestionSkipped()); + } + if (other.getPrimaryQueryRedactedAndReplaced() != false) { + setPrimaryQueryRedactedAndReplaced(other.getPrimaryQueryRedactedAndReplaced()); + } + if (other.getAppendedSearchContextCount() != 0) { + setAppendedSearchContextCount(other.getAppendedSearchContextCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + returnQueryOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + usePubsubDelivery_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disableSyncDelivery_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + previousQueriesIncluded_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + useTranslatedMessage_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + useCustomSafetyFilterLevel_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + conversationTranscriptHasMixedLanguages_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + queryGenerationAgentLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + queryGenerationEndUserLanguageMismatch_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 112: + { + multipleQueriesGenerated_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + queryContainedSearchContext_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + invalidItemsQuerySuggestionSkipped_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: + { + primaryQueryRedactedAndReplaced_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 144: + { + appendedSearchContextCount_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 144 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned off for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean returnQueryOnly_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return The returnQueryOnly. + */ + @java.lang.Override + public boolean getReturnQueryOnly() { + return returnQueryOnly_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @param value The returnQueryOnly to set. + * @return This builder for chaining. + */ + public Builder setReturnQueryOnly(boolean value) { + + returnQueryOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to return query only in the
                                                                                                                                          +       * conversation profile.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool return_query_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnQueryOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + returnQueryOnly_ = false; + onChanged(); + return this; + } + + private boolean usePubsubDelivery_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return The usePubsubDelivery. + */ + @java.lang.Override + public boolean getUsePubsubDelivery() { + return usePubsubDelivery_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @param value The usePubsubDelivery to set. + * @return This builder for chaining. + */ + public Builder setUsePubsubDelivery(boolean value) { + + usePubsubDelivery_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to use pubsub to deliver.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_pubsub_delivery = 5; + * + * @return This builder for chaining. + */ + public Builder clearUsePubsubDelivery() { + bitField0_ = (bitField0_ & ~0x00000008); + usePubsubDelivery_ = false; + onChanged(); + return this; + } + + private boolean disableSyncDelivery_; + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return The disableSyncDelivery. + */ + @java.lang.Override + public boolean getDisableSyncDelivery() { + return disableSyncDelivery_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @param value The disableSyncDelivery to set. + * @return This builder for chaining. + */ + public Builder setDisableSyncDelivery(boolean value) { + + disableSyncDelivery_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether customers configured to disable the synchronous delivery of
                                                                                                                                          +       * Knowedge Assist response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool disable_sync_delivery = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableSyncDelivery() { + bitField0_ = (bitField0_ & ~0x00000010); + disableSyncDelivery_ = false; + onChanged(); + return this; + } + + private boolean previousQueriesIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return The previousQueriesIncluded. + */ + @java.lang.Override + public boolean getPreviousQueriesIncluded() { + return previousQueriesIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @param value The previousQueriesIncluded to set. + * @return This builder for chaining. + */ + public Builder setPreviousQueriesIncluded(boolean value) { + + previousQueriesIncluded_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether previously suggested queries are included in the query generation
                                                                                                                                          +       * process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool previous_queries_included = 7; + * + * @return This builder for chaining. + */ + public Builder clearPreviousQueriesIncluded() { + bitField0_ = (bitField0_ & ~0x00000020); + previousQueriesIncluded_ = false; + onChanged(); + return this; + } + + private boolean useTranslatedMessage_; + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return The useTranslatedMessage. + */ + @java.lang.Override + public boolean getUseTranslatedMessage() { + return useTranslatedMessage_; + } + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @param value The useTranslatedMessage to set. + * @return This builder for chaining. + */ + public Builder setUseTranslatedMessage(boolean value) { + + useTranslatedMessage_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Translated message is included in query generation process.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_translated_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearUseTranslatedMessage() { + bitField0_ = (bitField0_ & ~0x00000040); + useTranslatedMessage_ = false; + onChanged(); + return this; + } + + private boolean useCustomSafetyFilterLevel_; + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return The useCustomSafetyFilterLevel. + */ + @java.lang.Override + public boolean getUseCustomSafetyFilterLevel() { + return useCustomSafetyFilterLevel_; + } + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @param value The useCustomSafetyFilterLevel to set. + * @return This builder for chaining. + */ + public Builder setUseCustomSafetyFilterLevel(boolean value) { + + useCustomSafetyFilterLevel_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Safety filter is adjusted by user.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool use_custom_safety_filter_level = 9; + * + * @return This builder for chaining. + */ + public Builder clearUseCustomSafetyFilterLevel() { + bitField0_ = (bitField0_ & ~0x00000080); + useCustomSafetyFilterLevel_ = false; + onChanged(); + return this; + } + + private boolean conversationTranscriptHasMixedLanguages_; + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return The conversationTranscriptHasMixedLanguages. + */ + @java.lang.Override + public boolean getConversationTranscriptHasMixedLanguages() { + return conversationTranscriptHasMixedLanguages_; + } + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @param value The conversationTranscriptHasMixedLanguages to set. + * @return This builder for chaining. + */ + public Builder setConversationTranscriptHasMixedLanguages(boolean value) { + + conversationTranscriptHasMixedLanguages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Conversation transcript has mixed languages.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool conversation_transcript_has_mixed_languages = 10; + * + * @return This builder for chaining. + */ + public Builder clearConversationTranscriptHasMixedLanguages() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationTranscriptHasMixedLanguages_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationAgentLanguageMismatch_; + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return The queryGenerationAgentLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationAgentLanguageMismatch() { + return queryGenerationAgentLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @param value The queryGenerationAgentLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationAgentLanguageMismatch(boolean value) { + + queryGenerationAgentLanguageMismatch_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the agent language from the translation generator mismatches the
                                                                                                                                          +       * end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_agent_language_mismatch = 11; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationAgentLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000200); + queryGenerationAgentLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean queryGenerationEndUserLanguageMismatch_; + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return The queryGenerationEndUserLanguageMismatch. + */ + @java.lang.Override + public boolean getQueryGenerationEndUserLanguageMismatch() { + return queryGenerationEndUserLanguageMismatch_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @param value The queryGenerationEndUserLanguageMismatch to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationEndUserLanguageMismatch(boolean value) { + + queryGenerationEndUserLanguageMismatch_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether the end-user language from the translation generator mismatches
                                                                                                                                          +       * the end-user language.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_generation_end_user_language_mismatch = 12; + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationEndUserLanguageMismatch() { + bitField0_ = (bitField0_ & ~0x00000400); + queryGenerationEndUserLanguageMismatch_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 13; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000800); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + private boolean multipleQueriesGenerated_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return The multipleQueriesGenerated. + */ + @java.lang.Override + public boolean getMultipleQueriesGenerated() { + return multipleQueriesGenerated_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @param value The multipleQueriesGenerated to set. + * @return This builder for chaining. + */ + public Builder setMultipleQueriesGenerated(boolean value) { + + multipleQueriesGenerated_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the query generation model generated multiple queries.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool multiple_queries_generated = 14; + * + * @return This builder for chaining. + */ + public Builder clearMultipleQueriesGenerated() { + bitField0_ = (bitField0_ & ~0x00001000); + multipleQueriesGenerated_ = false; + onChanged(); + return this; + } + + private boolean queryContainedSearchContext_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return The queryContainedSearchContext. + */ + @java.lang.Override + public boolean getQueryContainedSearchContext() { + return queryContainedSearchContext_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @param value The queryContainedSearchContext to set. + * @return This builder for chaining. + */ + public Builder setQueryContainedSearchContext(boolean value) { + + queryContainedSearchContext_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that the generated query contains search context.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool query_contained_search_context = 15; + * + * @return This builder for chaining. + */ + public Builder clearQueryContainedSearchContext() { + bitField0_ = (bitField0_ & ~0x00002000); + queryContainedSearchContext_ = false; + onChanged(); + return this; + } + + private boolean invalidItemsQuerySuggestionSkipped_; + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return The invalidItemsQuerySuggestionSkipped. + */ + @java.lang.Override + public boolean getInvalidItemsQuerySuggestionSkipped() { + return invalidItemsQuerySuggestionSkipped_; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @param value The invalidItemsQuerySuggestionSkipped to set. + * @return This builder for chaining. + */ + public Builder setInvalidItemsQuerySuggestionSkipped(boolean value) { + + invalidItemsQuerySuggestionSkipped_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Indicates that invalid items were skipped when parsing the LLM response.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool invalid_items_query_suggestion_skipped = 16; + * + * @return This builder for chaining. + */ + public Builder clearInvalidItemsQuerySuggestionSkipped() { + bitField0_ = (bitField0_ & ~0x00004000); + invalidItemsQuerySuggestionSkipped_ = false; + onChanged(); + return this; + } + + private boolean primaryQueryRedactedAndReplaced_; + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return The primaryQueryRedactedAndReplaced. + */ + @java.lang.Override + public boolean getPrimaryQueryRedactedAndReplaced() { + return primaryQueryRedactedAndReplaced_; + } + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @param value The primaryQueryRedactedAndReplaced to set. + * @return This builder for chaining. + */ + public Builder setPrimaryQueryRedactedAndReplaced(boolean value) { + + primaryQueryRedactedAndReplaced_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * True if the primary suggested query was redacted and replaced by an
                                                                                                                                          +       * additional query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool primary_query_redacted_and_replaced = 17; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryQueryRedactedAndReplaced() { + bitField0_ = (bitField0_ & ~0x00008000); + primaryQueryRedactedAndReplaced_ = false; + onChanged(); + return this; + } + + private int appendedSearchContextCount_; + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return The appendedSearchContextCount. + */ + @java.lang.Override + public int getAppendedSearchContextCount() { + return appendedSearchContextCount_; + } + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @param value The appendedSearchContextCount to set. + * @return This builder for chaining. + */ + public Builder setAppendedSearchContextCount(int value) { + + appendedSearchContextCount_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The number of search contexts appended to the query.
                                                                                                                                          +       * 
                                                                                                                                          + * + * int32 appended_search_context_count = 18; + * + * @return This builder for chaining. + */ + public Builder clearAppendedSearchContextCount() { + bitField0_ = (bitField0_ & ~0x00010000); + appendedSearchContextCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistBehavior parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to Knowledge Assist feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query generation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Reason for query categorization.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior.getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for Knowedge Assist.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeAssistDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java new file mode 100644 index 000000000000..152900bb067e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java @@ -0,0 +1,247 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface KnowledgeAssistDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + int getQueryGenerationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query generation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + int getQueryCategorizationFailureReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Reason for query categorization.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + getQueryCategorizationFailureReason(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + boolean hasKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for Knowedge Assist.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 864779f4dac2..e4c78d9777d9 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -276,6 +276,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -777,26 +801,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027knowledge_assist_answer\030\001" + " \001(\01326.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\264\006\n" + + "\014context_size\030\003 \001(\005\"\303\005\n" + + "!IngestedContextReferenceDebugInfo\022\037\n" + + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + + "\033context_reference_retrieved\030\002 \001(\010\022\205\001\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132].google.cl" + + "oud.dialogflow.v2beta1.IngestedContextRe" + + "ferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + + "\032IngestedParameterDebugInfo\022\021\n" + + "\tparameter\030\001 \001(\t\022\207\001\n" + + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogflow.v2beta1.Inges" + + "tedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\017IngestionStatus\022 \n" + + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" + + "&INGESTION_STATUS_CONTEXT_NOT_AVAILABLE\020\002\022!\n" + + "\035INGESTION_STATUS_PARSE_FAILED\020\003\022\"\n" + + "\036INGESTION_STATUS_INVALID_ENTRY\020\004\022#\n" + + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\234\002\n" + + "\016ServiceLatency\022j\n" + + "\032internal_service_latencies\030\001" + + " \003(\0132F.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\026InternalServiceLatency\022\014\n" + + "\004step\030\001 \001(\t\022\022\n" + + "\n" + + "latency_ms\030\002 \001(\002\022.\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\222\020\n" + + "\030KnowledgeAssistDebugInfo\022\177\n" + + "\037query_generation_failure_reason\030\001 \001(\0162V.google.clou" + + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" + + "#query_categorization_failure_reason\030\002 \001(\016" + + "2Z.google.cloud.dialogflow.v2beta1.Knowl" + + "edgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" + + "\031datastore_response_reason\030\003" + + " \001(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132Q.google.cloud.dial" + + "ogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\005 \001(\0132B.google." + + "cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\006 " + + "\001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\032\271\005\n" + + "\027KnowledgeAssistBehavior\022%\n" + + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" + + "\021return_query_only\030\004 \001(\010\022\033\n" + + "\023use_pubsub_delivery\030\005 \001(\010\022\035\n" + + "\025disable_sync_delivery\030\006 \001(\010\022!\n" + + "\031previous_queries_included\030\007 \001(\010\022\036\n" + + "\026use_translated_message\030\010 \001(\010\022&\n" + + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" + + "+convers", + "ation_transcript_has_mixed_languages\030\n" + + " \001(\010\0220\n" + + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" + + "\035third_party_connector_allowed\030\r" + + " \001(\010\022\"\n" + + "\032multiple_queries_generated\030\016 \001(\010\022&\n" + + "\036query_contained_search_context\030\017 \001(\010\022.\n" + + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" + + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\034QueryGenerationFailureReason\022/\n" + + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" + + "\027QUERY_GENERATION_FAILED\020\002\022\'\n" + + "#QUERY_GENERATION_NO_QUERY_GENERATED\020\003\022\037\n" + + "\033QUERY_GENERATION_RAI_FAILED\020\004\022\024\n" + + "\020NOT_IN_ALLOWLIST\020\005\022#\n" + + "\037QUERY_GENERATION_QUERY_REDACTED\020\006\022.\n" + + "*QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED\020\n" + + "\022\'\n" + + "#QUERY_GENERATION_EMPTY_CONVERSATION\020\013\022\'\n" + + "#QUERY_GENERATION_EMPTY_LAST_MESSAGE\020\014\0227\n" + + "3QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET\020\r" + + "\"\314\001\n" + + " QueryCategorizationFailureReason\0223\n" + + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\224\007\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2b" - + "eta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.goog" - + "le.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" - + "answer_record\030\003 \001(\t\032$\n" + + "\017suggested_query\030\001 \001(\0132E.g" + + "oogle.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(\0132F.google.cloud.dialo" + + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "answer_record\030\003 \001(\t\022^\n" + + "\033knowledge_assist_debug_info\030\007 \001(\01329.google" + + ".cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\225\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" - + "faq_source\030\003 \001(\0132P.google.clo" - + "ud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" - + "\021generative_source\030\004 \001(\0132W.google.cloud.dialog" - + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132P.google.c" + + "loud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + + "\021generative_source\030\004 \001(\0132W.google.cloud.dial" + + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dialo" - + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dia" + + "logflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" @@ -804,25 +911,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + "\006source\"\327\n\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132J." - + "google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2b" - + "eta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132" + + "J.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v" + + "2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStrea" - + "mingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStr" + + "eamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" + "\"initial_virtual_agent_query_params\030\004" + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.clo" - + "ud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google.c" + + "loud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624.go" - + "ogle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\01624." + + "google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" @@ -836,129 +943,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" - + "\005audio\030", - "\001 \001(\014H\000\022D\n\004dtmf\030\002 \001(\01324.google.cloud.dia" - + "logflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" - + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow.v2" - + "beta1.BidiStreamingAnalyzeContentRequest" - + ".TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bid" - + "iStreamingAnalyzeContentResponse\022Y\n\022reco" - + "gnition_result\030\001 \001(\0132;.google.cloud.dial" - + "ogflow.v2beta1.StreamingRecognitionResul" - + "tH\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.cl" - + "oud.dialogflow.v2beta1.BidiStreamingAnal" - + "yzeContentResponse.BargeInSignalH\000\022[\n\030an" - + "alyze_content_response\030\003 \001(\01327.google.cl" - + "oud.dialogflow.v2beta1.AnalyzeContentRes" - + "ponseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google." - + "cloud.dialogflow.v2beta1.BidiStreamingAn" - + "alyzeContentResponse.TurnCompleteH\000\032\017\n\rB" - + "argeInSignal\032\016\n\014TurnCompleteB\n\n\010response" - + "2\262\037\n\014Participants\022\271\002\n\021CreateParticipant\022" - + "9.google.cloud.dialogflow.v2beta1.Create" - + "ParticipantRequest\032,.google.cloud.dialog" - + "flow.v2beta1.Participant\"\272\001\332A\022parent,par" - + "ticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=projec" - + "ts/*/conversations/*}/participants:\013part" - + "icipantZT\"E/v2beta1/{parent=projects/*/l" - + "ocations/*/conversations/*}/participants" - + ":\013participant\022\213\002\n\016GetParticipant\0226.googl" - + "e.cloud.dialogflow.v2beta1.GetParticipan" - + "tRequest\032,.google.cloud.dialogflow.v2bet" - + "a1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta" - + "1/{name=projects/*/conversations/*/parti" - + "cipants/*}ZG\022E/v2beta1/{name=projects/*/" - + "locations/*/conversations/*/participants" - + "/*}\022\236\002\n\020ListParticipants\0228.google.cloud." - + "dialogflow.v2beta1.ListParticipantsReque" - + "st\0329.google.cloud.dialogflow.v2beta1.Lis" - + "tParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001" - + "\0229/v2beta1/{parent=projects/*/conversati" - + "ons/*}/participantsZG\022E/v2beta1/{parent=" - + "projects/*/locations/*/conversations/*}/" - + "participants\022\326\002\n\021UpdateParticipant\0229.goo" - + "gle.cloud.dialogflow.v2beta1.UpdateParti" - + "cipantRequest\032,.google.cloud.dialogflow." - + "v2beta1.Participant\"\327\001\332A\027participant,upd" - + "ate_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.n" - + "ame=projects/*/conversations/*/participa" - + "nts/*}:\013participantZ`2Q/v2beta1/{partici" - + "pant.name=projects/*/locations/*/convers" - + "ations/*/participants/*}:\013participant\022\216\003" - + "\n\016AnalyzeContent\0226.google.cloud.dialogfl" - + "ow.v2beta1.AnalyzeContentRequest\0327.googl" - + "e.cloud.dialogflow.v2beta1.AnalyzeConten" - + "tResponse\"\212\002\332A\026participant,text_input\332A\027" - + "participant,audio_input\332A\027participant,ev" - + "ent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=" - + "projects/*/conversations/*/participants/" - + "*}:analyzeContent:\001*Z`\"[/v2beta1/{partic" - + "ipant=projects/*/locations/*/conversatio" - + "ns/*/participants/*}:analyzeContent:\001*\022\242" - + "\001\n\027StreamingAnalyzeContent\022?.google.clou" - + "d.dialogflow.v2beta1.StreamingAnalyzeCon" - + "tentRequest\032@.google.cloud.dialogflow.v2" - + "beta1.StreamingAnalyzeContentResponse\"\000(" - + "\0010\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.go" - + "ogle.cloud.dialogflow.v2beta1.BidiStream" - + "ingAnalyzeContentRequest\032D.google.cloud." - + "dialogflow.v2beta1.BidiStreamingAnalyzeC" - + "ontentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles" - + "\0227.google.cloud.dialogflow.v2beta1.Sugge" - + "stArticlesRequest\0328.google.cloud.dialogf" - + "low.v2beta1.SuggestArticlesResponse\"\326\001\332A" - + "\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=project" - + "s/*/conversations/*/participants/*}/sugg" - + "estions:suggestArticles:\001*Zh\"c/v2beta1/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:sugges" - + "tArticles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goo" - + "gle.cloud.dialogflow.v2beta1.SuggestFaqA" - + "nswersRequest\032:.google.cloud.dialogflow." - + "v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006p" - + "arent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/" - + "*/conversations/*/participants/*}/sugges" - + "tions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{" - + "parent=projects/*/locations/*/conversati" - + "ons/*/participants/*}/suggestions:sugges" - + "tFaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;" - + ".google.cloud.dialogflow.v2beta1.Suggest" - + "SmartRepliesRequest\032<.google.cloud.dialo" - + "gflow.v2beta1.SuggestSmartRepliesRespons" - + "e\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=p" - + "rojects/*/conversations/*/participants/*" - + "}/suggestions:suggestSmartReplies:\001*Zl\"g" - + "/v2beta1/{parent=projects/*/locations/*/" - + "conversations/*/participants/*}/suggesti" - + "ons:suggestSmartReplies:\001*\022\367\002\n\026SuggestKn" - + "owledgeAssist\022>.google.cloud.dialogflow." - + "v2beta1.SuggestKnowledgeAssistRequest\032?." - + "google.cloud.dialogflow.v2beta1.SuggestK" - + "nowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2bet" - + "a1/{parent=projects/*/conversations/*/pa" - + "rticipants/*}/suggestions:suggestKnowled" - + "geAssist:\001*Zo\"j/v2beta1/{parent=projects" - + "/*/locations/*/conversations/*/participa" - + "nts/*}/suggestions:suggestKnowledgeAssis" - + "t:\001*\022\330\001\n\017ListSuggestions\0227.google.cloud." - + "dialogflow.v2beta1.ListSuggestionsReques" - + "t\0328.google.cloud.dialogflow.v2beta1.List" - + "SuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1" - + "/{parent=projects/*/conversations/*/part" - + "icipants/*}/suggestions\022\351\001\n\021CompileSugge" - + "stion\0229.google.cloud.dialogflow.v2beta1." - + "CompileSuggestionRequest\032:.google.cloud." - + "dialogflow.v2beta1.CompileSuggestionResp" - + "onse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projec" - + "ts/*/conversations/*/participants/*}/sug" - + "gestions:compile:\001*\032x\312A\031dialogflow.googl" - + "eapis.com\322AYhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/dialogflowB\245\001\n#com.google.clo" - + "ud.dialogflow.v2beta1B\020ParticipantProtoP" - + "\001ZCcloud.google.com/go/dialogflow/apiv2b" - + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" - + "ogle.Cloud.Dialogflow.V2Beta1b\006proto3" + + "\005audio\030\001 \001(\014H\000\022D\n" + + "\004dtmf\030\002 \001(\01324.google.cloud.d" + + "ialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow." + + "v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + + "\005inputB\t\n" + + "\007request\"\345\003\n" + + "#BidiStreamingAnalyzeContentResponse\022Y\n" + + "\022recognition_result\030\001 \001(\0132;.google.cloud.di" + + "alogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" + + "\017barge_in_signal\030\002 \001(\0132R.google." + + "cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022[\n" + + "\030analyze_content_response\030\003 \001(\01327.google." + + "cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" + + "turn_complete\030\004 \001(\0132Q.googl" + + "e.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n" + + "\r" + + "BargeInSignal\032\016\n" + + "\014TurnCompleteB\n\n" + + "\010response*\326\002\n" + + "\027DatastoreResponseReason\022)\n" + + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\027\n" + + "\023SEARCH_OUT_OF_QUOTA\020\002\022\030\n" + + "\024SEARCH_EMPTY_RESULTS\020\003\022%\n" + + "!ANSWER_GENERATION_GEN_AI_DISABLED\020\004\022\"\n" + + "\036ANSWER_GENERATION_OUT_OF_QUOTA\020\005\022\033\n" + + "\027ANSWER_GENERATION_ERROR\020\006\022%\n" + + "!ANSWER_GENERATION_NOT_ENOUGH_INFO\020\007\022 \n" + + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\262\037\n" + + "\014Participants\022\271\002\n" + + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.CreateParticipantRe" + + "quest\032,.google.cloud.dialogflow.v2beta1." + + "Participant\"\272\001\332A\022parent,participant\202\323\344\223\002" + + "\236\001\"9/v2beta1/{parent=projects/*/conversa" + + "tions/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/locations/*/co" + + "nversations/*}/participants:\013participant\022\213\002\n" + + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipantRequest\032,.go" + + "ogle.cloud.dialogflow.v2beta1.Participan" + + "t\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=proje" + + "cts/*/conversations/*/participants/*}ZG\022" + + "E/v2beta1/{name=projects/*/locations/*/conversations/*/participants/*}\022\236\002\n" + + "\020ListParticipants\0228.google.cloud.dialogflow.v2" + + "beta1.ListParticipantsRequest\0329.google.cloud.dialogflow.v2beta1.ListParticipants" + + "Response\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/{p" + + "arent=projects/*/conversations/*}/participantsZG\022E/v2beta1/{parent=projects/*/lo" + + "cations/*/conversations/*}/participants\022\326\002\n" + + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest" + + "\032,.google.cloud.dialogflow.v2beta1.Parti" + + "cipant\"\327\001\332A\027participant,update_mask\202\323\344\223\002" + + "\266\0012E/v2beta1/{participant.name=projects/" + + "*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{participant.name=pro" + + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\216\003\n" + + "\016AnalyzeContent\0226.google.cloud.dialogflow.v2beta1.An" + + "alyzeContentRequest\0327.google.cloud.dialo" + + "gflow.v2beta1.AnalyzeContentResponse\"\212\002\332" + + "A\026participant,text_input\332A\027participant,a" + + "udio_input\332A\027participant,event_input\202\323\344\223" + + "\002\266\001\"O/v2beta1/{participant=projects/*/co" + + "nversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{participant=project" + + "s/*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\242\001\n" + + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow." + + "v2beta1.StreamingAnalyzeContentRequest\032@" + + ".google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" + + "\033BidiStreamingAnalyzeContent\022C.google.cloud.di" + + "alogflow.v2beta1.BidiStreamingAnalyzeContentRequest\032D.google.cloud.dialogflow.v2" + + "beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" + + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.SuggestArticlesReq" + + "uest\0328.google.cloud.dialogflow.v2beta1.S" + + "uggestArticlesResponse\"\326\001\332A\006parent\202\323\344\223\002\306" + + "\001\"W/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:sugge" + + "stArticles:\001*Zh\"c/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" + + "pants/*}/suggestions:suggestArticles:\001*\022\347\002\n" + + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest" + + "\032:.google.cloud.dialogflow.v2beta1.Sugge" + + "stFaqAnswersResponse\"\332\001\332A\006parent\202\323\344\223\002\312\001\"" + + "Y/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggest" + + "FaqAnswers:\001*Zj\"e/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" + + "pants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" + + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesR" + + "equest\032<.google.cloud.dialogflow.v2beta1" + + ".SuggestSmartRepliesResponse\"\336\001\332A\006parent" + + "\202\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/con" + + "versations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"g/v2beta1/{par" + + "ent=projects/*/locations/*/conversations" + + "/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" + + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow.v2beta1.Sugge" + + "stKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssis" + + "tResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta1/{parent=pr" + + "ojects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zo" + + "\"j/v2beta1/{parent=projects/*/locations/" + + "*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" + + "\017ListSuggestions\0227.google.cloud.dialogflow.v2" + + "beta1.ListSuggestionsRequest\0328.google.cloud.dialogflow.v2beta1.ListSuggestionsRe" + + "sponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{parent=proj" + + "ects/*/conversations/*/participants/*}/suggestions\022\351\001\n" + + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1.CompileSugges" + + "tionRequest\032:.google.cloud.dialogflow.v2" + + "beta1.CompileSuggestionResponse\"]\210\002\001\202\323\344\223" + + "\002T\"O/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:comp" + + "ile:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/dialogflowB\245\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProtoP\001ZCcloud.goog" + + "le.com/go/dialogflow/apiv2beta1/dialogfl" + + "owpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1536,13 +1627,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", }); - internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(44); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor, + new java.lang.String[] { + "ProjectNotAllowlisted", "ContextReferenceRetrieved", "IngestedParametersDebugInfo", + }); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_IngestedParameterDebugInfo_descriptor, + new java.lang.String[] { + "Parameter", "IngestionStatus", + }); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor = + getDescriptor().getMessageType(45); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor, + new java.lang.String[] { + "InternalServiceLatencies", + }); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor, + new java.lang.String[] { + "Step", "LatencyMs", "StartTime", "CompleteTime", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor = + getDescriptor().getMessageType(46); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor, + new java.lang.String[] { + "QueryGenerationFailureReason", + "QueryCategorizationFailureReason", + "DatastoreResponseReason", + "KnowledgeAssistBehavior", + "IngestedContextReferenceDebugInfo", + "ServiceLatency", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor, + new java.lang.String[] { + "AnswerGenerationRewriterOn", + "EndUserMetadataIncluded", + "ReturnQueryOnly", + "UsePubsubDelivery", + "DisableSyncDelivery", + "PreviousQueriesIncluded", + "UseTranslatedMessage", + "UseCustomSafetyFilterLevel", + "ConversationTranscriptHasMixedLanguages", + "QueryGenerationAgentLanguageMismatch", + "QueryGenerationEndUserLanguageMismatch", + "ThirdPartyConnectorAllowed", + "MultipleQueriesGenerated", + "QueryContainedSearchContext", + "InvalidItemsQuerySuggestionSkipped", + "PrimaryQueryRedactedAndReplaced", + "AppendedSearchContextCount", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = + getDescriptor().getMessageType(47); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor, new java.lang.String[] { - "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", + "SuggestedQuery", "SuggestedQueryAnswer", "AnswerRecord", "KnowledgeAssistDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor @@ -1590,7 +1752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Text", "Title", "Metadata", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(48); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor, @@ -1643,7 +1805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audio", "Dtmf", "Turn", "Input", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(49); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java index 862cd7157d46..3953947145f3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumber.java @@ -245,6 +245,1197 @@ private LifecycleState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState) } + public interface AllowedSipTrunksOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + java.util.List getSipTrunksList(); + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + int getSipTrunksCount(); + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + java.lang.String getSipTrunks(int index); + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + com.google.protobuf.ByteString getSipTrunksBytes(int index); + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + java.util.List getCarrierIdsList(); + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + int getCarrierIdsCount(); + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + java.lang.String getCarrierIds(int index); + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + com.google.protobuf.ByteString getCarrierIdsBytes(int index); + } + + /** + * + * + *
                                                                                                                                          +   * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks} + */ + public static final class AllowedSipTrunks extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + AllowedSipTrunksOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AllowedSipTrunks"); + } + + // Use AllowedSipTrunks.newBuilder() to construct. + private AllowedSipTrunks(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AllowedSipTrunks() { + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.class, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder.class); + } + + public static final int SIP_TRUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sipTrunks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + public com.google.protobuf.ProtocolStringList getSipTrunksList() { + return sipTrunks_; + } + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + public int getSipTrunksCount() { + return sipTrunks_.size(); + } + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + public java.lang.String getSipTrunks(int index) { + return sipTrunks_.get(index); + } + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * If empty, any SIP trunk is allowed.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + public com.google.protobuf.ByteString getSipTrunksBytes(int index) { + return sipTrunks_.getByteString(index); + } + + public static final int CARRIER_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList carrierIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + public com.google.protobuf.ProtocolStringList getCarrierIdsList() { + return carrierIds_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + public int getCarrierIdsCount() { + return carrierIds_.size(); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + public java.lang.String getCarrierIds(int index) { + return carrierIds_.get(index); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +     * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +     * applicable.
                                                                                                                                          +     * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + public com.google.protobuf.ByteString getCarrierIdsBytes(int index) { + return carrierIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sipTrunks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sipTrunks_.getRaw(i)); + } + for (int i = 0; i < carrierIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, carrierIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < sipTrunks_.size(); i++) { + dataSize += computeStringSizeNoTag(sipTrunks_.getRaw(i)); + } + size += dataSize; + size += 1 * getSipTrunksList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < carrierIds_.size(); i++) { + dataSize += computeStringSizeNoTag(carrierIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCarrierIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks other = + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) obj; + + if (!getSipTrunksList().equals(other.getSipTrunksList())) return false; + if (!getCarrierIdsList().equals(other.getCarrierIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSipTrunksCount() > 0) { + hash = (37 * hash) + SIP_TRUNKS_FIELD_NUMBER; + hash = (53 * hash) + getSipTrunksList().hashCode(); + } + if (getCarrierIdsCount() > 0) { + hash = (37 * hash) + CARRIER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCarrierIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.class, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumberProto + .internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks build() { + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks buildPartial() { + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result = + new com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + sipTrunks_.makeImmutable(); + result.sipTrunks_ = sipTrunks_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + carrierIds_.makeImmutable(); + result.carrierIds_ = carrierIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks other) { + if (other + == com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance()) return this; + if (!other.sipTrunks_.isEmpty()) { + if (sipTrunks_.isEmpty()) { + sipTrunks_ = other.sipTrunks_; + bitField0_ |= 0x00000001; + } else { + ensureSipTrunksIsMutable(); + sipTrunks_.addAll(other.sipTrunks_); + } + onChanged(); + } + if (!other.carrierIds_.isEmpty()) { + if (carrierIds_.isEmpty()) { + carrierIds_ = other.carrierIds_; + bitField0_ |= 0x00000002; + } else { + ensureCarrierIdsIsMutable(); + carrierIds_.addAll(other.carrierIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSipTrunksIsMutable(); + sipTrunks_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCarrierIdsIsMutable(); + carrierIds_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList sipTrunks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSipTrunksIsMutable() { + if (!sipTrunks_.isModifiable()) { + sipTrunks_ = new com.google.protobuf.LazyStringArrayList(sipTrunks_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the sipTrunks. + */ + public com.google.protobuf.ProtocolStringList getSipTrunksList() { + sipTrunks_.makeImmutable(); + return sipTrunks_; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of sipTrunks. + */ + public int getSipTrunksCount() { + return sipTrunks_.size(); + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The sipTrunks at the given index. + */ + public java.lang.String getSipTrunks(int index) { + return sipTrunks_.get(index); + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the sipTrunks at the given index. + */ + public com.google.protobuf.ByteString getSipTrunksBytes(int index) { + return sipTrunks_.getByteString(index); + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The sipTrunks to set. + * @return This builder for chaining. + */ + public Builder setSipTrunks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSipTrunksIsMutable(); + sipTrunks_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addSipTrunks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSipTrunksIsMutable(); + sipTrunks_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addAllSipTrunks(java.lang.Iterable values) { + ensureSipTrunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sipTrunks_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSipTrunks() { + sipTrunks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * List of SIP trunks that are allowed to make calls to this phone number.
                                                                                                                                          +       * If empty, any SIP trunk is allowed.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the sipTrunks to add. + * @return This builder for chaining. + */ + public Builder addSipTrunksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSipTrunksIsMutable(); + sipTrunks_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList carrierIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCarrierIdsIsMutable() { + if (!carrierIds_.isModifiable()) { + carrierIds_ = new com.google.protobuf.LazyStringArrayList(carrierIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the carrierIds. + */ + public com.google.protobuf.ProtocolStringList getCarrierIdsList() { + carrierIds_.makeImmutable(); + return carrierIds_; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of carrierIds. + */ + public int getCarrierIdsCount() { + return carrierIds_.size(); + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The carrierIds at the given index. + */ + public java.lang.String getCarrierIds(int index) { + return carrierIds_.get(index); + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the carrierIds at the given index. + */ + public com.google.protobuf.ByteString getCarrierIdsBytes(int index) { + return carrierIds_.getByteString(index); + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The carrierIds to set. + * @return This builder for chaining. + */ + public Builder setCarrierIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCarrierIdsIsMutable(); + carrierIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The carrierIds to add. + * @return This builder for chaining. + */ + public Builder addCarrierIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCarrierIdsIsMutable(); + carrierIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The carrierIds to add. + * @return This builder for chaining. + */ + public Builder addAllCarrierIds(java.lang.Iterable values) { + ensureCarrierIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, carrierIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCarrierIds() { + carrierIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Optional. List of GTP carrier IDs allowed to make calls to this phone
                                                                                                                                          +       * number. Used for private interconnects where standard SIP trunks aren't
                                                                                                                                          +       * applicable.
                                                                                                                                          +       * 
                                                                                                                                          + * + * repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the carrierIds to add. + * @return This builder for chaining. + */ + public Builder addCarrierIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCarrierIdsIsMutable(); + carrierIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + private static final com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks(); + } + + public static com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedSipTrunks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int inboundRestrictionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inboundRestriction_; + + public enum InboundRestrictionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALLOWED_SIP_TRUNKS(7), + INBOUNDRESTRICTION_NOT_SET(0); + private final int value; + + private InboundRestrictionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InboundRestrictionCase valueOf(int value) { + return forNumber(value); + } + + public static InboundRestrictionCase forNumber(int value) { + switch (value) { + case 7: + return ALLOWED_SIP_TRUNKS; + case 0: + return INBOUNDRESTRICTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InboundRestrictionCase getInboundRestrictionCase() { + return InboundRestrictionCase.forNumber(inboundRestrictionCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -475,6 +1666,119 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState getLifecyc : result; } + public static final int ALLOWED_SIP_TRUNKS_FIELD_NUMBER = 7; + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + @java.lang.Override + public boolean hasAllowedSipTrunks() { + return inboundRestrictionCase_ == 7; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks() { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder() { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + + public static final int PURGE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp purgeTime_; + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + @java.lang.Override + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getPurgeTime() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -504,6 +1808,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, lifecycleState_); } + if (inboundRestrictionCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) inboundRestriction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getPurgeTime()); + } getUnknownFields().writeTo(output); } @@ -528,6 +1840,16 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, lifecycleState_); } + if (inboundRestrictionCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPurgeTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -548,6 +1870,18 @@ public boolean equals(final java.lang.Object obj) { if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; if (!getConversationProfile().equals(other.getConversationProfile())) return false; if (lifecycleState_ != other.lifecycleState_) return false; + if (hasPurgeTime() != other.hasPurgeTime()) return false; + if (hasPurgeTime()) { + if (!getPurgeTime().equals(other.getPurgeTime())) return false; + } + if (!getInboundRestrictionCase().equals(other.getInboundRestrictionCase())) return false; + switch (inboundRestrictionCase_) { + case 7: + if (!getAllowedSipTrunks().equals(other.getAllowedSipTrunks())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -567,6 +1901,18 @@ public int hashCode() { hash = (53 * hash) + getConversationProfile().hashCode(); hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; hash = (53 * hash) + lifecycleState_; + if (hasPurgeTime()) { + hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPurgeTime().hashCode(); + } + switch (inboundRestrictionCase_) { + case 7: + hash = (37 * hash) + ALLOWED_SIP_TRUNKS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedSipTrunks().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -700,10 +2046,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2beta1.PhoneNumber.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPurgeTimeFieldBuilder(); + } } @java.lang.Override @@ -714,6 +2069,16 @@ public Builder clear() { phoneNumber_ = ""; conversationProfile_ = ""; lifecycleState_ = 0; + if (allowedSipTrunksBuilder_ != null) { + allowedSipTrunksBuilder_.clear(); + } + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; return this; } @@ -744,6 +2109,7 @@ public com.google.cloud.dialogflow.v2beta1.PhoneNumber buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -762,6 +2128,20 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.PhoneNumber resul if (((from_bitField0_ & 0x00000008) != 0)) { result.lifecycleState_ = lifecycleState_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.purgeTime_ = purgeTimeBuilder_ == null ? purgeTime_ : purgeTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.v2beta1.PhoneNumber result) { + result.inboundRestrictionCase_ = inboundRestrictionCase_; + result.inboundRestriction_ = this.inboundRestriction_; + if (inboundRestrictionCase_ == 7 && allowedSipTrunksBuilder_ != null) { + result.inboundRestriction_ = allowedSipTrunksBuilder_.build(); + } } @java.lang.Override @@ -795,6 +2175,20 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.PhoneNumber other) if (other.lifecycleState_ != 0) { setLifecycleStateValue(other.getLifecycleStateValue()); } + if (other.hasPurgeTime()) { + mergePurgeTime(other.getPurgeTime()); + } + switch (other.getInboundRestrictionCase()) { + case ALLOWED_SIP_TRUNKS: + { + mergeAllowedSipTrunks(other.getAllowedSipTrunks()); + break; + } + case INBOUNDRESTRICTION_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -845,6 +2239,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 58: + { + input.readMessage( + internalGetAllowedSipTrunksFieldBuilder().getBuilder(), extensionRegistry); + inboundRestrictionCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -862,6 +2270,20 @@ public Builder mergeFrom( return this; } + private int inboundRestrictionCase_ = 0; + private java.lang.Object inboundRestriction_; + + public InboundRestrictionCase getInboundRestrictionCase() { + return InboundRestrictionCase.forNumber(inboundRestrictionCase_); + } + + public Builder clearInboundRestriction() { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -1375,6 +2797,455 @@ public Builder clearLifecycleState() { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder> + allowedSipTrunksBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + @java.lang.Override + public boolean hasAllowedSipTrunks() { + return inboundRestrictionCase_ == 7; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks() { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } else { + if (inboundRestrictionCase_ == 7) { + return allowedSipTrunksBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks value) { + if (allowedSipTrunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inboundRestriction_ = value; + onChanged(); + } else { + allowedSipTrunksBuilder_.setMessage(value); + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder builderForValue) { + if (allowedSipTrunksBuilder_ == null) { + inboundRestriction_ = builderForValue.build(); + onChanged(); + } else { + allowedSipTrunksBuilder_.setMessage(builderForValue.build()); + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAllowedSipTrunks( + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks value) { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7 + && inboundRestriction_ + != com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance()) { + inboundRestriction_ = + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.newBuilder( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_) + .mergeFrom(value) + .buildPartial(); + } else { + inboundRestriction_ = value; + } + onChanged(); + } else { + if (inboundRestrictionCase_ == 7) { + allowedSipTrunksBuilder_.mergeFrom(value); + } else { + allowedSipTrunksBuilder_.setMessage(value); + } + } + inboundRestrictionCase_ = 7; + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAllowedSipTrunks() { + if (allowedSipTrunksBuilder_ == null) { + if (inboundRestrictionCase_ == 7) { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + onChanged(); + } + } else { + if (inboundRestrictionCase_ == 7) { + inboundRestrictionCase_ = 0; + inboundRestriction_ = null; + } + allowedSipTrunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder + getAllowedSipTrunksBuilder() { + return internalGetAllowedSipTrunksFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder() { + if ((inboundRestrictionCase_ == 7) && (allowedSipTrunksBuilder_ != null)) { + return allowedSipTrunksBuilder_.getMessageOrBuilder(); + } else { + if (inboundRestrictionCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_; + } + return com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks + .getDefaultInstance(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder> + internalGetAllowedSipTrunksFieldBuilder() { + if (allowedSipTrunksBuilder_ == null) { + if (!(inboundRestrictionCase_ == 7)) { + inboundRestriction_ = + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.getDefaultInstance(); + } + allowedSipTrunksBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder, + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks) + inboundRestriction_, + getParentForChildren(), + isClean()); + inboundRestriction_ = null; + } + inboundRestrictionCase_ = 7; + onChanged(); + return allowedSipTrunksBuilder_; + } + + private com.google.protobuf.Timestamp purgeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + purgeTimeBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + public com.google.protobuf.Timestamp getPurgeTime() { + if (purgeTimeBuilder_ == null) { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } else { + return purgeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + purgeTime_ = value; + } else { + purgeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (purgeTimeBuilder_ == null) { + purgeTime_ = builderForValue.build(); + } else { + purgeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && purgeTime_ != null + && purgeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPurgeTimeBuilder().mergeFrom(value); + } else { + purgeTime_ = value; + } + } else { + purgeTimeBuilder_.mergeFrom(value); + } + if (purgeTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPurgeTime() { + bitField0_ = (bitField0_ & ~0x00000020); + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPurgeTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + if (purgeTimeBuilder_ != null) { + return purgeTimeBuilder_.getMessageOrBuilder(); + } else { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Output only. The time at which this resource will be purged.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetPurgeTimeFieldBuilder() { + if (purgeTimeBuilder_ == null) { + purgeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPurgeTime(), getParentForChildren(), isClean()); + purgeTime_ = null; + } + return purgeTimeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.PhoneNumber) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java index b6e94e2183a7..7d949d5af537 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberOrBuilder.java @@ -161,4 +161,91 @@ public interface PhoneNumberOrBuilder * @return The lifecycleState. */ com.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState getLifecycleState(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedSipTrunks field is set. + */ + boolean hasAllowedSipTrunks(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedSipTrunks. + */ + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks getAllowedSipTrunks(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Only allow calls from the specified SIP trunks.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunksOrBuilder + getAllowedSipTrunksOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + boolean hasPurgeTime(); + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + com.google.protobuf.Timestamp getPurgeTime(); + + /** + * + * + *
                                                                                                                                          +   * Output only. The time at which this resource will be purged.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.PhoneNumber.InboundRestrictionCase + getInboundRestrictionCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java index 3fc8dd21bb01..23c8820eef95 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_DeletePhoneNumberRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -78,69 +82,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1\032\034google/api/annotations.proto\032\027goo" + "gle/api/client.proto\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" - + "\032 google/protobuf/field_mask.proto\"\261\003\n\013P" - + "honeNumber\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014phone_n" - + "umber\030\002 \001(\tB\003\340A\003\022!\n\024conversation_profile" - + "\030\003 \001(\tB\003\340A\001\022Y\n\017lifecycle_state\030\004 \001(\0162;.g" - + "oogle.cloud.dialogflow.v2beta1.PhoneNumb" - + "er.LifecycleStateB\003\340A\003\"S\n\016LifecycleState" - + "\022\037\n\033LIFECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\024\n\020DELETE_REQUESTED\020\002:\240\001\352A\234\001\n%dial" - + "ogflow.googleapis.com/PhoneNumber\022.proje" - + "cts/{project}/phoneNumbers/{phone_number" - + "}\022Cprojects/{project}/locations/{locatio" - + "n}/phoneNumbers/{phone_number}\"W\n\030Delete" - + "PhoneNumberRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%dialogflow.googleapis.com/PhoneNumber\"" - + "Y\n\032UndeletePhoneNumberRequest\022;\n\004name\030\001 " - + "\001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.com/P" - + "honeNumber\"\244\001\n\027ListPhoneNumbersRequest\022=" - + "\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googl" - + "eapis.com/PhoneNumber\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014show_d" - + "eleted\030\004 \001(\010B\003\340A\001\"x\n\030ListPhoneNumbersRes" - + "ponse\022C\n\rphone_numbers\030\001 \003(\0132,.google.cl" - + "oud.dialogflow.v2beta1.PhoneNumber\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\231\001\n\030UpdatePhoneNumbe" - + "rRequest\022G\n\014phone_number\030\001 \001(\0132,.google." - + "cloud.dialogflow.v2beta1.PhoneNumberB\003\340A" - + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\0012\306\t\n\014PhoneNumbers\022\374\001\n\020Lis" - + "tPhoneNumbers\0228.google.cloud.dialogflow." - + "v2beta1.ListPhoneNumbersRequest\0329.google" - + ".cloud.dialogflow.v2beta1.ListPhoneNumbe" - + "rsResponse\"s\332A\006parent\202\323\344\223\002d\022)/v2beta1/{p" - + "arent=projects/*}/phoneNumbersZ7\0225/v2bet" - + "a1/{parent=projects/*/locations/*}/phone" - + "Numbers\022\273\002\n\021UpdatePhoneNumber\0229.google.c" - + "loud.dialogflow.v2beta1.UpdatePhoneNumbe" - + "rRequest\032,.google.cloud.dialogflow.v2bet" - + "a1.PhoneNumber\"\274\001\332A\030phone_number,update_" - + "mask\202\323\344\223\002\232\00126/v2beta1/{phone_number.name" - + "=projects/*/phoneNumbers/*}:\014phone_numbe" - + "rZR2B/v2beta1/{phone_number.name=project" - + "s/*/locations/*/phoneNumbers/*}:\014phone_n" - + "umber\022\357\001\n\021DeletePhoneNumber\0229.google.clo" - + "ud.dialogflow.v2beta1.DeletePhoneNumberR" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\312\005\n\013PhoneNum" + + "ber\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014phone_number\030\002" + + " \001(\tB\003\340A\003\022!\n\024conversation_profile\030\003 \001(\tB" + + "\003\340A\001\022Y\n\017lifecycle_state\030\004 \001(\0162;.google.c" + + "loud.dialogflow.v2beta1.PhoneNumber.Life" + + "cycleStateB\003\340A\003\022`\n\022allowed_sip_trunks\030\007 " + + "\001(\0132=.google.cloud.dialogflow.v2beta1.Ph" + + "oneNumber.AllowedSipTrunksB\003\340A\001H\000\0223\n\npur" + + "ge_time\030\010 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\032i\n\020AllowedSipTrunks\022;\n\nsip_trunks" + + "\030\001 \003(\tB\'\372A$\n\"dialogflow.googleapis.com/S" + + "ipTrunk\022\030\n\013carrier_ids\030\002 \003(\tB\003\340A\001\"S\n\016Lif" + + "ecycleState\022\037\n\033LIFECYCLE_STATE_UNSPECIFI" + + "ED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUESTED\020\002:\240" + + "\001\352A\234\001\n%dialogflow.googleapis.com/PhoneNu" + + "mber\022.projects/{project}/phoneNumbers/{p" + + "hone_number}\022Cprojects/{project}/locatio" + + "ns/{location}/phoneNumbers/{phone_number" + + "}B\025\n\023inbound_restriction\"W\n\030DeletePhoneN" + + "umberRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dial" + + "ogflow.googleapis.com/PhoneNumber\"Y\n\032Und" + + "eletePhoneNumberRequest\022;\n\004name\030\001 \001(\tB-\340" + + "A\002\372A\'\n%dialogflow.googleapis.com/PhoneNu" + + "mber\"\244\001\n\027ListPhoneNumbersRequest\022=\n\006pare" + + "nt\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googleapis." + + "com/PhoneNumber\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014show_deleted" + + "\030\004 \001(\010B\003\340A\001\"x\n\030ListPhoneNumbersResponse\022" + + "C\n\rphone_numbers\030\001 \003(\0132,.google.cloud.di" + + "alogflow.v2beta1.PhoneNumber\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\231\001\n\030UpdatePhoneNumberReque" + + "st\022G\n\014phone_number\030\001 \001(\0132,.google.cloud." + + "dialogflow.v2beta1.PhoneNumberB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\0012\306\t\n\014PhoneNumbers\022\374\001\n\020ListPhone" + + "Numbers\0228.google.cloud.dialogflow.v2beta" + + "1.ListPhoneNumbersRequest\0329.google.cloud" + + ".dialogflow.v2beta1.ListPhoneNumbersResp" + + "onse\"s\332A\006parent\202\323\344\223\002d\022)/v2beta1/{parent=" + + "projects/*}/phoneNumbersZ7\0225/v2beta1/{pa" + + "rent=projects/*/locations/*}/phoneNumber" + + "s\022\273\002\n\021UpdatePhoneNumber\0229.google.cloud.d" + + "ialogflow.v2beta1.UpdatePhoneNumberReque" + + "st\032,.google.cloud.dialogflow.v2beta1.Pho" + + "neNumber\"\274\001\332A\030phone_number,update_mask\202\323" + + "\344\223\002\232\00126/v2beta1/{phone_number.name=proje" + + "cts/*/phoneNumbers/*}:\014phone_numberZR2B/" + + "v2beta1/{phone_number.name=projects/*/lo" + + "cations/*/phoneNumbers/*}:\014phone_number\022" + + "\357\001\n\021DeletePhoneNumber\0229.google.cloud.dia" + + "logflow.v2beta1.DeletePhoneNumberRequest" + + "\032,.google.cloud.dialogflow.v2beta1.Phone" + + "Number\"q\332A\004name\202\323\344\223\002d*)/v2beta1/{name=pr" + + "ojects/*/phoneNumbers/*}Z7*5/v2beta1/{na" + + "me=projects/*/locations/*/phoneNumbers/*" + + "}\022\214\002\n\023UndeletePhoneNumber\022;.google.cloud" + + ".dialogflow.v2beta1.UndeletePhoneNumberR" + "equest\032,.google.cloud.dialogflow.v2beta1" - + ".PhoneNumber\"q\332A\004name\202\323\344\223\002d*)/v2beta1/{n" - + "ame=projects/*/phoneNumbers/*}Z7*5/v2bet" - + "a1/{name=projects/*/locations/*/phoneNum" - + "bers/*}\022\214\002\n\023UndeletePhoneNumber\022;.google" - + ".cloud.dialogflow.v2beta1.UndeletePhoneN" - + "umberRequest\032,.google.cloud.dialogflow.v" - + "2beta1.PhoneNumber\"\211\001\332A\004name\202\323\344\223\002|\"2/v2b" - + "eta1/{name=projects/*/phoneNumbers/*}:un" - + "delete:\001*ZC\">/v2beta1/{name=projects/*/l" - + "ocations/*/phoneNumbers/*}:undelete:\001*\032x" - + "\312A\031dialogflow.googleapis.com\322AYhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/dialogflow" - + "B\245\001\n#com.google.cloud.dialogflow.v2beta1" - + "B\020PhoneNumberProtoP\001ZCcloud.google.com/g" - + "o/dialogflow/apiv2beta1/dialogflowpb;dia" - + "logflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow" - + ".V2Beta1b\006proto3" + + ".PhoneNumber\"\211\001\332A\004name\202\323\344\223\002|\"2/v2beta1/{" + + "name=projects/*/phoneNumbers/*}:undelete" + + ":\001*ZC\">/v2beta1/{name=projects/*/locatio" + + "ns/*/phoneNumbers/*}:undelete:\001*\032x\312A\031dia" + + "logflow.googleapis.com\322AYhttps://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/dialogflowB\245\001\n#c" + + "om.google.cloud.dialogflow.v2beta1B\020Phon" + + "eNumberProtoP\001ZCcloud.google.com/go/dial" + + "ogflow/apiv2beta1/dialogflowpb;dialogflo" + + "wpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,6 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor = getDescriptor().getMessageType(0); @@ -158,7 +171,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor, new java.lang.String[] { - "Name", "PhoneNumber", "ConversationProfile", "LifecycleState", + "Name", + "PhoneNumber", + "ConversationProfile", + "LifecycleState", + "AllowedSipTrunks", + "PurgeTime", + "InboundRestriction", + }); + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_descriptor.getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_PhoneNumber_AllowedSipTrunks_descriptor, + new java.lang.String[] { + "SipTrunks", "CarrierIds", }); internal_static_google_cloud_dialogflow_v2beta1_DeletePhoneNumberRequest_descriptor = getDescriptor().getMessageType(1); @@ -206,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java new file mode 100644 index 000000000000..9f703401ddd9 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfo.java @@ -0,0 +1,2347 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Debug information related to SearchKnowledge feature.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo} + */ +@com.google.protobuf.Generated +public final class SearchKnowledgeDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + SearchKnowledgeDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeDebugInfo"); + } + + // Use SearchKnowledgeDebugInfo.newBuilder() to construct. + private SearchKnowledgeDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeDebugInfo() { + datastoreResponseReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder.class); + } + + public interface SearchKnowledgeBehaviorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + boolean getAnswerGenerationRewriterOn(); + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + boolean getEndUserMetadataIncluded(); + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project. Note that this field only indicates if the project is
                                                                                                                                          +     * allowlisted for connectors.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + boolean getThirdPartyConnectorAllowed(); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class SearchKnowledgeBehavior extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + SearchKnowledgeBehaviorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchKnowledgeBehavior"); + } + + // Use SearchKnowledgeBehavior.newBuilder() to construct. + private SearchKnowledgeBehavior(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchKnowledgeBehavior() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + public static final int ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER = 1; + private boolean answerGenerationRewriterOn_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + public static final int END_USER_METADATA_INCLUDED_FIELD_NUMBER = 2; + private boolean endUserMetadataIncluded_ = false; + + /** + * + * + *
                                                                                                                                          +     * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + public static final int THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER = 4; + private boolean thirdPartyConnectorAllowed_ = false; + + /** + * + * + *
                                                                                                                                          +     * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +     * project. Note that this field only indicates if the project is
                                                                                                                                          +     * allowlisted for connectors.
                                                                                                                                          +     * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (answerGenerationRewriterOn_ != false) { + output.writeBool(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + output.writeBool(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + output.writeBool(4, thirdPartyConnectorAllowed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answerGenerationRewriterOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerGenerationRewriterOn_); + } + if (endUserMetadataIncluded_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, endUserMetadataIncluded_); + } + if (thirdPartyConnectorAllowed_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, thirdPartyConnectorAllowed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior other = + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + obj; + + if (getAnswerGenerationRewriterOn() != other.getAnswerGenerationRewriterOn()) return false; + if (getEndUserMetadataIncluded() != other.getEndUserMetadataIncluded()) return false; + if (getThirdPartyConnectorAllowed() != other.getThirdPartyConnectorAllowed()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWER_GENERATION_REWRITER_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerGenerationRewriterOn()); + hash = (37 * hash) + END_USER_METADATA_INCLUDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndUserMetadataIncluded()); + hash = (37 * hash) + THIRD_PARTY_CONNECTOR_ALLOWED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThirdPartyConnectorAllowed()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerGenerationRewriterOn_ = false; + endUserMetadataIncluded_ = false; + thirdPartyConnectorAllowed_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_SearchKnowledgeBehavior_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + build() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerGenerationRewriterOn_ = answerGenerationRewriterOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endUserMetadataIncluded_ = endUserMetadataIncluded_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thirdPartyConnectorAllowed_ = thirdPartyConnectorAllowed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance()) return this; + if (other.getAnswerGenerationRewriterOn() != false) { + setAnswerGenerationRewriterOn(other.getAnswerGenerationRewriterOn()); + } + if (other.getEndUserMetadataIncluded() != false) { + setEndUserMetadataIncluded(other.getEndUserMetadataIncluded()); + } + if (other.getThirdPartyConnectorAllowed() != false) { + setThirdPartyConnectorAllowed(other.getThirdPartyConnectorAllowed()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + answerGenerationRewriterOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endUserMetadataIncluded_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + thirdPartyConnectorAllowed_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean answerGenerationRewriterOn_; + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return The answerGenerationRewriterOn. + */ + @java.lang.Override + public boolean getAnswerGenerationRewriterOn() { + return answerGenerationRewriterOn_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @param value The answerGenerationRewriterOn to set. + * @return This builder for chaining. + */ + public Builder setAnswerGenerationRewriterOn(boolean value) { + + answerGenerationRewriterOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether data store agent rewriter was turned on for the request.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool answer_generation_rewriter_on = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerGenerationRewriterOn() { + bitField0_ = (bitField0_ & ~0x00000001); + answerGenerationRewriterOn_ = false; + onChanged(); + return this; + } + + private boolean endUserMetadataIncluded_; + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return The endUserMetadataIncluded. + */ + @java.lang.Override + public boolean getEndUserMetadataIncluded() { + return endUserMetadataIncluded_; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @param value The endUserMetadataIncluded to set. + * @return This builder for chaining. + */ + public Builder setEndUserMetadataIncluded(boolean value) { + + endUserMetadataIncluded_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Whether end_user_metadata is included in the data store agent call.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool end_user_metadata_included = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndUserMetadataIncluded() { + bitField0_ = (bitField0_ & ~0x00000002); + endUserMetadataIncluded_ = false; + onChanged(); + return this; + } + + private boolean thirdPartyConnectorAllowed_; + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return The thirdPartyConnectorAllowed. + */ + @java.lang.Override + public boolean getThirdPartyConnectorAllowed() { + return thirdPartyConnectorAllowed_; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @param value The thirdPartyConnectorAllowed to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyConnectorAllowed(boolean value) { + + thirdPartyConnectorAllowed_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * This field indicates whether third party connectors are enabled for the
                                                                                                                                          +       * project. Note that this field only indicates if the project is
                                                                                                                                          +       * allowlisted for connectors.
                                                                                                                                          +       * 
                                                                                                                                          + * + * bool third_party_connector_allowed = 4; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyConnectorAllowed() { + bitField0_ = (bitField0_ & ~0x00000004); + thirdPartyConnectorAllowed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior) + private static final com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior(); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeBehavior parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 1; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 3; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceLatency()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchKnowledgeBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceLatency()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) obj; + + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasSearchKnowledgeBehavior() != other.hasSearchKnowledgeBehavior()) return false; + if (hasSearchKnowledgeBehavior()) { + if (!getSearchKnowledgeBehavior().equals(other.getSearchKnowledgeBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasSearchKnowledgeBehavior()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Debug information related to SearchKnowledge feature.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSearchKnowledgeBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datastoreResponseReason_ = 0; + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SearchKnowledgeDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo buildPartial() { + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result = + new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchKnowledgeBehavior_ = + searchKnowledgeBehaviorBuilder_ == null + ? searchKnowledgeBehavior_ + : searchKnowledgeBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance()) + return this; + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasSearchKnowledgeBehavior()) { + mergeSearchKnowledgeBehavior(other.getSearchKnowledgeBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + datastoreResponseReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Response reason from datastore which indicates data serving status or
                                                                                                                                          +     * answer quality degradation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000001); + datastoreResponseReason_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + searchKnowledgeBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + searchKnowledgeBehaviorBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + public boolean hasSearchKnowledgeBehavior() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior() { + if (searchKnowledgeBehaviorBuilder_ == null) { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } else { + return searchKnowledgeBehaviorBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeBehavior_ = value; + } else { + searchKnowledgeBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder setSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior.Builder + builderForValue) { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehavior_ = builderForValue.build(); + } else { + searchKnowledgeBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder mergeSearchKnowledgeBehavior( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + value) { + if (searchKnowledgeBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchKnowledgeBehavior_ != null + && searchKnowledgeBehavior_ + != com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior.getDefaultInstance()) { + getSearchKnowledgeBehaviorBuilder().mergeFrom(value); + } else { + searchKnowledgeBehavior_ = value; + } + } else { + searchKnowledgeBehaviorBuilder_.mergeFrom(value); + } + if (searchKnowledgeBehavior_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public Builder clearSearchKnowledgeBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + searchKnowledgeBehavior_ = null; + if (searchKnowledgeBehaviorBuilder_ != null) { + searchKnowledgeBehaviorBuilder_.dispose(); + searchKnowledgeBehaviorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder + getSearchKnowledgeBehaviorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSearchKnowledgeBehaviorFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder() { + if (searchKnowledgeBehaviorBuilder_ != null) { + return searchKnowledgeBehaviorBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .getDefaultInstance() + : searchKnowledgeBehavior_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Configured behaviors for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder> + internalGetSearchKnowledgeBehaviorFieldBuilder() { + if (searchKnowledgeBehaviorBuilder_ == null) { + searchKnowledgeBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehavior, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .SearchKnowledgeBehaviorOrBuilder>( + getSearchKnowledgeBehavior(), getParentForChildren(), isClean()); + searchKnowledgeBehavior_ = null; + } + return searchKnowledgeBehaviorBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Information about parameters ingested for search knowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; + } + + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } else { + return serviceLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceLatency_ = value; + } else { + serviceLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); + } else { + serviceLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); + } else { + serviceLatency_ = value; + } + } else { + serviceLatencyBuilder_.mergeFrom(value); + } + if (serviceLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); + } else { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + } + + /** + * + * + *
                                                                                                                                          +     * The latency of the service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; + } + return serviceLatencyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchKnowledgeDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java new file mode 100644 index 000000000000..2175c8fb7ba6 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeDebugInfoOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface SearchKnowledgeDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + int getDatastoreResponseReasonValue(); + + /** + * + * + *
                                                                                                                                          +   * Response reason from datastore which indicates data serving status or
                                                                                                                                          +   * answer quality degradation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 1; + * + * + * @return The datastoreResponseReason. + */ + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return Whether the searchKnowledgeBehavior field is set. + */ + boolean hasSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + * + * @return The searchKnowledgeBehavior. + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior + getSearchKnowledgeBehavior(); + + /** + * + * + *
                                                                                                                                          +   * Configured behaviors for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehavior search_knowledge_behavior = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.SearchKnowledgeBehaviorOrBuilder + getSearchKnowledgeBehaviorOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + boolean hasIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Information about parameters ingested for search knowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return Whether the serviceLatency field is set. + */ + boolean hasServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + * + * @return The serviceLatency. + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency(); + + /** + * + * + *
                                                                                                                                          +   * The latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 4; + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java index 8a407338e971..dd6bf4a3fae6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponse.java @@ -72,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse.Builder.class); } + private int bitField0_; public static final int ANSWERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -209,6 +210,67 @@ public com.google.protobuf.ByteString getRewrittenQueryBytes() { } } + public static final int SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + @java.lang.Override + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getSearchKnowledgeDebugInfo() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchKnowledgeDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -244,6 +309,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rewrittenQuery_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSearchKnowledgeDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +332,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAnswersList().equals(other.getAnswersList())) return false; if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (hasSearchKnowledgeDebugInfo() != other.hasSearchKnowledgeDebugInfo()) return false; + if (hasSearchKnowledgeDebugInfo()) { + if (!getSearchKnowledgeDebugInfo().equals(other.getSearchKnowledgeDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,6 +353,10 @@ public int hashCode() { } hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (hasSearchKnowledgeDebugInfo()) { + hash = (37 * hash) + SEARCH_KNOWLEDGE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSearchKnowledgeDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -411,10 +489,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswersFieldBuilder(); + internalGetSearchKnowledgeDebugInfoFieldBuilder(); + } } @java.lang.Override @@ -429,6 +517,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rewrittenQuery_ = ""; + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } return this; } @@ -482,6 +575,15 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRe if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchKnowledgeDebugInfo_ = + searchKnowledgeDebugInfoBuilder_ == null + ? searchKnowledgeDebugInfo_ + : searchKnowledgeDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -529,6 +631,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SearchKnowledgeResp bitField0_ |= 0x00000002; onChanged(); } + if (other.hasSearchKnowledgeDebugInfo()) { + mergeSearchKnowledgeDebugInfo(other.getSearchKnowledgeDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -575,6 +680,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1105,6 +1218,226 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo searchKnowledgeDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder> + searchKnowledgeDebugInfoBuilder_; + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + public boolean hasSearchKnowledgeDebugInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + getSearchKnowledgeDebugInfo() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } else { + return searchKnowledgeDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchKnowledgeDebugInfo_ = value; + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder setSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder builderForValue) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfo_ = builderForValue.build(); + } else { + searchKnowledgeDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder mergeSearchKnowledgeDebugInfo( + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo value) { + if (searchKnowledgeDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchKnowledgeDebugInfo_ != null + && searchKnowledgeDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo + .getDefaultInstance()) { + getSearchKnowledgeDebugInfoBuilder().mergeFrom(value); + } else { + searchKnowledgeDebugInfo_ = value; + } + } else { + searchKnowledgeDebugInfoBuilder_.mergeFrom(value); + } + if (searchKnowledgeDebugInfo_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public Builder clearSearchKnowledgeDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + searchKnowledgeDebugInfo_ = null; + if (searchKnowledgeDebugInfoBuilder_ != null) { + searchKnowledgeDebugInfoBuilder_.dispose(); + searchKnowledgeDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder + getSearchKnowledgeDebugInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchKnowledgeDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder() { + if (searchKnowledgeDebugInfoBuilder_ != null) { + return searchKnowledgeDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return searchKnowledgeDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.getDefaultInstance() + : searchKnowledgeDebugInfo_; + } + } + + /** + * + * + *
                                                                                                                                          +     * Debug info for SearchKnowledge.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder> + internalGetSearchKnowledgeDebugInfoFieldBuilder() { + if (searchKnowledgeDebugInfoBuilder_ == null) { + searchKnowledgeDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder>( + getSearchKnowledgeDebugInfo(), getParentForChildren(), isClean()); + searchKnowledgeDebugInfo_ = null; + } + return searchKnowledgeDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java index bb4e7d23542e..b09434567139 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeResponseOrBuilder.java @@ -112,4 +112,48 @@ public interface SearchKnowledgeResponseOrBuilder * @return The bytes for rewrittenQuery. */ com.google.protobuf.ByteString getRewrittenQueryBytes(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return Whether the searchKnowledgeDebugInfo field is set. + */ + boolean hasSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + * + * @return The searchKnowledgeDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo getSearchKnowledgeDebugInfo(); + + /** + * + * + *
                                                                                                                                          +   * Debug info for SearchKnowledge.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfoOrBuilder + getSearchKnowledgeDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java new file mode 100644 index 000000000000..437aea3828cb --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatency.java @@ -0,0 +1,2400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * Message to represent the latency of the service.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency} + */ +@com.google.protobuf.Generated +public final class ServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ServiceLatency) + ServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceLatency"); + } + + // Use ServiceLatency.newBuilder() to construct. + private ServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceLatency() { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder.class); + } + + public interface InternalServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + java.lang.String getStep(); + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + com.google.protobuf.ByteString getStepBytes(); + + /** + * + * + *
                                                                                                                                          +     * The latency of the internal service in milliseconds.
                                                                                                                                          +     * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + float getLatencyMs(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + } + + /** + * + * + *
                                                                                                                                          +   * Message to represent the latency of an internal service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency} + */ + public static final class InternalServiceLatency extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + InternalServiceLatencyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InternalServiceLatency"); + } + + // Use InternalServiceLatency.newBuilder() to construct. + private InternalServiceLatency(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InternalServiceLatency() { + step_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + .class); + } + + private int bitField0_; + public static final int STEP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + @java.lang.Override + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +     * The name of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATENCY_MS_FIELD_NUMBER = 2; + private float latencyMs_ = 0F; + + /** + * + * + *
                                                                                                                                          +     * The latency of the internal service in milliseconds.
                                                                                                                                          +     * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
                                                                                                                                          +     * The start time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
                                                                                                                                          +     * The completion time of the internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + output.writeFloat(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCompleteTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(step_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, step_); + } + if (java.lang.Float.floatToRawIntBits(latencyMs_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, latencyMs_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency other = + (com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) obj; + + if (!getStep().equals(other.getStep())) return false; + if (java.lang.Float.floatToIntBits(getLatencyMs()) + != java.lang.Float.floatToIntBits(other.getLatencyMs())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + hash = (37 * hash) + LATENCY_MS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatencyMs()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +     * Message to represent the latency of an internal service.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + step_ = ""; + latencyMs_ = 0F; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_InternalServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency build() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + buildPartial() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.latencyMs_ = latencyMs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency other) { + if (other + == com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()) return this; + if (!other.getStep().isEmpty()) { + step_ = other.step_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getLatencyMs()) != 0) { + setLatencyMs(other.getLatencyMs()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + latencyMs_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object step_ = ""; + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return The step. + */ + public java.lang.String getStep() { + java.lang.Object ref = step_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + step_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return The bytes for step. + */ + public com.google.protobuf.ByteString getStepBytes() { + java.lang.Object ref = step_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + step_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The name of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string step = 1; + * + * @param value The bytes for step to set. + * @return This builder for chaining. + */ + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + step_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float latencyMs_; + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return The latencyMs. + */ + @java.lang.Override + public float getLatencyMs() { + return latencyMs_; + } + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @param value The latencyMs to set. + * @return This builder for chaining. + */ + public Builder setLatencyMs(float value) { + + latencyMs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The latency of the internal service in milliseconds.
                                                                                                                                          +       * 
                                                                                                                                          + * + * float latency_ms = 2; + * + * @return This builder for chaining. + */ + public Builder clearLatencyMs() { + bitField0_ = (bitField0_ & ~0x00000002); + latencyMs_ = 0F; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
                                                                                                                                          +       * The start time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
                                                                                                                                          +       * The completion time of the internal service.
                                                                                                                                          +       * 
                                                                                                                                          + * + * .google.protobuf.Timestamp complete_time = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency) + private static final com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalServiceLatency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + internalServiceLatencies_; + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List + getInternalServiceLatenciesList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + return internalServiceLatencies_; + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public int getInternalServiceLatenciesCount() { + return internalServiceLatencies_.size(); + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + return internalServiceLatencies_.get(index); + } + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + return internalServiceLatencies_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + output.writeMessage(1, internalServiceLatencies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < internalServiceLatencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, internalServiceLatencies_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ServiceLatency other = + (com.google.cloud.dialogflow.v2beta1.ServiceLatency) obj; + + if (!getInternalServiceLatenciesList().equals(other.getInternalServiceLatenciesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInternalServiceLatenciesCount() > 0) { + hash = (37 * hash) + INTERNAL_SERVICE_LATENCIES_FIELD_NUMBER; + hash = (53 * hash) + getInternalServiceLatenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ServiceLatency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * Message to represent the latency of the service.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ServiceLatency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ServiceLatency) + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.class, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ServiceLatency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + } else { + internalServiceLatencies_ = null; + internalServiceLatenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_ServiceLatency_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency build() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency buildPartial() { + com.google.cloud.dialogflow.v2beta1.ServiceLatency result = + new com.google.cloud.dialogflow.v2beta1.ServiceLatency(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.ServiceLatency result) { + if (internalServiceLatenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + java.util.Collections.unmodifiableList(internalServiceLatencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.internalServiceLatencies_ = internalServiceLatencies_; + } else { + result.internalServiceLatencies_ = internalServiceLatenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ServiceLatency result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ServiceLatency) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ServiceLatency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ServiceLatency other) { + if (other == com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) + return this; + if (internalServiceLatenciesBuilder_ == null) { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatencies_.isEmpty()) { + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.addAll(other.internalServiceLatencies_); + } + onChanged(); + } + } else { + if (!other.internalServiceLatencies_.isEmpty()) { + if (internalServiceLatenciesBuilder_.isEmpty()) { + internalServiceLatenciesBuilder_.dispose(); + internalServiceLatenciesBuilder_ = null; + internalServiceLatencies_ = other.internalServiceLatencies_; + bitField0_ = (bitField0_ & ~0x00000001); + internalServiceLatenciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInternalServiceLatenciesFieldBuilder() + : null; + } else { + internalServiceLatenciesBuilder_.addAllMessages(other.internalServiceLatencies_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .parser(), + extensionRegistry); + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(m); + } else { + internalServiceLatenciesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency> + internalServiceLatencies_ = java.util.Collections.emptyList(); + + private void ensureInternalServiceLatenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + internalServiceLatencies_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency>( + internalServiceLatencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + internalServiceLatenciesBuilder_; + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List + getInternalServiceLatenciesList() { + if (internalServiceLatenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } else { + return internalServiceLatenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public int getInternalServiceLatenciesCount() { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.size(); + } else { + return internalServiceLatenciesBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder setInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.set(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency value) { + if (internalServiceLatenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, value); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addInternalServiceLatencies( + int index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + builderForValue) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.add(index, builderForValue.build()); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder addAllInternalServiceLatencies( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency> + values) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, internalServiceLatencies_); + onChanged(); + } else { + internalServiceLatenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder clearInternalServiceLatencies() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + internalServiceLatenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public Builder removeInternalServiceLatencies(int index) { + if (internalServiceLatenciesBuilder_ == null) { + ensureInternalServiceLatenciesIsMutable(); + internalServiceLatencies_.remove(index); + onChanged(); + } else { + internalServiceLatenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + getInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index) { + if (internalServiceLatenciesBuilder_ == null) { + return internalServiceLatencies_.get(index); + } else { + return internalServiceLatenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList() { + if (internalServiceLatenciesBuilder_ != null) { + return internalServiceLatenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(internalServiceLatencies_); + } + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder() { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder + addInternalServiceLatenciesBuilder(int index) { + return internalGetInternalServiceLatenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + .getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +     * A list of internal service latencies.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder> + getInternalServiceLatenciesBuilderList() { + return internalGetInternalServiceLatenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + internalGetInternalServiceLatenciesFieldBuilder() { + if (internalServiceLatenciesBuilder_ == null) { + internalServiceLatenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder>( + internalServiceLatencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + internalServiceLatencies_ = null; + } + return internalServiceLatenciesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ServiceLatency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ServiceLatency) + private static final com.google.cloud.dialogflow.v2beta1.ServiceLatency DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ServiceLatency(); + } + + public static com.google.cloud.dialogflow.v2beta1.ServiceLatency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLatency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java new file mode 100644 index 000000000000..509fdf69969a --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ServiceLatencyOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/participant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface ServiceLatencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ServiceLatency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List + getInternalServiceLatenciesList(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency + getInternalServiceLatencies(int index); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + int getInternalServiceLatenciesCount(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder> + getInternalServiceLatenciesOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +   * A list of internal service latencies.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency internal_service_latencies = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatencyOrBuilder + getInternalServiceLatenciesOrBuilder(int index); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java index 5066096f0f72..1419182117ea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestConversationSummaryResponse.java @@ -176,6 +176,86 @@ java.lang.String getTextSectionsOrDefault( */ java.lang.String getTextSectionsOrThrow(java.lang.String key); + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection + getSortedTextSections(int index); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + int getSortedTextSectionsCount(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList(); + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index); + /** * * @@ -266,6 +346,7 @@ private Summary(com.google.protobuf.GeneratedMessage.Builder builder) { private Summary() { text_ = ""; + sortedTextSections_ = java.util.Collections.emptyList(); answerRecord_ = ""; baselineModelVersion_ = ""; } @@ -298,6 +379,901 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl .class); } + public interface SummarySectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + java.lang.String getSection(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + com.google.protobuf.ByteString getSectionBytes(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + } + + /** + * + * + *
                                                                                                                                          +     * A component of the generated summary.
                                                                                                                                          +     * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class SummarySection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + SummarySectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummarySection"); + } + + // Use SummarySection.newBuilder() to construct. + private SummarySection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummarySection() { + section_ = ""; + summary_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + public static final int SECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + @java.lang.Override + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +       * Output only. Name of the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +       * Output only. Summary text for the section.
                                                                                                                                          +       * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(section_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, section_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, summary_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + other = + (com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) + obj; + + if (!getSection().equals(other.getSection())) return false; + if (!getSummary().equals(other.getSummary())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SECTION_FIELD_NUMBER; + hash = (53 * hash) + getSection().hashCode(); + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +       * A component of the generated summary.
                                                                                                                                          +       * 
                                                                                                                                          + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.class, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + section_ = ""; + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProto + .internal_static_google_cloud_dialogflow_v2beta1_SuggestConversationSummaryResponse_Summary_SummarySection_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + build() { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + buildPartial() { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result = + new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.section_ = section_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()) return this; + if (!other.getSection().isEmpty()) { + section_ = other.section_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + section_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object section_ = ""; + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The section. + */ + public java.lang.String getSection() { + java.lang.Object ref = section_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + section_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for section. + */ + public com.google.protobuf.ByteString getSectionBytes() { + java.lang.Object ref = section_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + section_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The section to set. + * @return This builder for chaining. + */ + public Builder setSection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSection() { + section_ = getDefaultInstance().getSection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Name of the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for section to set. + * @return This builder for chaining. + */ + public Builder setSectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + section_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object summary_ = ""; + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +         * Output only. Summary text for the section.
                                                                                                                                          +         * 
                                                                                                                                          + * + * string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection) + private static final com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse + .Summary.SummarySection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection(); + } + + public static com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int TEXT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -468,6 +1444,110 @@ public java.lang.String getTextSectionsOrThrow(java.lang.String key) { return map.get(key); } + public static final int SORTED_TEXT_SECTIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + sortedTextSections_; + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + return sortedTextSections_; + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public int getSortedTextSectionsCount() { + return sortedTextSections_.size(); + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + return sortedTextSections_.get(index); + } + + /** + * + * + *
                                                                                                                                          +     * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +     * of the sections in the generator.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + return sortedTextSections_.get(index); + } + public static final int ANSWER_RECORD_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -603,6 +1683,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + output.writeMessage(6, sortedTextSections_.get(i)); + } getUnknownFields().writeTo(output); } @@ -631,6 +1714,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baselineModelVersion_); } + for (int i = 0; i < sortedTextSections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, sortedTextSections_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -651,6 +1738,7 @@ public boolean equals(final java.lang.Object obj) { if (!getText().equals(other.getText())) return false; if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; + if (!getSortedTextSectionsList().equals(other.getSortedTextSectionsList())) return false; if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -670,6 +1758,10 @@ public int hashCode() { hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetTextSections().hashCode(); } + if (getSortedTextSectionsCount() > 0) { + hash = (37 * hash) + SORTED_TEXT_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSortedTextSectionsList().hashCode(); + } hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; hash = (53 * hash) + getAnswerRecord().hashCode(); hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; @@ -849,6 +1941,13 @@ public Builder clear() { bitField0_ = 0; text_ = ""; internalGetMutableTextSections().clear(); + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + } else { + sortedTextSections_ = null; + sortedTextSectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); answerRecord_ = ""; baselineModelVersion_ = ""; return this; @@ -884,6 +1983,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result = new com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary( this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -891,6 +1991,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result) { + if (sortedTextSectionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = java.util.Collections.unmodifiableList(sortedTextSections_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sortedTextSections_ = sortedTextSections_; + } else { + result.sortedTextSections_ = sortedTextSectionsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary result) { int from_bitField0_ = bitField0_; @@ -901,10 +2014,10 @@ private void buildPartial0( result.textSections_ = internalGetTextSections(); result.textSections_.makeImmutable(); } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.baselineModelVersion_ = baselineModelVersion_; } } @@ -935,14 +2048,41 @@ public Builder mergeFrom( } internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); bitField0_ |= 0x00000002; + if (sortedTextSectionsBuilder_ == null) { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSections_.isEmpty()) { + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.addAll(other.sortedTextSections_); + } + onChanged(); + } + } else { + if (!other.sortedTextSections_.isEmpty()) { + if (sortedTextSectionsBuilder_.isEmpty()) { + sortedTextSectionsBuilder_.dispose(); + sortedTextSectionsBuilder_ = null; + sortedTextSections_ = other.sortedTextSections_; + bitField0_ = (bitField0_ & ~0x00000004); + sortedTextSectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSortedTextSectionsFieldBuilder() + : null; + } else { + sortedTextSectionsBuilder_.addAllMessages(other.sortedTextSections_); + } + } + } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getBaselineModelVersion().isEmpty()) { baselineModelVersion_ = other.baselineModelVersion_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -980,7 +2120,7 @@ public Builder mergeFrom( case 26: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -998,9 +2138,26 @@ public Builder mergeFrom( case 42: { baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse + .Summary.SummarySection.parser(), + extensionRegistry); + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(m); + } else { + sortedTextSectionsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1320,6 +2477,490 @@ public Builder putAllTextSections(java.util.Map + sortedTextSections_ = java.util.Collections.emptyList(); + + private void ensureSortedTextSectionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sortedTextSections_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection>(sortedTextSections_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + sortedTextSectionsBuilder_; + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + getSortedTextSectionsList() { + if (sortedTextSectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } else { + return sortedTextSectionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public int getSortedTextSectionsCount() { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.size(); + } else { + return sortedTextSectionsBuilder_.getCount(); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + getSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder setSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.set(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection + value) { + if (sortedTextSectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, value); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addSortedTextSections( + int index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + builderForValue) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.add(index, builderForValue.build()); + onChanged(); + } else { + sortedTextSectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder addAllSortedTextSections( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection> + values) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sortedTextSections_); + onChanged(); + } else { + sortedTextSectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder clearSortedTextSections() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sortedTextSectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public Builder removeSortedTextSections(int index) { + if (sortedTextSectionsBuilder_ == null) { + ensureSortedTextSectionsIsMutable(); + sortedTextSections_.remove(index); + onChanged(); + } else { + sortedTextSectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + getSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder + getSortedTextSectionsOrBuilder(int index) { + if (sortedTextSectionsBuilder_ == null) { + return sortedTextSections_.get(index); + } else { + return sortedTextSectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + getSortedTextSectionsOrBuilderList() { + if (sortedTextSectionsBuilder_ != null) { + return sortedTextSectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sortedTextSections_); + } + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder() { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder + addSortedTextSectionsBuilder(int index) { + return internalGetSortedTextSectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.getDefaultInstance()); + } + + /** + * + * + *
                                                                                                                                          +       * Same as text_sections, but in an order that is consistent with the order
                                                                                                                                          +       * of the sections in the generator.
                                                                                                                                          +       * 
                                                                                                                                          + * + * + * repeated .google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary.SummarySection sorted_text_sections = 6; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder> + getSortedTextSectionsBuilderList() { + return internalGetSortedTextSectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder> + internalGetSortedTextSectionsFieldBuilder() { + if (sortedTextSectionsBuilder_ == null) { + sortedTextSectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySection.Builder, + com.google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse.Summary + .SummarySectionOrBuilder>( + sortedTextSections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sortedTextSections_ = null; + } + return sortedTextSectionsBuilder_; + } + private java.lang.Object answerRecord_ = ""; /** @@ -1388,7 +3029,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1407,7 +3048,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1431,7 +3072,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1504,7 +3145,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { throw new NullPointerException(); } baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1523,7 +3164,7 @@ public Builder setBaselineModelVersion(java.lang.String value) { */ public Builder clearBaselineModelVersion() { baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1547,7 +3188,7 @@ public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); baselineModelVersion_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java index 12bce9231114..d33f54c3a91c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCall.java @@ -254,6 +254,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(11), + CES_TOOLSET(12), + CES_APP(8), SOURCE_NOT_SET(0); private final int value; @@ -275,6 +278,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 11: + return CES_TOOL; + case 12: + return CES_TOOLSET; + case 8: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -376,6 +385,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 8; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 8; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 8) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 8) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 8) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -772,12 +1036,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } + if (sourceCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } getUnknownFields().writeTo(output); } @@ -806,12 +1079,21 @@ public int getSerializedSize() { != com.google.cloud.dialogflow.v2beta1.ToolCall.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } + if (sourceCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, source_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, toolDisplayName_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayDetails_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, toolDisplayDetails_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -846,6 +1128,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 11: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 12: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 8: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -883,6 +1174,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 11: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 12: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 8: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1090,29 +1393,29 @@ public com.google.cloud.dialogflow.v2beta1.ToolCall buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCall result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.toolDisplayName_ = toolDisplayName_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.toolDisplayDetails_ = toolDisplayDetails_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.inputParameters_ = inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -1137,17 +1440,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCall other) { if (other == com.google.cloud.dialogflow.v2beta1.ToolCall.getDefaultInstance()) return this; if (!other.getToolDisplayName().isEmpty()) { toolDisplayName_ = other.toolDisplayName_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getToolDisplayDetails().isEmpty()) { toolDisplayDetails_ = other.toolDisplayDetails_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputParameters()) { @@ -1158,180 +1461,711 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCall other) { } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } - switch (other.getSourceCase()) { - case TOOL: - { - sourceCase_ = 1; - source_ = other.source_; - onChanged(); - break; - } - case SOURCE_NOT_SET: - { - break; - } + switch (other.getSourceCase()) { + case TOOL: + { + sourceCase_ = 1; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOL: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 8; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 56 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 8; + source_ = s; + break; + } // case 66 + case 74: + { + toolDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + toolDisplayDetails_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return sourceCase_ == 1; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 1) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 1) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 1) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          +     * with this call. Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } // case 10 - case 18: - { - action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetInputParametersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 50: - { - answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 74: - { - toolDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 82: - { - toolDisplayDetails_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + sourceCase_ = 12; + source_ = value; + onChanged(); return this; } - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; onChanged(); return this; } - private int bitField0_; - /** * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the tool field is set. + * @return Whether the cesApp field is set. */ @java.lang.Override - public boolean hasTool() { - return sourceCase_ == 1; + public boolean hasCesApp() { + return sourceCase_ == 8; } /** * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The tool. + * @return The cesApp. */ @java.lang.Override - public java.lang.String getTool() { + public java.lang.String getCesApp() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = s; } return s; @@ -1344,27 +2178,27 @@ public java.lang.String getTool() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The bytes for tool. + * @return The bytes for cesApp. */ @java.lang.Override - public com.google.protobuf.ByteString getToolBytes() { + public com.google.protobuf.ByteString getCesAppBytes() { java.lang.Object ref = ""; - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceCase_ == 1) { + if (sourceCase_ == 8) { source_ = b; } return b; @@ -1377,23 +2211,23 @@ public com.google.protobuf.ByteString getToolBytes() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The tool to set. + * @param value The cesApp to set. * @return This builder for chaining. */ - public Builder setTool(java.lang.String value) { + public Builder setCesApp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1403,19 +2237,19 @@ public Builder setTool(java.lang.String value) { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ - public Builder clearTool() { - if (sourceCase_ == 1) { + public Builder clearCesApp() { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); @@ -1427,24 +2261,24 @@ public Builder clearTool() { * * *
                                                                                                                                          -     * Optional. The [tool][google.cloud.dialogflow.v2beta1.Tool] associated
                                                                                                                                          -     * with this call. Format:
                                                                                                                                          -     * `projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>`.
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                                * 
                                                                                                                                          * * - * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The bytes for tool to set. + * @param value The bytes for cesApp to set. * @return This builder for chaining. */ - public Builder setToolBytes(com.google.protobuf.ByteString value) { + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceCase_ = 1; + sourceCase_ = 8; source_ = value; onChanged(); return this; @@ -1515,7 +2349,7 @@ public Builder setToolDisplayName(java.lang.String value) { throw new NullPointerException(); } toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1533,7 +2367,7 @@ public Builder setToolDisplayName(java.lang.String value) { */ public Builder clearToolDisplayName() { toolDisplayName_ = getDefaultInstance().getToolDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1556,7 +2390,7 @@ public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); toolDisplayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1626,7 +2460,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { throw new NullPointerException(); } toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1644,7 +2478,7 @@ public Builder setToolDisplayDetails(java.lang.String value) { */ public Builder clearToolDisplayDetails() { toolDisplayDetails_ = getDefaultInstance().getToolDisplayDetails(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1667,7 +2501,7 @@ public Builder setToolDisplayDetailsBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); toolDisplayDetails_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1737,7 +2571,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1755,7 +2589,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -1778,7 +2612,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1803,7 +2637,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { * @return Whether the inputParameters field is set. */ public boolean hasInputParameters() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1847,7 +2681,7 @@ public Builder setInputParameters(com.google.protobuf.Struct value) { } else { inputParametersBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1868,7 +2702,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV } else { inputParametersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1885,7 +2719,7 @@ public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForV */ public Builder mergeInputParameters(com.google.protobuf.Struct value) { if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && inputParameters_ != null && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { getInputParametersBuilder().mergeFrom(value); @@ -1896,7 +2730,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { inputParametersBuilder_.mergeFrom(value); } if (inputParameters_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1913,7 +2747,7 @@ public Builder mergeInputParameters(com.google.protobuf.Struct value) { * */ public Builder clearInputParameters() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); inputParameters_ = null; if (inputParametersBuilder_ != null) { inputParametersBuilder_.dispose(); @@ -1934,7 +2768,7 @@ public Builder clearInputParameters() { * */ public com.google.protobuf.Struct.Builder getInputParametersBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return internalGetInputParametersFieldBuilder().getBuilder(); } @@ -2007,7 +2841,7 @@ public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2053,7 +2887,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2075,7 +2909,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2093,7 +2927,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2104,7 +2938,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2122,7 +2956,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2144,7 +2978,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2263,7 +3097,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2281,7 +3115,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2304,7 +3138,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2345,7 +3179,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2390,7 +3224,7 @@ public Builder setState(com.google.cloud.dialogflow.v2beta1.ToolCall.State value if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -2410,7 +3244,7 @@ public Builder setState(com.google.cloud.dialogflow.v2beta1.ToolCall.State value * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java index 78f2ffbde798..2bba3db7fcb4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java index 7763302c3fef..5b7a57cb8179 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallProto.java @@ -61,49 +61,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "/google/cloud/dialogflow/v2beta1/tool_call.proto\022\037google.cloud.dialogflow.v2bet" + "\n/google/cloud/dialogflow/v2beta1/tool_c" + + "all.proto\022\037google.cloud.dialogflow.v2bet" + "a1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\034google/protobuf/" - + "struct.proto\032\037google/protobuf/timestamp.proto\"\272\003\n" - + "\010ToolCall\0226\n" - + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\036\n" - + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n" - + "\024tool_display_details\030\n" - + " \001(\tB\003\340A\001\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\0226\n" - + "\020input_parameters\030\003" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" - + "\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" - + "answer_record\030\006 \001(\tB\003\340A\001\022C\n" - + "\005state\030\007 \001(\0162/.go" - + "ogle.cloud.dialogflow.v2beta1.ToolCall.StateB\003\340A\003\"E\n" - + "\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\r\n" - + "\tTRIGGERED\020\001\022\026\n" - + "\022NEEDS_CONFIRMATION\020\002B\010\n" - + "\006source\"\324\002\n" - + "\016ToolCallResult\0226\n" - + "\004tool\030\001 \001(\tB&\340A\001\372A \n" - + "\036dialogflow.googleapis.com/ToolH\000\022\023\n" - + "\006action\030\002 \001(\tB\003\340A\001\022F\n" - + "\005error\030\003 \001(" - + "\01325.google.cloud.dialogflow.v2beta1.ToolCallResult.ErrorH\001\022\025\n" - + "\013raw_content\030\005 \001(\014H\001\022\021\n" - + "\007content\030\006 \001(\tH\001\0224\n" - + "\013create_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\r" - + "answer_record\030\t \001(\tB\003\340A\001\032\035\n" - + "\005Error\022\024\n" - + "\007message\030\001 \001(\tB\003\340A\001B\010\n" - + "\006sourceB\010\n" - + "\006resultB\242\001\n" - + "#com.google.cloud.dialogflow.v2beta1B\r" - + "ToolCallProtoP\001ZCcloud.google.com/go/dialogfl" - + "ow/apiv2beta1/dialogflowpb;dialogflowpb\242" - + "\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\"\335\004\n\010ToolCall\0226\n\004tool\030\001 \001(\tB&\340A\001\372A " + + "\n\036dialogflow.googleapis.com/ToolH\000\0223\n\010ce" + + "s_tool\030\013 \001(\tB\037\340A\001\372A\031\n\027ces.googleapis.com" + + "/ToolH\000\0229\n\013ces_toolset\030\014 \001(\tB\"\340A\001\372A\034\n\032ce" + + "s.googleapis.com/ToolsetH\000\0221\n\007ces_app\030\010 " + + "\001(\tB\036\340A\001\372A\030\n\026ces.googleapis.com/AppH\000\022\036\n" + + "\021tool_display_name\030\t \001(\tB\003\340A\001\022!\n\024tool_di" + + "splay_details\030\n \001(\tB\003\340A\001\022\023\n\006action\030\002 \001(\t" + + "B\003\340A\001\0226\n\020input_parameters\030\003 \001(\0132\027.google" + + ".protobuf.StructB\003\340A\001\0224\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n\ra" + + "nswer_record\030\006 \001(\tB\003\340A\001\022C\n\005state\030\007 \001(\0162/" + + ".google.cloud.dialogflow.v2beta1.ToolCal" + + "l.StateB\003\340A\003\"E\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\r\n\tTRIGGERED\020\001\022\026\n\022NEEDS_CONFIRMATIO" + + "N\020\002B\010\n\006source\"\367\003\n\016ToolCallResult\0226\n\004tool" + + "\030\001 \001(\tB&\340A\001\372A \n\036dialogflow.googleapis.co" + + "m/ToolH\000\0223\n\010ces_tool\030\014 \001(\tB\037\340A\001\372A\031\n\027ces." + + "googleapis.com/ToolH\000\0229\n\013ces_toolset\030\r \001" + + "(\tB\"\340A\001\372A\034\n\032ces.googleapis.com/ToolsetH\000" + + "\0221\n\007ces_app\030\013 \001(\tB\036\340A\001\372A\030\n\026ces.googleapi" + + "s.com/AppH\000\022\023\n\006action\030\002 \001(\tB\003\340A\001\022F\n\005erro" + + "r\030\003 \001(\01325.google.cloud.dialogflow.v2beta" + + "1.ToolCallResult.ErrorH\001\022\025\n\013raw_content\030" + + "\005 \001(\014H\001\022\021\n\007content\030\006 \001(\tH\001\0224\n\013create_tim" + + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022\032\n\ranswer_record\030\t \001(\tB\003\340A\001\032\035\n\005Error\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\001B\010\n\006sourceB\010\n\006resultB" + + "\242\001\n#com.google.cloud.dialogflow.v2beta1B" + + "\rToolCallProtoP\001ZCcloud.google.com/go/di" + + "alogflow/apiv2beta1/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2B" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,6 +116,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2beta1_ToolCall_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "ToolDisplayName", "ToolDisplayDetails", "Action", @@ -137,6 +135,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_v2beta1_ToolCallResult_descriptor, new java.lang.String[] { "Tool", + "CesTool", + "CesToolset", + "CesApp", "Action", "Error", "RawContent", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java index f2599122a987..8072aaa750c3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResult.java @@ -690,6 +690,9 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TOOL(1), + CES_TOOL(12), + CES_TOOLSET(13), + CES_APP(11), SOURCE_NOT_SET(0); private final int value; @@ -711,6 +714,12 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return TOOL; + case 12: + return CES_TOOL; + case 13: + return CES_TOOLSET; + case 11: + return CES_APP; case 0: return SOURCE_NOT_SET; default: @@ -865,6 +874,261 @@ public com.google.protobuf.ByteString getToolBytes() { } } + public static final int CES_TOOL_FIELD_NUMBER = 12; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_TOOLSET_FIELD_NUMBER = 13; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CES_APP_FIELD_NUMBER = 11; + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ACTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -1224,6 +1488,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, answerRecord_); } + if (sourceCase_ == 11) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, source_); + } + if (sourceCase_ == 12) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, source_); + } + if (sourceCase_ == 13) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, source_); + } getUnknownFields().writeTo(output); } @@ -1258,6 +1531,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, answerRecord_); } + if (sourceCase_ == 11) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, source_); + } + if (sourceCase_ == 12) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, source_); + } + if (sourceCase_ == 13) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1285,6 +1567,15 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTool().equals(other.getTool())) return false; break; + case 12: + if (!getCesTool().equals(other.getCesTool())) return false; + break; + case 13: + if (!getCesToolset().equals(other.getCesToolset())) return false; + break; + case 11: + if (!getCesApp().equals(other.getCesApp())) return false; + break; case 0: default: } @@ -1326,6 +1617,18 @@ public int hashCode() { hash = (37 * hash) + TOOL_FIELD_NUMBER; hash = (53 * hash) + getTool().hashCode(); break; + case 12: + hash = (37 * hash) + CES_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getCesTool().hashCode(); + break; + case 13: + hash = (37 * hash) + CES_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getCesToolset().hashCode(); + break; + case 11: + hash = (37 * hash) + CES_APP_FIELD_NUMBER; + hash = (53 * hash) + getCesApp().hashCode(); + break; case 0: default: } @@ -1545,15 +1848,15 @@ public com.google.cloud.dialogflow.v2beta1.ToolCallResult buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolCallResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.action_ = action_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.answerRecord_ = answerRecord_; } result.bitField0_ |= to_bitField0_; @@ -1584,7 +1887,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe return this; if (!other.getAction().isEmpty()) { action_ = other.action_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasCreateTime()) { @@ -1592,7 +1895,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe } if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getSourceCase()) { @@ -1603,6 +1906,27 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolCallResult othe onChanged(); break; } + case CES_TOOL: + { + sourceCase_ = 12; + source_ = other.source_; + onChanged(); + break; + } + case CES_TOOLSET: + { + sourceCase_ = 13; + source_ = other.source_; + onChanged(); + break; + } + case CES_APP: + { + sourceCase_ = 11; + source_ = other.source_; + onChanged(); + break; + } case SOURCE_NOT_SET: { break; @@ -1667,7 +1991,7 @@ public Builder mergeFrom( case 18: { action_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; break; } // case 18 case 26: @@ -1693,15 +2017,36 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 58 case 74: { answerRecord_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 74 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 11; + source_ = s; + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 12; + source_ = s; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 13; + source_ = s; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1912,6 +2257,495 @@ public Builder setToolBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + @java.lang.Override + public boolean hasCesTool() { + return sourceCase_ == 12; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + @java.lang.Override + public java.lang.String getCesTool() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 12) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 12) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 12) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesTool() { + if (sourceCase_ == 12) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES tool name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesTool to set. + * @return This builder for chaining. + */ + public Builder setCesToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 12; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + @java.lang.Override + public boolean hasCesToolset() { + return sourceCase_ == 13; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + @java.lang.Override + public java.lang.String getCesToolset() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 13) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesToolsetBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 13) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 13) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesToolset() { + if (sourceCase_ == 13) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES toolset name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesToolset to set. + * @return This builder for chaining. + */ + public Builder setCesToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 13; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + @java.lang.Override + public boolean hasCesApp() { + return sourceCase_ == 11; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + @java.lang.Override + public java.lang.String getCesApp() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 11) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCesAppBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 11) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 11) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCesApp() { + if (sourceCase_ == 11) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. CES app name for this call.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cesApp to set. + * @return This builder for chaining. + */ + public Builder setCesAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 11; + source_ = value; + onChanged(); + return this; + } + private java.lang.Object action_ = ""; /** @@ -1977,7 +2811,7 @@ public Builder setAction(java.lang.String value) { throw new NullPointerException(); } action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1995,7 +2829,7 @@ public Builder setAction(java.lang.String value) { */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2018,7 +2852,7 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); action_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2481,7 +3315,7 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2527,7 +3361,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2549,7 +3383,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2567,7 +3401,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2578,7 +3412,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2596,7 +3430,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2618,7 +3452,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -2737,7 +3571,7 @@ public Builder setAnswerRecord(java.lang.String value) { throw new NullPointerException(); } answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2755,7 +3589,7 @@ public Builder setAnswerRecord(java.lang.String value) { */ public Builder clearAnswerRecord() { answerRecord_ = getDefaultInstance().getAnswerRecord(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2778,7 +3612,7 @@ public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); answerRecord_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java index f9552414c612..0c2d1ad5a921 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolCallResultOrBuilder.java @@ -77,6 +77,159 @@ public interface ToolCallResultOrBuilder */ com.google.protobuf.ByteString getToolBytes(); + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesTool field is set. + */ + boolean hasCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesTool. + */ + java.lang.String getCesTool(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES tool name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/tools/<ToolID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_tool = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesTool. + */ + com.google.protobuf.ByteString getCesToolBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesToolset field is set. + */ + boolean hasCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesToolset. + */ + java.lang.String getCesToolset(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES toolset name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>/toolsets/ToolsetID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_toolset = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesToolset. + */ + com.google.protobuf.ByteString getCesToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the cesApp field is set. + */ + boolean hasCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cesApp. + */ + java.lang.String getCesApp(); + + /** + * + * + *
                                                                                                                                          +   * Optional. CES app name for this call.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/<ProjectID>/locations/<LocationID>/apps/<AppID>`.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string ces_app = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cesApp. + */ + com.google.protobuf.ByteString getCesAppBytes(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java new file mode 100644 index 000000000000..acb1bd045756 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetProto.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public final class ToolsetProto extends com.google.protobuf.GeneratedFile { + private ToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2beta1/toolse" + + "t.proto\022\037google.cloud.dialogflow.v2beta1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032*google/cloud/dialo" + + "gflow/v2beta1/tool.proto\"\303\001\n\013ToolsetTool" + + "\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googleapi" + + "s.com/Toolset\022\031\n\014operation_id\030\002 \001(\tB\003\340A\001" + + "\022d\n\030confirmation_requirement\030\003 \001(\0162=.goo" + + "gle.cloud.dialogflow.v2beta1.Tool.Confir" + + "mationRequirementB\003\340A\001B\207\002\n#com.google.cl" + + "oud.dialogflow.v2beta1B\014ToolsetProtoP\001ZC" + + "cloud.google.com/go/dialogflow/apiv2beta" + + "1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Googl" + + "e.Cloud.Dialogflow.V2Beta1\352Ac\n\032ces.googl" + + "eapis.com/Toolset\022Eprojects/{project}/lo" + + "cations/{location}/apps/{app}/toolsets/{" + + "toolset}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor, + new java.lang.String[] { + "Toolset", "OperationId", "ConfirmationRequirement", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dialogflow.v2beta1.ToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java new file mode 100644 index 000000000000..a89b780e8332 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetTool.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
                                                                                                                                          + * A tool that is created from a toolset.
                                                                                                                                          + * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolsetTool} + */ +@com.google.protobuf.Generated +public final class ToolsetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.ToolsetTool) + ToolsetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetTool"); + } + + // Use ToolsetTool.newBuilder() to construct. + private ToolsetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsetTool() { + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.class, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + @java.lang.Override + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_REQUIREMENT_FIELD_NUMBER = 3; + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, confirmationRequirement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, operationId_); + } + if (confirmationRequirement_ + != com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + .CONFIRMATION_REQUIREMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, confirmationRequirement_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.ToolsetTool)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.ToolsetTool other = + (com.google.cloud.dialogflow.v2beta1.ToolsetTool) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + confirmationRequirement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.ToolsetTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                                                                                                                                          +   * A tool that is created from a toolset.
                                                                                                                                          +   * 
                                                                                                                                          + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.ToolsetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.ToolsetTool) + com.google.cloud.dialogflow.v2beta1.ToolsetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.ToolsetTool.class, + com.google.cloud.dialogflow.v2beta1.ToolsetTool.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.ToolsetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + operationId_ = ""; + confirmationRequirement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ToolsetProto + .internal_static_google_cloud_dialogflow_v2beta1_ToolsetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool build() { + com.google.cloud.dialogflow.v2beta1.ToolsetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool buildPartial() { + com.google.cloud.dialogflow.v2beta1.ToolsetTool result = + new com.google.cloud.dialogflow.v2beta1.ToolsetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ToolsetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationRequirement_ = confirmationRequirement_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.ToolsetTool) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.ToolsetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ToolsetTool other) { + if (other == com.google.cloud.dialogflow.v2beta1.ToolsetTool.getDefaultInstance()) + return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.confirmationRequirement_ != 0) { + setConfirmationRequirementValue(other.getConfirmationRequirementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + confirmationRequirement_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +     * Format:
                                                                                                                                          +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +     * must be present in the toolset's definition.
                                                                                                                                          +     * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int confirmationRequirement_ = 0; + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + @java.lang.Override + public int getConfirmationRequirementValue() { + return confirmationRequirement_; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirementValue(int value) { + confirmationRequirement_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement + getConfirmationRequirement() { + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement result = + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.forNumber( + confirmationRequirement_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confirmationRequirement to set. + * @return This builder for chaining. + */ + public Builder setConfirmationRequirement( + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + confirmationRequirement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                                                                                                                                          +     * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +     * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfirmationRequirement() { + bitField0_ = (bitField0_ & ~0x00000004); + confirmationRequirement_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.ToolsetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.ToolsetTool) + private static final com.google.cloud.dialogflow.v2beta1.ToolsetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.ToolsetTool(); + } + + public static com.google.cloud.dialogflow.v2beta1.ToolsetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsetTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ToolsetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java new file mode 100644 index 000000000000..2d1650aa1fb8 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsetToolOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface ToolsetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.ToolsetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
                                                                                                                                          +   * Required. The name of the toolset to retrieve the schema for.
                                                                                                                                          +   * Format:
                                                                                                                                          +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The operationId. + */ + java.lang.String getOperationId(); + + /** + * + * + *
                                                                                                                                          +   * Optional. The operationId field of the OpenAPI endpoint. The operationId
                                                                                                                                          +   * must be present in the toolset's definition.
                                                                                                                                          +   * 
                                                                                                                                          + * + * string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for operationId. + */ + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confirmationRequirement. + */ + int getConfirmationRequirementValue(); + + /** + * + * + *
                                                                                                                                          +   * Optional. Indicates whether the tool requires human confirmation.
                                                                                                                                          +   * 
                                                                                                                                          + * + * + * .google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confirmationRequirement. + */ + com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto index 221685a1c6a0..12d1b8cb61ac 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto index b5cd1cea028e..2e8165a3a49a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto index 491947ad1f02..5fd9b776bfe5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index 52bbce5e2d24..be89c0b9b754 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto new file mode 100644 index 000000000000..7ca2c052537e --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesAppProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/App" + pattern: "projects/{project}/locations/{location}/apps/{app}" +}; + +// Spec of CES app that the generator can choose from. +message CesAppSpec { + // Optional. Format: `projects//locations//apps/`. + string ces_app = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. Indicates whether the app requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto new file mode 100644 index 000000000000..109d04a0b5bf --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_tool.proto @@ -0,0 +1,42 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "CesToolProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Spec of CES tool that the generator can choose from. +message CesToolSpec { + // Optional. Format: `projects//locations//apps//tools/`. + string ces_tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto index 1e2b00827aff..50b73de943a5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index ef9a92b62795..baf437a5b5e1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -382,6 +382,37 @@ message Conversation { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Represents the context of a generator. + message GeneratorContext { + // The available generator types. + enum GeneratorType { + // Unspecified generator type. + GENERATOR_TYPE_UNSPECIFIED = 0; + + // Free form generator type. + FREE_FORM = 1; + + // Agent coaching generator type. + AGENT_COACHING = 2; + + // Summarization generator type. + SUMMARIZATION = 3; + + // Translation generator type. + TRANSLATION = 4; + + // Agent feedback generator type. + AGENT_FEEDBACK = 5; + + // Customer message generation generator type. + CUSTOMER_MESSAGE_GENERATION = 6; + } + + // Output only. The type of the generator. + GeneratorType generator_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Identifier. The unique identifier of this conversation. // Format: `projects//locations//conversations/`. @@ -441,9 +472,22 @@ message Conversation { TelephonyConnectionInfo telephony_connection_info = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Output only. The initial conversation profile to be used to + // configure this conversation, which is a copy of the conversation profile + // config read at conversation creation time. + ConversationProfile initial_conversation_profile = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + // Output only. The context reference updates provided by external systems. map ingested_context_references = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A map with generator name as key and generator context as + // value. + map initial_generator_contexts = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a phone number for telephony integration. It allows for connecting @@ -711,6 +755,15 @@ message SuggestConversationSummaryRequest { message SuggestConversationSummaryResponse { // Generated summary for a conversation. message Summary { + // A component of the generated summary. + message SummarySection { + // Output only. Name of the section. + string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary text for the section. + string summary = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The summary content that is concatenated into one string. string text = 1; @@ -719,6 +772,10 @@ message SuggestConversationSummaryResponse { // specific format for the key or value. map text_sections = 4; + // Same as text_sections, but in an order that is consistent with the order + // of the sections in the generator. + repeated SummarySection sorted_text_sections = 6; + // The name of the answer record. Format: // "projects//answerRecords/" string answer_record = 3 [(google.api.resource_reference) = { @@ -1173,6 +1230,36 @@ message SearchKnowledgeRequest { bool exact_search = 14 [(google.api.field_behavior) = OPTIONAL]; } +// Debug information related to SearchKnowledge feature. +message SearchKnowledgeDebugInfo { + // Configured behaviors for SearchKnowledge. + message SearchKnowledgeBehavior { + // Whether data store agent rewriter was turned on for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // This field indicates whether third party connectors are enabled for the + // project. Note that this field only indicates if the project is + // allowlisted for connectors. + bool third_party_connector_allowed = 4; + } + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 1; + + // Configured behaviors for SearchKnowledge. + SearchKnowledgeBehavior search_knowledge_behavior = 2; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3; + + // The latency of the service. + ServiceLatency service_latency = 4; +} + // The response message for // [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge]. message SearchKnowledgeResponse { @@ -1182,6 +1269,9 @@ message SearchKnowledgeResponse { // The rewritten query used to search knowledge. string rewritten_query = 3; + + // Debug info for SearchKnowledge. + SearchKnowledgeDebugInfo search_knowledge_debug_info = 4; } // Represents a SearchKnowledge answer. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto index 1d15f22172b9..b4a23633c8af 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 2da9d2d6c146..68a5f84631a3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -218,6 +218,10 @@ message ConversationProfile { google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Whether to use the bidi streaming API in telephony integration + // for the conversation profile. + bool use_bidi_streaming = 23 [(google.api.field_behavior) = OPTIONAL]; + // Configuration for an automated agent to use with this profile. AutomatedAgentConfig automated_agent_config = 3; @@ -695,6 +699,31 @@ message HumanAgentAssistantConfig { // If Pub/Sub notification is configured, result will be in // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload]. bool enable_sentiment_analysis = 3; + + // Optional. Enables sentiment analysis for audio input and conversation + // messages. If unspecified, defaults to false. If this flag is set to true, + // other 'enable_sentiment_analysis' fields will be ignored. + // + // Sentiment analysis inspects user input and identifies the prevailing + // subjective opinion, especially to determine a user's attitude as + // positive, negative, or neutral. + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] + // method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message]. + // For + // [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] + // method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message] + // For + // [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages] + // method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis_v3 = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Pub/Sub topic on which to publish new agent assistant events. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto index ffdf4bb4789a..6404b7c7eb5b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto index f947fb589586..63e033ae6e28 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto index 5b0a3180cb0a..7780972dfc4b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto index f059c0e04a41..bf424e39ffc6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto index a303463aab32..3819080b1838 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto index 1772e27a7825..335839f91337 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto index d4128e60a9a4..c6dda7baae76 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,10 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/agent_coaching_instruction.proto"; +import "google/cloud/dialogflow/v2beta1/ces_app.proto"; +import "google/cloud/dialogflow/v2beta1/ces_tool.proto"; import "google/cloud/dialogflow/v2beta1/tool_call.proto"; +import "google/cloud/dialogflow/v2beta1/toolset.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -462,6 +465,18 @@ message Generator { // AI Coach feature. SuggestionDedupingConfig suggestion_deduping_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES toolset specs that the generator can choose from. + repeated ToolsetTool toolset_tools = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES tool specs that the generator can choose from. + repeated CesToolSpec ces_tool_specs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of CES app specs that the generator can choose from. + repeated CesAppSpec ces_app_specs = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Suggestion generated using free form generator. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto index b0fbfe8046e3..767811b2dc30 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/generator_evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto index ca623f503205..7d5558412fe5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto index c6b1df5062ed..289f6f1fe817 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 21dd52bca4e7..67f923cbdb2a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto index 82e7e8262b39..03c12f49df85 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index 61cd31352728..b15ae6e9561b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -1859,6 +1859,217 @@ message SuggestKnowledgeAssistResponse { int32 context_size = 3; } +// Debug information related to ingested context reference. +message IngestedContextReferenceDebugInfo { + // Debug information related to ingested parameters from context reference. + message IngestedParameterDebugInfo { + // Enum representing the various states of parameter ingestion. + enum IngestionStatus { + // Default value, indicates that the ingestion status is not specified. + INGESTION_STATUS_UNSPECIFIED = 0; + + // Indicates that the parameter was successfully ingested. + INGESTION_STATUS_SUCCEEDED = 1; + + // Indicates that the parameter was not available for ingestion. + INGESTION_STATUS_CONTEXT_NOT_AVAILABLE = 2; + + // Indicates that there was a failure parsing the parameter content. + INGESTION_STATUS_PARSE_FAILED = 3; + + // Indicates that the context reference had an unexpected number of + // content entries as Context reference should only have one entry. + INGESTION_STATUS_INVALID_ENTRY = 4; + + // Indicates that the context reference content was not in the expected + // format (e.g., JSON). + INGESTION_STATUS_INVALID_FORMAT = 5; + + // Indicates that the context reference language does not match the + // conversation language. + INGESTION_STATUS_LANGUAGE_MISMATCH = 6; + } + + // The name of the parameter in the context reference. + string parameter = 1; + + // The ingestion status for this specific parameter. + IngestionStatus ingestion_status = 2; + } + + // Indicates if the project is allowlisted to use ingested context + // reference. + bool project_not_allowlisted = 1; + + // The status of context_reference retrieval from database. + bool context_reference_retrieved = 2; + + // Parameters ingested from the context reference. + repeated IngestedParameterDebugInfo ingested_parameters_debug_info = 3; +} + +// Message to represent the latency of the service. +message ServiceLatency { + // Message to represent the latency of an internal service. + message InternalServiceLatency { + // The name of the internal service. + string step = 1; + + // The latency of the internal service in milliseconds. + float latency_ms = 2; + + // The start time of the internal service. + google.protobuf.Timestamp start_time = 3; + + // The completion time of the internal service. + google.protobuf.Timestamp complete_time = 4; + } + + // A list of internal service latencies. + repeated InternalServiceLatency internal_service_latencies = 1; +} + +// Debug information related to Knowledge Assist feature. +message KnowledgeAssistDebugInfo { + // Reason for query generation failure. + enum QueryGenerationFailureReason { + // Default value. + QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Query generation is blocked due to out of quota. + QUERY_GENERATION_OUT_OF_QUOTA = 1; + + // Call to Knowedge Assist query generation model fails. + QUERY_GENERATION_FAILED = 2; + + // Query generation model decides that there is no new topic change or + // there has been similar queries generated in the previous turns. + QUERY_GENERATION_NO_QUERY_GENERATED = 3; + + // Knowedge Assist generated query is blocked by RAI (Responsible AI). + QUERY_GENERATION_RAI_FAILED = 4; + + // Query generation is blocked by Knowledge Assist conversation profile + // level / agent id level filtering. + NOT_IN_ALLOWLIST = 5; + + // The generated query is blocked due to redaction. + QUERY_GENERATION_QUERY_REDACTED = 6; + + // Query generation failed due to LLM response parse failure. + QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10; + + // The conversation has no messages. + QUERY_GENERATION_EMPTY_CONVERSATION = 11; + + // The last message in the conversation is empty. + QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12; + + // The trigger event condition is not met. + // This occurs in the following scenarios: + // 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last + // message is not from the customer. + // 2. The trigger_event is AGENT_MESSAGE, but the last message is not from + // the agent. + QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13; + } + + // Reason for query categorization failure. + enum QueryCategorizationFailureReason { + // Default value. + QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED = 0; + + // Vertex AI Search config supplied for query categorization is invalid. + QUERY_CATEGORIZATION_INVALID_CONFIG = 1; + + // Vertex AI Search result does not contain a query categorization result. + QUERY_CATEGORIZATION_RESULT_NOT_FOUND = 2; + + // Vertex AI Search call fails. + QUERY_CATEGORIZATION_FAILED = 3; + } + + // Configured behaviors for Knowedge Assist. + message KnowledgeAssistBehavior { + // Whether data store agent rewriter was turned off for the request. + bool answer_generation_rewriter_on = 1; + + // Whether end_user_metadata is included in the data store agent call. + bool end_user_metadata_included = 2; + + // Whether customers configured to return query only in the + // conversation profile. + bool return_query_only = 4; + + // Whether customers configured to use pubsub to deliver. + bool use_pubsub_delivery = 5; + + // Whether customers configured to disable the synchronous delivery of + // Knowedge Assist response. + bool disable_sync_delivery = 6; + + // Whether previously suggested queries are included in the query generation + // process. + bool previous_queries_included = 7; + + // Translated message is included in query generation process. + bool use_translated_message = 8; + + // Safety filter is adjusted by user. + bool use_custom_safety_filter_level = 9; + + // Conversation transcript has mixed languages. + bool conversation_transcript_has_mixed_languages = 10; + + // Whether the agent language from the translation generator mismatches the + // end-user language. + bool query_generation_agent_language_mismatch = 11; + + // Whether the end-user language from the translation generator mismatches + // the end-user language. + bool query_generation_end_user_language_mismatch = 12; + + // This field indicates whether third party connectors are enabled for the + // project. + bool third_party_connector_allowed = 13; + + // Indicates that the query generation model generated multiple queries. + bool multiple_queries_generated = 14; + + // Indicates that the generated query contains search context. + bool query_contained_search_context = 15; + + // Indicates that invalid items were skipped when parsing the LLM response. + bool invalid_items_query_suggestion_skipped = 16; + + // True if the primary suggested query was redacted and replaced by an + // additional query. + bool primary_query_redacted_and_replaced = 17; + + // The number of search contexts appended to the query. + int32 appended_search_context_count = 18; + } + + // Reason for query generation. + QueryGenerationFailureReason query_generation_failure_reason = 1; + + // Reason for query categorization. + QueryCategorizationFailureReason query_categorization_failure_reason = 2; + + // Response reason from datastore which indicates data serving status or + // answer quality degradation. + DatastoreResponseReason datastore_response_reason = 3; + + // Configured behaviors for Knowedge Assist. + KnowledgeAssistBehavior knowledge_assist_behavior = 4; + + // Information about parameters ingested for search knowledge. + IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + + // The latency of the service. + ServiceLatency service_latency = 6; +} + // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. @@ -1923,6 +2134,9 @@ message KnowledgeAssistAnswer { // Format: `projects//locations//answer // Records/`. string answer_record = 3; + + // Debug information related to Knowledge Assist feature. + KnowledgeAssistDebugInfo knowledge_assist_debug_info = 7; } // The request message for @@ -2062,3 +2276,37 @@ message BidiStreamingAnalyzeContentResponse { TurnComplete turn_complete = 4; } } + +// Response reason from datastore which indicates data serving status or +// answer quality degradation. +enum DatastoreResponseReason { + // Default value. + DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; + + // No specific response reason from datastore. + NONE = 1; + + // Search is blocked due to out of quota. + SEARCH_OUT_OF_QUOTA = 2; + + // Search returns empty results. + SEARCH_EMPTY_RESULTS = 3; + + // Generative AI is disabled. + ANSWER_GENERATION_GEN_AI_DISABLED = 4; + + // Answer generation is blocked due to out of quota. + ANSWER_GENERATION_OUT_OF_QUOTA = 5; + + // Answer generation encounters an error. + ANSWER_GENERATION_ERROR = 6; + + // Answer generation does not have enough information to generate answer. + ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; + + // Answer generation is blocked by RAI (Responsible AI) failure. + ANSWER_GENERATION_RAI_FAILED = 8; + + // Answer generation is not grounded on reliable sources. + ANSWER_GENERATION_NOT_GROUNDED = 9; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto index 55df47a0c2be..43ecb8e8a068 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/phone_number.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; @@ -118,6 +119,20 @@ message PhoneNumber { DELETE_REQUESTED = 2; } + // List of SIP trunks that are allowed to make calls to this phone number. + message AllowedSipTrunks { + // List of SIP trunks that are allowed to make calls to this phone number. + // If empty, any SIP trunk is allowed. + repeated string sip_trunks = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SipTrunk" + }]; + + // Optional. List of GTP carrier IDs allowed to make calls to this phone + // number. Used for private interconnects where standard SIP trunks aren't + // applicable. + repeated string carrier_ids = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. The unique identifier of this phone number. // Required for // [PhoneNumbers.UpdatePhoneNumber][google.cloud.dialogflow.v2beta1.PhoneNumbers.UpdatePhoneNumber] @@ -144,6 +159,17 @@ message PhoneNumber { // calls and can be removed completely within 30 days. LifecycleState lifecycle_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Restricts inbound calls + oneof inbound_restriction { + // Optional. Only allow calls from the specified SIP trunks. + AllowedSipTrunks allowed_sip_trunks = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. The time at which this resource will be purged. + google.protobuf.Timestamp purge_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request message for diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index f23e915d499c..159b2c9f0818 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto index b36ab3d0ea93..dd6c640653ae 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto index 0700fc72b46b..fbf6d95470dc 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/sip_trunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto index f638695b5b56..9d6570261f50 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto index 5086b9d8b70c..fd2e16f25fb0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/tool_call.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,6 +53,30 @@ message ToolCall { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. A human readable short name of the tool, to be shown on the UI. @@ -98,6 +122,30 @@ message ToolCallResult { type: "dialogflow.googleapis.com/Tool" } ]; + + // Optional. CES tool name for this call. + // Format: + // `projects//locations//apps//tools/`. + string ces_tool = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. CES toolset name for this call. + // Format: + // `projects//locations//apps//toolsets/ToolsetID>`. + string ces_toolset = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. CES app name for this call. + // Format: + // `projects//locations//apps/`. + string ces_app = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; } // Optional. The name of the tool's action associated with this call. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto new file mode 100644 index 000000000000..cd2859d6662d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/toolset.proto @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/tool.proto"; + +option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1"; +option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Toolset" + pattern: "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}" +}; + +// A tool that is created from a toolset. +message ToolsetTool { + // Required. The name of the toolset to retrieve the schema for. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The operationId field of the OpenAPI endpoint. The operationId + // must be present in the toolset's definition. + string operation_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the tool requires human confirmation. + Tool.ConfirmationRequirement confirmation_requirement = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto index dea9e795b11f..0ac66e39f871 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto index ac7e6e94bf7a..486e4d65e4fe 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto index a9f5e291bebf..69ec9b2f2bd0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java index c1060cbed10f..c0f0f16f0285 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java @@ -54,6 +54,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception { .setCxParameters(Struct.newBuilder().build()) .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); bidiStream.send(request);