From 08c8cbf2107598267a35a0b2e278671f506fa2a2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 20 Mar 2026 02:55:36 +0000 Subject: [PATCH 1/5] chore: Update generation configuration at Fri Mar 20 02:55:28 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 4099fd2ec797..f46b6b992750 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.68.0 -googleapis_commitish: dfcbe6807e8c0bb8d5abb2b5e875a2a03af8d874 +googleapis_commitish: c063f49852ce7fc08c722c87f3a6f676209985a2 libraries_bom_version: 26.78.0 libraries: - api_shortname: accessapproval From 5bd3b86be4d901c480fced3e0c07cf28158530e4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 20 Mar 2026 03:01:56 +0000 Subject: [PATCH 2/5] chore: generate libraries at Fri Mar 20 02:58:31 UTC 2026 --- .../com/google/cloud/run/v2/WorkerPool.java | 91 +++++++++++++------ .../cloud/run/v2/WorkerPoolOrBuilder.java | 28 ++++-- .../google/cloud/run/v2/WorkerPoolProto.java | 79 ++++++++-------- .../google/cloud/run/v2/worker_pool.proto | 4 +- 4 files changed, 126 insertions(+), 76 deletions(-) diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java index 68b5bc2d841c..07ebf3ebe6d6 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java @@ -1801,13 +1801,16 @@ public boolean getThreatDetectionEnabled() { * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return A list containing the customAudiences. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { return customAudiences_; } @@ -1816,13 +1819,16 @@ public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return The count of customAudiences. */ + @java.lang.Deprecated public int getCustomAudiencesCount() { return customAudiences_.size(); } @@ -1831,14 +1837,17 @@ public int getCustomAudiencesCount() { * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the element to return. * @return The customAudiences at the given index. */ + @java.lang.Deprecated public java.lang.String getCustomAudiences(int index) { return customAudiences_.get(index); } @@ -1847,14 +1856,17 @@ public java.lang.String getCustomAudiences(int index) { * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the value to return. * @return The bytes of the customAudiences at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getCustomAudiencesBytes(int index) { return customAudiences_.getByteString(index); } @@ -8299,13 +8311,16 @@ private void ensureCustomAudiencesIsMutable() { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return A list containing the customAudiences. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { customAudiences_.makeImmutable(); return customAudiences_; @@ -8315,13 +8330,16 @@ public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return The count of customAudiences. */ + @java.lang.Deprecated public int getCustomAudiencesCount() { return customAudiences_.size(); } @@ -8330,14 +8348,17 @@ public int getCustomAudiencesCount() { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the element to return. * @return The customAudiences at the given index. */ + @java.lang.Deprecated public java.lang.String getCustomAudiences(int index) { return customAudiences_.get(index); } @@ -8346,14 +8367,17 @@ public java.lang.String getCustomAudiences(int index) { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the value to return. * @return The bytes of the customAudiences at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getCustomAudiencesBytes(int index) { return customAudiences_.getByteString(index); } @@ -8362,15 +8386,18 @@ public com.google.protobuf.ByteString getCustomAudiencesBytes(int index) { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index to set the value at. * @param value The customAudiences to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setCustomAudiences(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -8386,14 +8413,17 @@ public Builder setCustomAudiences(int index, java.lang.String value) { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param value The customAudiences to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addCustomAudiences(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -8409,14 +8439,17 @@ public Builder addCustomAudiences(java.lang.String value) { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param values The customAudiences to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addAllCustomAudiences(java.lang.Iterable values) { ensureCustomAudiencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customAudiences_); @@ -8429,13 +8462,16 @@ public Builder addAllCustomAudiences(java.lang.Iterable values * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearCustomAudiences() { customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); @@ -8448,14 +8484,17 @@ public Builder clearCustomAudiences() { * * *
-     * Not supported, and ignored by Cloud Run.
+     * Deprecated: Not supported, and ignored by Cloud Run.
      * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param value The bytes of the customAudiences to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addCustomAudiencesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java index e63066d1f3e2..6d6d75846a52 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java @@ -1204,54 +1204,66 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return A list containing the customAudiences. */ + @java.lang.Deprecated java.util.List getCustomAudiencesList(); /** * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @return The count of customAudiences. */ + @java.lang.Deprecated int getCustomAudiencesCount(); /** * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the element to return. * @return The customAudiences at the given index. */ + @java.lang.Deprecated java.lang.String getCustomAudiences(int index); /** * * *
-   * Not supported, and ignored by Cloud Run.
+   * Deprecated: Not supported, and ignored by Cloud Run.
    * 
* - * repeated string custom_audiences = 37; + * repeated string custom_audiences = 37 [deprecated = true]; * + * @deprecated google.cloud.run.v2.WorkerPool.custom_audiences is deprecated. See + * google/cloud/run/v2/worker_pool.proto;l=459 * @param index The index of the value to return. * @return The bytes of the customAudiences at the given index. */ + @java.lang.Deprecated com.google.protobuf.ByteString getCustomAudiencesBytes(int index); /** diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java index 5af5904667e2..911555a1eb76 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java @@ -127,7 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035run.googleapis.com/WorkerPool\022\032\n\r" + "validate_only\030\002 \001(\010B\003\340A\001\022\014\n" - + "\004etag\030\003 \001(\t\"\312\014\n\n" + + "\004etag\030\003 \001(\t\"\316\014\n\n" + "WorkerPool\022\014\n" + "\004name\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022\020\n" @@ -166,8 +166,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033run.googleapis.com/Revision\022N\n" + "\027instance_split_statuses\030\033" + " \003(\0132(.google.cloud.run.v2.InstanceSplitStatusB\003\340A\003\022%\n" - + "\030threat_detection_enabled\030\034 \001(\010B\003\340A\003\022\030\n" - + "\020custom_audiences\030% \003(\t\022\032\n\r" + + "\030threat_detection_enabled\030\034 \001(\010B\003\340A\003\022\034\n" + + "\020custom_audiences\030% \003(\tB\002\030\001\022\032\n\r" + "satisfies_pzs\030& \001(\010B\003\340A\003\022\030\n" + "\013reconciling\030b \001(\010B\003\340A\003\022\021\n" + "\004etag\030c \001(\tB\003\340A\001\032-\n" @@ -177,53 +177,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\201\001\352A~\n" - + "\035run.googleapis.com/WorkerPool\022Aprojects/{project}/location" - + "s/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "\035run.googleapis.com/WorkerPool\022Aprojects/{project}/loca" + + "tions/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\0012\276\016\n" + "\013WorkerPools\022\230\002\n" - + "\020CreateWorkerPool\022,.google.cloud.r" - + "un.v2.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\266\001\312A\030\n\n" + + "\020CreateWorkerPool\022,.google.clo" + + "ud.run.v2.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\266\001\312A\030\n\n" + "WorkerPool\022\n" - + "WorkerPool\332A!parent,worker_pool,worker_p" - + "ool_id\202\323\344\223\002>\"//v2/{parent=projects/*/loc" - + "ations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "WorkerPool\332A!parent,worker_pool,work" + + "er_pool_id\202\323\344\223\002>\"//v2/{parent=projects/*" + + "/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\317\001\n\r" - + "GetWorkerPool\022).google.cloud.run.v2.GetWorkerPoolRequest\032\037.google.clou" - + "d.run.v2.WorkerPool\"r\332A\004name\202\323\344\223\0021\022//v2/" - + "{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + + "GetWorkerPool\022).google.cloud.run.v2.GetWorkerPoolRequest\032\037.google." + + "cloud.run.v2.WorkerPool\"r\332A\004name\202\323\344\223\0021\022/" + + "/v2/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\341\001\n" - + "\017ListWorkerPools\022+.google.cloud.run.v2.ListWorkerPoolsRequest" - + "\032,.google.cloud.run.v2.ListWorkerPoolsRe" - + "sponse\"s\332A\006parent\202\323\344\223\0021\022//v2/{parent=pro" - + "jects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\022+.google.cloud.run.v2.ListWorkerPoolsReq" + + "uest\032,.google.cloud.run.v2.ListWorkerPoo" + + "lsResponse\"s\332A\006parent\202\323\344\223\0021\022//v2/{parent" + + "=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\265\002\n" - + "\020UpdateWorkerPool\022,.google.cloud." - + "run.v2.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\323\001\312A\030\n\n" + + "\020UpdateWorkerPool\022,.google.cl" + + "oud.run.v2.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\323\001\312A\030\n\n" + "WorkerPool\022\n" - + "WorkerPool\332A\013worker_pool\332A\027worker_pool," - + "update_mask\202\323\344\223\002J2;/v2/{worker_pool.name" - + "=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002:\0228\n" + + "WorkerPool\332A\013worker_pool\332A\027worker_p" + + "ool,update_mask\202\323\344\223\002J2;/v2/{worker_pool." + + "name=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002:\0228\n" + "\020worker_pool.name\022$projects/*/locations/{location=*}/**\022\357\001\n" - + "\020DeleteWorkerPool\022,.google.cloud.run.v2.D" - + "eleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\215\001\312A\030\n\n" + + "\020DeleteWorkerPool\022,.google.cloud.run." + + "v2.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\215\001\312A\030\n\n" + "WorkerPool\022\n" - + "WorkerP" - + "ool\332A\004name\202\323\344\223\0021*//v2/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + + "WorkerPool\332A\004name\202\323\344\223\0021*//v2/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\223\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPol" - + "icyRequest\032\025.google.iam.v1.Policy\"H\202\323\344\223\002" - + "B\022@/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy\022\226\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"K\202\323\344\223\002E\"@/v2/{re" - + "source=projects/*/locations/*/workerPools/*}:setIamPolicy:\001*\022\274\001\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissionsRe" - + "quest\032).google.iam.v1.TestIamPermissions" - + "Response\"Q\202\323\344\223\002K\"F/v2/{resource=projects" - + "/*/locations/*/workerPools/*}:testIamPer" - + "missions:\001*\032F\312A\022run.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformBW\n" - + "\027com.google.cloud.run.v2B\017WorkerPoolProtoP\001Z)cloud.google.com/go/run/apiv2" - + "/runpb;runpbb\006proto3" + + "\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"H\202" + + "\323\344\223\002B\022@/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy\022\226\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyReq" + + "uest\032\025.google.iam.v1.Policy\"K\202\323\344\223\002E\"@/v2" + + "/{resource=projects/*/locations/*/workerPools/*}:setIamPolicy:\001*\022\274\001\n" + + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissio" + + "nsRequest\032).google.iam.v1.TestIamPermiss" + + "ionsResponse\"Q\202\323\344\223\002K\"F/v2/{resource=proj" + + "ects/*/locations/*/workerPools/*}:testIa" + + "mPermissions:\001*\032F\312A\022run.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-platformBW\n" + + "\027com.google.cloud.run.v2B\017WorkerPoolProtoP\001Z)cloud.google.com/go/run/a" + + "piv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto index 5a19ae2b1ef9..8e92eb1d9440 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto @@ -456,8 +456,8 @@ message WorkerPool { bool threat_detection_enabled = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Not supported, and ignored by Cloud Run. - repeated string custom_audiences = 37; + // Deprecated: Not supported, and ignored by Cloud Run. + repeated string custom_audiences = 37 [deprecated = true]; // Output only. Reserved for future use. bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; From 275d535a54a6e15d7ddfbf99a6bb129c23da1d0e Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 20 Mar 2026 18:36:56 +0000 Subject: [PATCH 3/5] chore: generate libraries at Fri Mar 20 18:33:29 UTC 2026 --- java-run/README.md | 8 ++++---- java-trace/README.md | 8 ++++---- java-visionai/README.md | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/java-run/README.md b/java-run/README.md index f052cf966716..677206b20bd0 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.87.0 + 0.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.87.0' +implementation 'com.google.cloud:google-cloud-run:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.88.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-run/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-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.88.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-trace/README.md b/java-trace/README.md index 7efa4ed86220..0b96e7113741 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.87.0 + 2.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.87.0' +implementation 'com.google.cloud:google-cloud-trace:2.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.88.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-trace/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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.88.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-visionai/README.md b/java-visionai/README.md index 870baf240edd..9678c26c3cc0 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.44.0' +implementation 'com.google.cloud:google-cloud-visionai:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.45.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-visionai/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-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.45.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 From c622f635daa91433f9864e7818f0beb100909d9e Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 21 Mar 2026 02:51:54 +0000 Subject: [PATCH 4/5] chore: Update generation configuration at Sat Mar 21 02:51:46 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index f46b6b992750..33c138b381ce 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.68.0 -googleapis_commitish: c063f49852ce7fc08c722c87f3a6f676209985a2 +googleapis_commitish: 7e8511aad98db8480de0fd594c1cfd09a32b1cf3 libraries_bom_version: 26.78.0 libraries: - api_shortname: accessapproval From c3439fa6a5c35b46672b2194cdd05cdc2ecd9c2c Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 21 Mar 2026 03:04:03 +0000 Subject: [PATCH 5/5] chore: generate libraries at Sat Mar 21 02:54:38 UTC 2026 --- java-biglake/README.md | 8 +- java-ces/README.md | 8 +- .../cloud/ces/v1beta/AgentServiceClient.java | 69 +- .../ces/v1beta/EvaluationServiceClient.java | 63 +- .../ces/v1beta/SessionServiceClient.java | 118 +- .../ces/v1beta/SessionServiceSettings.java | 13 + .../cloud/ces/v1beta/ToolServiceClient.java | 63 +- .../cloud/ces/v1beta/WidgetServiceClient.java | 66 +- .../cloud/ces/v1beta/gapic_metadata.json | 3 + .../google/cloud/ces/v1beta/package-info.java | 1 + .../v1beta/stub/GrpcSessionServiceStub.java | 31 + .../stub/HttpJsonSessionServiceStub.java | 61 + .../ces/v1beta/stub/SessionServiceStub.java | 5 + .../stub/SessionServiceStubSettings.java | 45 +- .../reflect-config.json | 81 + .../ces/v1beta/MockSessionServiceImpl.java | 21 + .../SessionServiceClientHttpJsonTest.java | 13 + .../ces/v1beta/SessionServiceClientTest.java | 49 + .../WidgetServiceClientHttpJsonTest.java | 2 + .../ces/v1beta/WidgetServiceClientTest.java | 3 + .../cloud/ces/v1beta/SessionServiceGrpc.java | 164 +- .../cloud/ces/v1beta/AgentServiceProto.java | 568 +-- .../cloud/ces/v1beta/AmbientSoundConfig.java | 18 +- .../v1beta/AmbientSoundConfigOrBuilder.java | 6 +- .../com/google/cloud/ces/v1beta/AppProto.java | 142 +- .../cloud/ces/v1beta/BargeInConfig.java | 8 +- .../ces/v1beta/BargeInConfigOrBuilder.java | 2 +- .../ces/v1beta/BigQueryExportSettings.java | 28 +- .../BigQueryExportSettingsOrBuilder.java | 8 +- .../cloud/ces/v1beta/ChannelProfile.java | 23 + .../google/cloud/ces/v1beta/CommonProto.java | 17 +- .../ces/v1beta/DeleteConversationRequest.java | 14 +- .../DeleteConversationRequestOrBuilder.java | 4 +- .../ces/v1beta/ErrorHandlingSettings.java | 33 +- .../v1beta/EvaluationMetricsThresholds.java | 14 +- .../EvaluationMetricsThresholdsOrBuilder.java | 4 +- .../cloud/ces/v1beta/ExportAppRequest.java | 217 + .../ces/v1beta/ExportAppRequestOrBuilder.java | 34 + .../v1beta/GenerateAppResourceResponse.java | 327 +- .../GenerateAppResourceResponseOrBuilder.java | 37 + .../ces/v1beta/GenerateChatTokenRequest.java | 97 + .../GenerateChatTokenRequestOrBuilder.java | 13 + .../ces/v1beta/GetConversationRequest.java | 14 +- .../GetConversationRequestOrBuilder.java | 4 +- .../cloud/ces/v1beta/LanguageSettings.java | 96 +- .../ces/v1beta/LanguageSettingsOrBuilder.java | 26 +- .../com/google/cloud/ces/v1beta/McpTool.java | 409 ++ .../cloud/ces/v1beta/McpToolOrBuilder.java | 88 + .../google/cloud/ces/v1beta/McpToolProto.java | 25 +- .../google/cloud/ces/v1beta/McpToolset.java | 409 ++ .../cloud/ces/v1beta/McpToolsetOrBuilder.java | 88 + .../cloud/ces/v1beta/McpToolsetProto.java | 30 +- .../cloud/ces/v1beta/QualityReport.java | 4061 +++++++++++++++++ .../ces/v1beta/QualityReportOrBuilder.java | 222 + .../RunEvaluationOperationMetadata.java | 4 +- .../cloud/ces/v1beta/SessionConfig.java | 117 + .../ces/v1beta/SessionConfigOrBuilder.java | 18 + .../cloud/ces/v1beta/SessionServiceProto.java | 70 +- .../cloud/ces/v1beta/WidgetServiceProto.java | 35 +- .../google/cloud/ces/v1beta/WidgetTool.java | 2685 ++++++++++- .../cloud/ces/v1beta/WidgetToolOrBuilder.java | 83 + .../cloud/ces/v1beta/WidgetToolProto.java | 60 +- .../cloud/ces/v1beta/agent_service.proto | 49 + .../proto/google/cloud/ces/v1beta/app.proto | 18 +- .../cloud/ces/v1beta/bigquery_export.proto | 4 +- .../google/cloud/ces/v1beta/common.proto | 3 + .../cloud/ces/v1beta/evaluation_service.proto | 2 +- .../google/cloud/ces/v1beta/mcp_tool.proto | 8 + .../google/cloud/ces/v1beta/mcp_toolset.proto | 8 + .../cloud/ces/v1beta/session_service.proto | 27 +- .../cloud/ces/v1beta/widget_service.proto | 3 + .../google/cloud/ces/v1beta/widget_tool.proto | 45 + .../exportapp/AsyncExportApp.java | 3 + .../exportapp/AsyncExportAppLRO.java | 3 + .../agentservice/exportapp/SyncExportApp.java | 3 + .../AsyncStreamRunSession.java | 54 + .../AsyncGenerateChatToken.java | 1 + .../SyncGenerateChatToken.java | 1 + java-dialogflow-cx/README.md | 8 +- .../dialogflow/cx/v3beta1/AgentsClient.java | 63 +- .../cx/v3beta1/ChangelogsClient.java | 63 +- .../cx/v3beta1/ConversationHistoryClient.java | 63 +- .../cx/v3beta1/DeploymentsClient.java | 63 +- .../cx/v3beta1/EntityTypesClient.java | 63 +- .../cx/v3beta1/EnvironmentsClient.java | 63 +- .../dialogflow/cx/v3beta1/ExamplesClient.java | 63 +- .../cx/v3beta1/ExperimentsClient.java | 63 +- .../dialogflow/cx/v3beta1/FlowsClient.java | 63 +- .../cx/v3beta1/GeneratorsClient.java | 63 +- .../dialogflow/cx/v3beta1/IntentsClient.java | 63 +- .../dialogflow/cx/v3beta1/PagesClient.java | 63 +- .../cx/v3beta1/PlaybooksClient.java | 63 +- .../SecuritySettingsServiceClient.java | 63 +- .../cx/v3beta1/SessionEntityTypesClient.java | 63 +- .../dialogflow/cx/v3beta1/SessionsClient.java | 63 +- .../cx/v3beta1/TestCasesClient.java | 63 +- .../dialogflow/cx/v3beta1/ToolsClient.java | 63 +- .../v3beta1/TransitionRouteGroupsClient.java | 63 +- .../dialogflow/cx/v3beta1/VersionsClient.java | 63 +- .../dialogflow/cx/v3beta1/WebhooksClient.java | 63 +- .../reflect-config.json | 72 + .../cx/v3beta1/IntentsClientHttpJsonTest.java | 7 + .../cx/v3beta1/IntentsClientTest.java | 5 + .../cx/v3beta1/FlowTraceMetadata.java | 814 ++++ .../v3beta1/FlowTraceMetadataOrBuilder.java | 88 + .../dialogflow/cx/v3beta1/FlowTransition.java | 8 +- .../cx/v3beta1/FlowTransitionOrBuilder.java | 4 +- .../cloud/dialogflow/cx/v3beta1/Intent.java | 189 + .../cx/v3beta1/IntentOrBuilder.java | 26 + .../dialogflow/cx/v3beta1/IntentProto.java | 117 +- .../dialogflow/cx/v3beta1/PlaybookOutput.java | 14 +- .../cx/v3beta1/PlaybookOutputOrBuilder.java | 4 +- .../cx/v3beta1/PlaybookTraceMetadata.java | 818 ++++ .../PlaybookTraceMetadataOrBuilder.java | 88 + .../cx/v3beta1/PlaybookTransition.java | 8 +- .../v3beta1/PlaybookTransitionOrBuilder.java | 4 +- .../cx/v3beta1/QueryParameters.java | 8 +- .../cx/v3beta1/QueryParametersOrBuilder.java | 2 +- .../dialogflow/cx/v3beta1/QueryResult.java | 653 ++- .../cx/v3beta1/QueryResultOrBuilder.java | 87 +- .../dialogflow/cx/v3beta1/SessionProto.java | 705 +-- .../cx/v3beta1/SpeechProcessingMetadata.java | 604 +++ .../SpeechProcessingMetadataOrBuilder.java | 54 + .../dialogflow/cx/v3beta1/TraceBlock.java | 3374 ++++++++++++++ .../cx/v3beta1/TraceBlockOrBuilder.java | 401 ++ .../dialogflow/cx/v3beta1/TraceProto.java | 247 +- .../cloud/dialogflow/cx/v3beta1/intent.proto | 3 + .../cloud/dialogflow/cx/v3beta1/session.proto | 8 + .../cloud/dialogflow/cx/v3beta1/trace.proto | 77 + java-discoveryengine/README.md | 8 +- .../discoveryengine/v1beta/SearchRequest.java | 438 +- .../v1beta/SearchServiceProto.java | 306 +- .../v1beta/search_service.proto | 7 + 133 files changed, 20110 insertions(+), 1746 deletions(-) create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReport.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReportOrBuilder.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/streamrunsession/AsyncStreamRunSession.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadata.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadataOrBuilder.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadata.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadataOrBuilder.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadata.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadataOrBuilder.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlock.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlockOrBuilder.java diff --git a/java-biglake/README.md b/java-biglake/README.md index efcec5d3e6cf..364bef3f4c38 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.75.0' +implementation 'com.google.cloud:google-cloud-biglake:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.76.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-biglake/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-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.76.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-ces/README.md b/java-ces/README.md index 44a098e746e2..7d1e23cbe908 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.3.0' +implementation 'com.google.cloud:google-cloud-ces:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.4.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-ces/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-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.4.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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java index 06c443b4d135..b54a09ae0c0b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java @@ -1049,8 +1049,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.

*
    @@ -1998,6 +2000,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(); * } @@ -2028,6 +2032,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); @@ -2058,6 +2064,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. @@ -8087,13 +8095,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: * @@ -8126,13 +8141,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: * @@ -8166,13 +8188,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/v1beta/EvaluationServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java index 4f69280a2eb6..bfe1ab92e171 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java @@ -681,8 +681,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.

    *
      @@ -5398,13 +5400,20 @@ public final TestPersonaVoiceResponse testPersonaVoice(TestPersonaVoiceRequest r // 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: * @@ -5437,13 +5446,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: * @@ -5477,13 +5493,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/v1beta/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java index 2ecad24387ce..e584786649ae 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java @@ -25,6 +25,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.v1beta.stub.SessionServiceStub; import com.google.cloud.ces.v1beta.stub.SessionServiceStubSettings; @@ -73,7 +74,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.

      *
        @@ -86,6 +87,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.v1beta.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: @@ -107,8 +119,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.

        *
          @@ -243,7 +257,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: * @@ -272,7 +286,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: * @@ -299,6 +313,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.v1beta.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 @@ -377,13 +428,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: * @@ -416,13 +474,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: * @@ -456,13 +521,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/v1beta/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java index 3eb0db665499..bdfff0683506 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/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; @@ -99,6 +100,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() { @@ -233,6 +240,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/v1beta/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java index a1d98cb3d2ff..e982388e2325 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java @@ -114,8 +114,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.

          *
            @@ -425,13 +427,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: * @@ -464,13 +473,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: * @@ -504,13 +520,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/v1beta/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java index ffd1eb9c3182..99a042f286ee 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java @@ -57,6 +57,7 @@ * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } @@ -88,8 +89,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,6 +244,7 @@ public WidgetServiceStub getStub() { * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } @@ -272,6 +276,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); @@ -287,13 +292,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: * @@ -326,13 +338,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: * @@ -366,13 +385,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/v1beta/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json index 12ab8b4f4103..c603439aef68 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json @@ -294,6 +294,9 @@ }, "RunSession": { "methods": ["runSession", "runSessionCallable"] + }, + "StreamRunSession": { + "methods": ["streamRunSessionCallable"] } } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java index fd3ee4853ffd..49ba9fd4a4a5 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java @@ -121,6 +121,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/v1beta/stub/GrpcSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java index a24918e08812..26be1cd49c45 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java @@ -26,6 +26,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.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; @@ -61,6 +62,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.v1beta.SessionService/StreamRunSession") + .setRequestMarshaller(ProtoUtils.marshaller(RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RunSessionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor bidiRunSessionMethodDescriptor = MethodDescriptor.newBuilder() @@ -95,6 +106,8 @@ public class GrpcSessionServiceStub extends SessionServiceStub { .build(); private final UnaryCallable runSessionCallable; + private final ServerStreamingCallable + streamRunSessionCallable; private final BidiStreamingCallable bidiRunSessionCallable; private final UnaryCallable listLocationsCallable; @@ -156,6 +169,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() @@ -185,6 +208,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); @@ -211,6 +237,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/v1beta/stub/HttpJsonSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java index eda67d2e6c75..7c246b4ff2d9 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java @@ -31,6 +31,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.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; @@ -98,6 +99,44 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + streamRunSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.SessionService/StreamRunSession") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{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() @@ -167,6 +206,8 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build(); private final UnaryCallable runSessionCallable; + private final ServerStreamingCallable + streamRunSessionCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -225,6 +266,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() @@ -252,6 +304,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); @@ -270,6 +325,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; @@ -280,6 +336,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/v1beta/stub/SessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java index d18f49b323f6..f6ebad67c695 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java @@ -21,6 +21,7 @@ import com.google.api.core.BetaApi; 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.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; @@ -46,6 +47,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/v1beta/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java index 3b61d17bd585..77977664393d 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 @@ -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; @@ -125,6 +126,8 @@ public class SessionServiceStubSettings extends StubSettings runSessionSettings; + private final ServerStreamingCallSettings + streamRunSessionSettings; private final StreamingCallSettings bidiRunSessionSettings; private final PagedCallSettings< @@ -188,6 +191,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() { @@ -317,6 +326,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(); @@ -335,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< @@ -349,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(); } @@ -380,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/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 c217a57fb252..0bb95cbaf24e 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 @@ -5579,6 +5579,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.RecognitionResult", "queryAllDeclaredConstructors": true, @@ -6776,6 +6830,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.WidgetTool$DataMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.WidgetTool$DataMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.WidgetTool$DataMapping$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.WidgetTool$WidgetType", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java index 26b616b9ba1c..1de577e63165 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/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/v1beta/SessionServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java index e4cbe4636d43..b909cd0f26bf 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java @@ -104,6 +104,7 @@ public void runSessionTest() throws Exception { .setUseToolFakes(true) .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .setEnableTextStreaming(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -151,6 +152,7 @@ public void runSessionExceptionTest() throws Exception { .setUseToolFakes(true) .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .setEnableTextStreaming(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -161,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/v1beta/SessionServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java index cbfe1a12fbdc..25dc41228217 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/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/v1beta/WidgetServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/WidgetServiceClientHttpJsonTest.java index 6e8ee68a3e51..74ec3dd11d3d 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/WidgetServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/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/v1beta/WidgetServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/WidgetServiceClientTest.java index 5fe5e080a52b..28459b065274 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/WidgetServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/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-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java index 7b42e0f373a0..305fd619c56d 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java @@ -76,6 +76,51 @@ private SessionServiceGrpc() {} return getRunSessionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunSessionRequest, + com.google.cloud.ces.v1beta.RunSessionResponse> + getStreamRunSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamRunSession", + requestType = com.google.cloud.ces.v1beta.RunSessionRequest.class, + responseType = com.google.cloud.ces.v1beta.RunSessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunSessionRequest, + com.google.cloud.ces.v1beta.RunSessionResponse> + getStreamRunSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunSessionRequest, + com.google.cloud.ces.v1beta.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.v1beta.RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.RunSessionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("StreamRunSession")) + .build(); + } + } + } + return getStreamRunSessionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.ces.v1beta.BidiSessionClientMessage, com.google.cloud.ces.v1beta.BidiSessionServerMessage> @@ -190,8 +235,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( @@ -201,6 +245,28 @@ 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.v1beta.SessionConfig.enable_text_streaming]
              +     * to true.
              +     * 
              + */ + default void streamRunSession( + com.google.cloud.ces.v1beta.RunSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamRunSessionMethod(), responseObserver); + } + /** * * @@ -308,8 +374,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( @@ -320,6 +385,30 @@ 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.v1beta.SessionConfig.enable_text_streaming]
              +     * to true.
              +     * 
              + */ + public void streamRunSession( + com.google.cloud.ces.v1beta.RunSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamRunSessionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -412,8 +501,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.v1beta.RunSessionResponse runSession( @@ -422,6 +510,27 @@ public com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } + /** * * @@ -515,8 +624,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.v1beta.RunSessionResponse runSession( @@ -524,6 +632,26 @@ public com.google.cloud.ces.v1beta.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.v1beta.SessionConfig.enable_text_streaming]
              +     * to true.
              +     * 
              + */ + public java.util.Iterator streamRunSession( + com.google.cloud.ces.v1beta.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); + } } /** @@ -549,8 +677,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< @@ -562,7 +689,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, @@ -587,6 +715,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.v1beta.RunSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -617,6 +751,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.ces.v1beta.RunSessionRequest, com.google.cloud.ces.v1beta.RunSessionResponse>(service, METHODID_RUN_SESSION))) + .addMethod( + getStreamRunSessionMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.RunSessionRequest, + com.google.cloud.ces.v1beta.RunSessionResponse>( + service, METHODID_STREAM_RUN_SESSION))) .addMethod( getBidiRunSessionMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( @@ -676,6 +817,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-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java index adcc9d15cf39..d311f37b67a6 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java @@ -304,6 +304,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_GenerateAppResourceResponse_GenerateResultInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_GenerateAppResourceResponse_GenerateResultInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_QualityReport_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_QualityReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_QualityReport_Issue_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_QualityReport_Issue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_ListChangelogsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -374,14 +386,16 @@ 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\"\355\001\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\251\002\n" + "\020ExportAppRequest\022,\n" + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022R\n" + "\r" + "export_format\030\002 \001(\01626.google.cloud.ces." + "v1beta.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" @@ -397,12 +411,13 @@ 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\022T\n" - + "\016import_options\030\006 \001(\01327.google.cloud.c" - + "es.v1beta.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" + + "\016import_options\030\006 " + + "\001(\01327.google.cloud.ces.v1beta.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\366\001\n\r" + "ImportOptions\022}\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162R.google.cloud.ces.v1beta.Im" - + "portAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162R.google" + + ".cloud.ces.v1beta.ImportAppRequest.Impor" + + "tOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007REPLACE\020\001\022\r\n" @@ -460,8 +475,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n\n" + "example_id\030\002 \001(\tB\003\340A\001\0226\n" - + "\007example\030\003 \001(\0132" - + " .google.cloud.ces.v1beta.ExampleB\003\340A\002\"\204\001\n" + + "\007example\030\003 \001(\0132 " + + ".google.cloud.ces.v1beta.ExampleB\003\340A\002\"\204\001\n" + "\024UpdateExampleRequest\0226\n" + "\007example\030\001 \001(\0132 .google.cloud.ces.v1beta.ExampleB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"[\n" @@ -501,23 +516,23 @@ 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\022A\n" - + "\006source\030\005 \001(\0162,.googl" - + "e.cloud.ces.v1beta.Conversation.SourceB\003\340A\001\022B\n" - + "\007sources\030\006" - + " \003(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\003\340A\001\"r\n" + + "\006source\030\005" + + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\003\340A\001\022B\n" + + "\007sources\030\006 \003(\016" + + "2,.google.cloud.ces.v1beta.Conversation.SourceB\003\340A\001\"r\n" + "\031ListConversationsResponse\022<\n\r" + "conversations\030\001 \003(\0132%.google.cloud.ces.v1beta.Conversation\022\027\n" + "\017next_page_token\030\002 \001(\t\"\224\001\n" + "\026GetConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022C\n" - + "\006source\030\002" - + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\227\001\n" + + "\006source\030\002 \001(\0162,.google.cloud" + + ".ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\227\001\n" + "\031DeleteConversationRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022C\n" - + "\006source\030\002 \001(\0162" - + ",.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\232\001\n" + + "\006source\030\002" + + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\232\001\n" + "\037BatchDeleteConversationsRequest\0227\n" + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037ces.googleapis.com/Conversation\022>\n\r" @@ -544,8 +559,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB$\340A\002\372A\036\022\034ces.googleapis.com/Guardrail\022\031\n" + "\014guardrail_id\030\002 \001(\tB\003\340A\001\022:\n" - + "\tguardrail\030\003" - + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\003\340A\002\"\212\001\n" + + "\tguardrail\030\003 \001(\0132\"." + + "google.cloud.ces.v1beta.GuardrailB\003\340A\002\"\212\001\n" + "\026UpdateGuardrailRequest\022:\n" + "\tguardrail\030\001" + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\003\340A\002\0224\n" @@ -556,8 +571,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005force\030\002 \001(\010B\003\340A\001\022\021\n" + "\004etag\030\003 \001(\tB\003\340A\001\"\227\001\n" + "\026ListDeploymentsRequest\0225\n" - + "\006parent\030\001 \001(\tB" - + "%\340A\002\372A\037\022\035ces.googleapis.com/Deployment\022\026\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035ces.googleapis.com/Deployment\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\"l\n" @@ -633,19 +648,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RestoreAppVersionRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035ces.googleapis.com/AppVersion\"\033\n" - + "\031RestoreAppVersionResponse\"\362\006\n" + + "\031RestoreAppVersionResponse\"\264\007\n" + "\033GenerateAppResourceResponse\022/\n" + "\005agent\030\001 \001(\0132\036.google.cloud.ces.v1beta.AgentH\000\0223\n" + "\007toolset\030\003 \001(\0132 .google.cloud.ces.v1beta.ToolsetH\000\022<\n" + "\014app_snapshot\030\004 \001(\0132$.google.cloud.ces.v1beta.AppSnapshotH\000\022K\n" - + "\005tools\030\005 \001(\0132:.google.cloud.ces.v1" - + "beta.GenerateAppResourceResponse.ToolsH\000\022W\n" - + "\013evaluations\030\006 \001(\0132@.google.cloud.ces" - + ".v1beta.GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" - + "app_resources\030\007 \001(\0132A.googl" - + "e.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\000\022e\n" - + "\024generate_result_info\030\002 \001(\0132G.google.cloud.ces.v1beta.Ge" - + "nerateAppResourceResponse.GenerateResultInfo\032G\n" + + "\005tools\030\005 \001(\0132:" + + ".google.cloud.ces.v1beta.GenerateAppResourceResponse.ToolsH\000\022W\n" + + "\013evaluations\030\006 \001(" + + "\0132@.google.cloud.ces.v1beta.GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" + + "app_resources\030\007 \001(\0132A.google.cloud.ces.v1beta.G" + + "enerateAppResourceResponse.AppResourcesH\000\022@\n" + + "\016quality_report\030\010" + + " \001(\0132&.google.cloud.ces.v1beta.QualityReportH\000\022e\n" + + "\024generate_result_info\030\002 \001(\0132G.google.cloud.ces.v1b" + + "eta.GenerateAppResourceResponse.GenerateResultInfo\032G\n" + "\013Evaluations\0228\n" + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\0325\n" + "\005Tools\022,\n" @@ -655,7 +672,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013evaluations\030\002 \003(\0132#.google.cloud.ces.v1beta.Evaluation\032)\n" + "\022GenerateResultInfo\022\023\n" + "\013explanation\030\001 \001(\tB\024\n" - + "\022generated_resource\"\252\001\n" + + "\022generated_resource\"\211\003\n\r" + + "QualityReport\022G\n" + + "\006issues\030\001" + + " \003(\01322.google.cloud.ces.v1beta.QualityReport.AgentIssuesB\003\340A\001\022\034\n" + + "\017evaluation_runs\030\002 \003(\tB\003\340A\001\022I\n" + + "\016general_issues\030\003 " + + "\003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\003\340A\001\032`\n" + + "\005Issue\022\030\n" + + "\013description\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020occurrence_count\030\002 \001(\005B\003\340A\001\022\036\n" + + "\021proposed_solution\030\003 \001(\tB\003\340A\001\032d\n" + + "\013AgentIssues\022\022\n" + + "\005agent\030\001 \001(\tB\003\340A\001\022A\n" + + "\006issues\030\002 " + + "\003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\003\340A\001\"\252\001\n" + "\025ListChangelogsRequest\0224\n" + "\006parent\030\001 \001(" + "\tB$\340A\002\372A\036\022\034ces.googleapis.com/Changelog\022\026\n" @@ -673,231 +704,231 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#ces.googleapis.com/SecuritySettings\"\240\001\n" + "\035UpdateSecuritySettingsRequest\022I\n" - + "\021security_settings\030\001 \001(\0132)." - + "google.cloud.ces.v1beta.SecuritySettingsB\003\340A\002\0224\n" + + "\021security_settings\030\001 \001(\0132" + + ").google.cloud.ces.v1beta.SecuritySettingsB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0012\313K\n" + "\014AgentService\022\236\001\n" - + "\010ListApps\022(.google.cloud.ces.v1beta.List" - + "AppsRequest\032).google.cloud.ces.v1beta.Li" - + "stAppsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1beta" - + "/{parent=projects/*/locations/*}/apps\022\213\001\n" - + "\006GetApp\022&.google.cloud.ces.v1beta.GetAp" - + "pRequest\032\034.google.cloud.ces.v1beta.App\";" - + "\332A\004name\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" - + "\tCreateApp\022).goog" - + "le.cloud.ces.v1beta.CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + + "\010ListApps\022(.google.cloud.ces.v1beta.Li" + + "stAppsRequest\032).google.cloud.ces.v1beta." + + "ListAppsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1be" + + "ta/{parent=projects/*/locations/*}/apps\022\213\001\n" + + "\006GetApp\022&.google.cloud.ces.v1beta.Get" + + "AppRequest\032\034.google.cloud.ces.v1beta.App" + + "\";\332A\004name\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" + + "\tCreateApp\022).go" + + "ogle.cloud.ces.v1beta.CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" + "parent,app\202\323\344\223\0023\",/v1beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" - + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRequ" - + "est\032\034.google.cloud.ces.v1beta.App\"O\332A\017ap" - + "p,update_mask\202\323\344\223\002720/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" - + "\tDeleteApp\022).google.cloud.ces.v1beta.Delet" - + "eAppRequest\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" - + "\tExportApp\022).google.cloud.ces.v1beta.ExportAppRe" - + "quest\032\035.google.longrunning.Operation\"q\312A&\n" - + "\021ExportAppResponse\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\337\001\n" - + "\tImportApp\022).google.cloud.ces.v1beta.ImportAp" - + "pRequest\032\035.google.longrunning.Operation\"\207\001\312A&\n" - + "\021ImportAppResponse\022\021OperationMetad" - + "ata\332A\032parent,display_name,app_id\202\323\344\223\002;\"6" - + "/v1beta/{parent=projects/*/locations/*}/apps:importApp:\001*\022\274\001\n" - + "\023GetSecuritySettings\0223.google.cloud.ces.v1beta.GetSecurityS" - + "ettingsRequest\032).google.cloud.ces.v1beta" - + ".SecuritySettings\"E\332A\004name\202\323\344\223\0028\0226/v1bet" - + "a/{name=projects/*/locations/*/securitySettings}\022\201\002\n" - + "\026UpdateSecuritySettings\0226.google.cloud.ces.v1beta.UpdateSecuritySett" - + "ingsRequest\032).google.cloud.ces.v1beta.Se" - + "curitySettings\"\203\001\332A\035security_settings,up" - + "date_mask\202\323\344\223\002]2H/v1beta/{security_setti" - + "ngs.name=projects/*/locations/*/securitySettings}:\021security_settings\022\255\001\n\n" - + "ListAgents\022*.google.cloud.ces.v1beta.ListAgents" - + "Request\032+.google.cloud.ces.v1beta.ListAg" - + "entsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{" - + "parent=projects/*/locations/*/apps/*}/agents\022\232\001\n" - + "\010GetAgent\022(.google.cloud.ces.v1beta.GetAgentRequest\032\036.google.cloud.ces.v" - + "1beta.Agent\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{nam" - + "e=projects/*/locations/*/apps/*/agents/*}\022\307\001\n" - + "\013CreateAgent\022+.google.cloud.ces.v1b" - + "eta.CreateAgentRequest\032\036.google.cloud.ce" - + "s.v1beta.Agent\"k\332A\025parent,agent,agent_id" - + "\332A\014parent,agent\202\323\344\223\002>\"5/v1beta/{parent=p" - + "rojects/*/locations/*/apps/*}/agents:\005agent\022\272\001\n" - + "\013UpdateAgent\022+.google.cloud.ces.v1beta.UpdateAgentRequest\032\036.google.cloud." - + "ces.v1beta.Agent\"^\332A\021agent,update_mask\202\323" - + "\344\223\002D2;/v1beta/{agent.name=projects/*/locations/*/apps/*/agents/*}:\005agent\022\230\001\n" - + "\013DeleteAgent\022+.google.cloud.ces.v1beta.Delet" - + "eAgentRequest\032\026.google.protobuf.Empty\"D\332" - + "A\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\022\265\001\n" - + "\014ListExamples\022,.google.cloud.ces.v1beta.ListExamp" - + "lesRequest\032-.google.cloud.ces.v1beta.Lis" - + "tExamplesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1b" - + "eta/{parent=projects/*/locations/*/apps/*}/examples\022\242\001\n\n" - + "GetExample\022*.google.cloud.ces.v1beta.GetExampleRequest\032 .google." - + "cloud.ces.v1beta.Example\"F\332A\004name\202\323\344\223\0029\022" - + "7/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\022\327\001\n\r" + + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRe" + + "quest\032\034.google.cloud.ces.v1beta.App\"O\332A\017" + + "app,update_mask\202\323\344\223\002720/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" + + "\tDeleteApp\022).google.cloud.ces.v1beta.Del" + + "eteAppRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" + + "\tExportApp\022).google.cloud.ces.v1beta.ExportApp" + + "Request\032\035.google.longrunning.Operation\"q\312A&\n" + + "\021ExportAppResponse\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\337\001\n" + + "\tImportApp\022).google.cloud.ces.v1beta.Import" + + "AppRequest\032\035.google.longrunning.Operation\"\207\001\312A&\n" + + "\021ImportAppResponse\022\021OperationMet" + + "adata\332A\032parent,display_name,app_id\202\323\344\223\002;" + + "\"6/v1beta/{parent=projects/*/locations/*}/apps:importApp:\001*\022\274\001\n" + + "\023GetSecuritySettings\0223.google.cloud.ces.v1beta.GetSecurit" + + "ySettingsRequest\032).google.cloud.ces.v1be" + + "ta.SecuritySettings\"E\332A\004name\202\323\344\223\0028\0226/v1b" + + "eta/{name=projects/*/locations/*/securitySettings}\022\201\002\n" + + "\026UpdateSecuritySettings\0226.google.cloud.ces.v1beta.UpdateSecuritySe" + + "ttingsRequest\032).google.cloud.ces.v1beta." + + "SecuritySettings\"\203\001\332A\035security_settings," + + "update_mask\202\323\344\223\002]2H/v1beta/{security_set" + + "tings.name=projects/*/locations/*/securitySettings}:\021security_settings\022\255\001\n\n" + + "ListAgents\022*.google.cloud.ces.v1beta.ListAgen" + + "tsRequest\032+.google.cloud.ces.v1beta.List" + + "AgentsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta" + + "/{parent=projects/*/locations/*/apps/*}/agents\022\232\001\n" + + "\010GetAgent\022(.google.cloud.ces.v1beta.GetAgentRequest\032\036.google.cloud.ces" + + ".v1beta.Agent\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{n" + + "ame=projects/*/locations/*/apps/*/agents/*}\022\307\001\n" + + "\013CreateAgent\022+.google.cloud.ces.v1beta.CreateAgentRequest\032\036.google.cloud." + + "ces.v1beta.Agent\"k\332A\025parent,agent,agent_" + + "id\332A\014parent,agent\202\323\344\223\002>\"5/v1beta/{parent" + + "=projects/*/locations/*/apps/*}/agents:\005agent\022\272\001\n" + + "\013UpdateAgent\022+.google.cloud.ces.v1beta.UpdateAgentRequest\032\036.google.clou" + + "d.ces.v1beta.Agent\"^\332A\021agent,update_mask" + + "\202\323\344\223\002D2;/v1beta/{agent.name=projects/*/locations/*/apps/*/agents/*}:\005agent\022\230\001\n" + + "\013DeleteAgent\022+.google.cloud.ces.v1beta.Del" + + "eteAgentRequest\032\026.google.protobuf.Empty\"" + + "D\332A\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\022\265\001\n" + + "\014ListExamples\022,.google.cloud.ces.v1beta.ListExa" + + "mplesRequest\032-.google.cloud.ces.v1beta.L" + + "istExamplesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "1beta/{parent=projects/*/locations/*/apps/*}/examples\022\242\001\n\n" + + "GetExample\022*.google.cloud.ces.v1beta.GetExampleRequest\032 .googl" + + "e.cloud.ces.v1beta.Example\"F\332A\004name\202\323\344\223\002" + + "9\0227/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\022\327\001\n\r" + "CreateExample\022-.google.cloud.ces.v1beta.CreateExampleRequest\032" - + " .google.cloud.ces.v1beta.Example\"u\332A\031" - + "parent,example,example_id\332A\016parent,examp" - + "le\202\323\344\223\002B\"7/v1beta/{parent=projects/*/locations/*/apps/*}/examples:\007example\022\310\001\n\r" - + "UpdateExample\022-.google.cloud.ces.v1beta.UpdateExampleRequest\032" - + " .google.cloud.ces.v1beta.Example\"f\332A\023example,update_mask\202\323\344" - + "\223\002J2?/v1beta/{example.name=projects/*/lo" - + "cations/*/apps/*/examples/*}:\007example\022\236\001\n\r" - + "DeleteExample\022-.google.cloud.ces.v1bet" - + "a.DeleteExampleRequest\032\026.google.protobuf" - + ".Empty\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=pro" - + "jects/*/locations/*/apps/*/examples/*}\022\251\001\n" - + "\tListTools\022).google.cloud.ces.v1beta.ListToolsRequest\032*.google.cloud.ces.v1bet" - + "a.ListToolsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v" - + "1beta/{parent=projects/*/locations/*/apps/*}/tools\022\226\001\n" - + "\007GetTool\022\'.google.cloud.ces.v1beta.GetToolRequest\032\035.google.cloud.c" - + "es.v1beta.Tool\"C\332A\004name\202\323\344\223\0026\0224/v1beta/{" - + "name=projects/*/locations/*/apps/*/tools/*}\022\311\001\n" - + "\021ListConversations\0221.google.cloud.ces.v1beta.ListConversationsRequest\0322.g" - + "oogle.cloud.ces.v1beta.ListConversations" - + "Response\"M\332A\006parent\202\323\344\223\002>\022\022*\022\022* * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1067,7 +1067,7 @@ public Builder clearSource() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1089,7 +1089,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1114,7 +1114,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1139,7 +1139,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1171,7 +1171,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1200,7 +1200,7 @@ public Builder setPrebuiltAmbientNoise( * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java index 618cefedd0ea..e698f364e284 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=301 + * See google/cloud/ces/v1beta/app.proto;l=305 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java index d0e48bfacf09..2a971ac644da 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java @@ -233,15 +233,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\"\317\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\"\317\003\n" + "\025AudioProcessingConfig\022s\n" - + "\031synthesize_speech_configs\030\001 \003(\0132K.google.cloud.ces.v" - + "1beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022D\n" + + "\031synthesize_speech_configs\030\001 \003(\0132K.google.cloud.ces" + + ".v1beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022D\n" + "\017barge_in_config\030\003" + " \001(\0132&.google.cloud.ces.v1beta.BargeInConfigB\003\340A\001\022:\n" + "\022inactivity_timeout\030\004" @@ -253,8 +253,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002" + " \001(\0132/.google.cloud.ces.v1beta.SynthesizeSpeechConfig:\0028\001\"\331\002\n" + "\022AmbientSoundConfig\022i\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162" - + "@.google.cloud.ces.v1beta.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + + "\026prebuilt_ambient_noise\030\001 \001(" + + "\0162@.google.cloud.ces.v1beta.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" @@ -273,54 +273,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026MetricAnalysisSettings\022\"\n" + "\025llm_metrics_opted_out\030\001 \001(\010B\003\340A\001\"\363\004\n" + "\017LoggingSettings\022G\n" - + "\020redaction_config\030\001 \001(\0132(." - + "google.cloud.ces.v1beta.RedactionConfigB\003\340A\001\022R\n" - + "\026audio_recording_config\030\002 \001(\0132-.g" - + "oogle.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" - + "\030bigquery_export_settings\030\003 \001" - + "(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\003\340A\001\022R\n" + + "\020redaction_config\030\001 \001(\0132" + + "(.google.cloud.ces.v1beta.RedactionConfigB\003\340A\001\022R\n" + + "\026audio_recording_config\030\002 \001(\0132-" + + ".google.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" + + "\030bigquery_export_settings\030\003" + + " \001(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\003\340A\001\022R\n" + "\026cloud_logging_settings\030\004" + " \001(\0132-.google.cloud.ces.v1beta.CloudLoggingSettingsB\003\340A\001\022`\n" - + "\035conversation_logging_settings\030\005 \001(\01324.google.cloud.ces.v" - + "1beta.ConversationLoggingSettingsB\003\340A\001\022]\n" - + "!evaluation_audio_recording_config\030\006 \001(" - + "\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" + + "\035conversation_logging_settings\030\005 \001(\01324.google.cloud.ces" + + ".v1beta.ConversationLoggingSettingsB\003\340A\001\022]\n" + + "!evaluation_audio_recording_config\030\006 " + + "\001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\346\001\n" + + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\367\001\n" + "\025ErrorHandlingSettings\022j\n" - + "\027error_handling_strategy\030\001 \001(\016" - + "2D.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"a\n" + + "\027error_handling_strategy\030\001 \001" + + "(\0162D.google.cloud.ces.v1beta.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\"\250\020\n" + + "\021FALLBACK_RESPONSE\020\002\022\017\n" + + "\013END_SESSION\020\003\"\250\020\n" + "\033EvaluationMetricsThresholds\022\211\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.google.cloud.ces.v1beta." - + "EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162P.google.cloud" - + ".ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" - + "$golden_hallucination_metric_behavior\030\005 \001(" - + "\0162P.google.cloud.ces.v1beta.EvaluationMe" - + "tricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google.cloud.ces.v1b" - + "eta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\213\t\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.googl" + + "e.cloud.ces.v1beta.EvaluationMetricsThre" + + "sholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" + + "\035hallucination_metric_behavior\030\003" + + " \001(\0162P.google.cloud.ces.v1beta.Evaluatio" + + "nMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces." + + "v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.g" + + "oogle.cloud.ces.v1beta.EvaluationMetrics" + + "Thresholds.HallucinationMetricBehaviorB\003\340A\001\032\213\t\n" + "!GoldenEvaluationMetricsThresholds\022\235\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.google.cloud.ce" - + "s.v1beta.EvaluationMetricsThresholds.Gol" - + "denEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132x.google.c" - + "loud.ces.v1beta.EvaluationMetricsThresho" - + "lds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" - + "\026tool_matching_settings\030\003 \001(\0132I.google.cl" - + "oud.ces.v1beta.EvaluationMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\212\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(" + + "\0132q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsT" + + "hresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" + + "$expectation_level_metrics_thresholds\030\002" + + " \001(\0132x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationM" + + "etricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" + + "\026tool_matching_settings\030\003 \001(\0132I.google.cloud.ces.v1beta.Evalua" + + "tionMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\212\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\266\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\213\001.google.cloud.ces." - + "v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMe" - + "tricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\213" + + "\001.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" + + "esholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -332,8 +335,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\367\001\n" + "\024ToolMatchingSettings\022\206\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.cloud.ces.v1beta.Eva" - + "luationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.c" + + "loud.ces.v1beta.EvaluationMetricsThresho" + + "lds.ToolMatchingSettings.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" @@ -343,14 +347,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\"\224\004\n" + "\022EvaluationSettings\022w\n" - + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cloud.ces.v1beta.Eval" - + "uationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" - + "\021golden_run_method\030\004 \001(\0162(.g" - + "oogle.cloud.ces.v1beta.GoldenRunMethodB\003\340A\001\022h\n" - + "%golden_evaluation_tool_call_behaviour\030\002" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" - + "\'scenario_evaluation_tool_call_behaviour\030\003 \001(\01624" - + ".google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"e\n" + + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cl" + + "oud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" + + "\021golden_run_method\030\004" + + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\001\022h\n" + + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.google.c" + + "loud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" + + "\'scenario_evaluation_tool_call_behaviour\030\003" + + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"e\n" + "\035ScenarioConversationInitiator\022/\n" + "+SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED\020\000\022\010\n" + "\004USER\020\001\022\t\n" @@ -374,13 +378,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\273\002\n" + "\021DataStoreSettings\022G\n" - + "\007engines\030\003" - + " \003(\01321.google.cloud.ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + + "\007engines\030\003 \003(\01321.google.cloud" + + ".ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022I\n" - + "\004type\030\002 \001(\01626.google.cl" - + "oud.ces.v1beta.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + + "\004type\030\002" + + " \001(\01626.google.cloud.ces.v1beta.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" @@ -390,12 +394,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013personality\030\004 \001(\tB\003\340A\002\022S\n\r" - + "speech_config\030\005 \001(\01327.google.cl" - + "oud.ces.v1beta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + + "speech_config\030\005" + + " \001(\01327.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + "\014SpeechConfig\022\032\n\r" + "speaking_rate\030\001 \001(\001B\003\340A\001\022g\n" - + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1beta.EvaluationPersona" - + ".SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1bet" + + "a.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + "\010voice_id\030\003 \001(\tB\003\340A\001\"w\n" + "\025BackgroundEnvironment\022&\n" + "\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\020\000\022\017\n" @@ -403,16 +407,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TRAFFIC\020\004\022\016\n\n" + "KIDS_NOISE\020\005\022\010\n" + "\004CAFE\020\006B\374\004\n" - + "\033com.google." - + "cloud.ces.v1betaB\010AppProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization}/locations/{loc" - + "ation}/inspectTemplates/{inspect_template}\022Kprojects/{project}/locations/{locati" - + "on}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locatio" - + "ns/{location}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/loca" - + "tions/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}" - + "/locations/{location}/collections/{collection}/engines/{engine}b\006proto3" + + "\033com.google.cloud.ces.v1betaB\010App" + + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organizat" + + "ion}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project" + + "}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{or" + + "ganization}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qproj" + + "ects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}" + + "/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java index ec7de2ccb9bd..96b73f34f08a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=349 + * google/cloud/ces/v1beta/app.proto;l=353 * @return The disableBargeIn. */ @java.lang.Override @@ -465,7 +465,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=349 + * google/cloud/ces/v1beta/app.proto;l=353 * @return The disableBargeIn. */ @java.lang.Override @@ -490,7 +490,7 @@ public boolean getDisableBargeIn() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=349 + * google/cloud/ces/v1beta/app.proto;l=353 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -519,7 +519,7 @@ public Builder setDisableBargeIn(boolean value) { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=349 + * google/cloud/ces/v1beta/app.proto;l=353 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java index 660a8703a545..6a8243706725 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java @@ -42,7 +42,7 @@ public interface BargeInConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=349 + * google/cloud/ces/v1beta/app.proto;l=353 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettings.java index 9e84edc0cd25..217badca7f93 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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]; @@ -622,7 +622,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
              @@ -649,7 +649,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
              @@ -676,7 +676,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
              @@ -702,7 +702,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
              @@ -724,7 +724,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
              @@ -753,7 +753,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]; @@ -776,7 +776,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]; @@ -799,7 +799,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]; @@ -821,7 +821,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]; @@ -839,7 +839,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-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettingsOrBuilder.java index 31d22ddcff16..492cd3c76fd6 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BigQueryExportSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java index 2d2dfdde2500..99fa0f365c34 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfile.java @@ -1371,6 +1371,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), ; @@ -1428,6 +1438,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( @@ -1460,6 +1481,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-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java index dc33ab6f3e20..a718019c08d3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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\"\305\n\n" + + "\'servicedirectory.googleapis.com/Service\"\337\n\n" + "\016ChannelProfile\022\027\n\n" + "profile_id\030\001 \001(\tB\003\340A\001\022N\n" + "\014channel_type\030\003" @@ -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\353\004\n" + + "\006CHATTY\020\002\032\205\005\n" + "\017WebWidgetConfig\022W\n" + "\010modality\030\001 \001(\0162@.google.cl" + "oud.ces.v1beta.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022Q\n" @@ -183,12 +183,13 @@ 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" @@ -214,10 +215,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\332\001\n" - + "\033com.google.cloud.ces.v1betaB\013CommonProtoP" - + "\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locatio" - + "ns/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\033com.google.clou" + + "d.ces.v1betaB\013CommonProtoP\001Z-cloud.google.com/go/ces/apiv1beta/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-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java index 909389266da6..9ac29fb7f2e8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The source. */ @java.lang.Override @@ -648,7 +648,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -670,7 +670,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -695,7 +695,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The source. */ @java.lang.Override @@ -719,7 +719,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @param value The source to set. * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java index 0ed8bd81c7a4..5927517801de 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1181 + * google/cloud/ces/v1beta/agent_service.proto;l=1189 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java index 5d2b799bf2dd..b450f6e9a432 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java @@ -84,7 +84,7 @@ public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessage * * *
              -     * Unspecified error handling strategy. Defaults to FALLBACK_RESPONSE.
              +     * Unspecified error handling strategy.
                    * 
              * * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; @@ -105,12 +105,23 @@ public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessage * *
                    * A fallback message will be returned to the user in case of
              -     * LLM errors.
              +     * system errors (e.g. LLM errors).
                    * 
              * * FALLBACK_RESPONSE = 2; */ FALLBACK_RESPONSE(2), + /** + * + * + *
              +     * An [EndSession][google.cloud.ces.v1beta.EndSession] signal will be
              +     * emitted in case of system errors (e.g. LLM errors).
              +     * 
              + * + * END_SESSION = 3; + */ + END_SESSION(3), UNRECOGNIZED(-1), ; @@ -128,7 +139,7 @@ public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessage * * *
              -     * Unspecified error handling strategy. Defaults to FALLBACK_RESPONSE.
              +     * Unspecified error handling strategy.
                    * 
              * * ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0; @@ -151,13 +162,25 @@ public enum ErrorHandlingStrategy implements com.google.protobuf.ProtocolMessage * *
                    * A fallback message will be returned to the user in case of
              -     * LLM errors.
              +     * system errors (e.g. LLM errors).
                    * 
              * * FALLBACK_RESPONSE = 2; */ public static final int FALLBACK_RESPONSE_VALUE = 2; + /** + * + * + *
              +     * An [EndSession][google.cloud.ces.v1beta.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( @@ -188,6 +211,8 @@ public static ErrorHandlingStrategy forNumber(int value) { return NONE; case 2: return FALLBACK_RESPONSE; + case 3: + return END_SESSION; default: return null; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java index 70a8938c5050..286c9cfc83cf 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java @@ -4770,7 +4770,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4792,7 +4792,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5586,7 +5586,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5608,7 +5608,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5633,7 +5633,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5662,7 +5662,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5691,7 +5691,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java index 46e81794d684..9220a0d0d71b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=538 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequest.java index 440f7adb4cef..3fb9c28eebcd 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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; @@ -465,6 +533,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; } @@ -482,6 +551,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; @@ -626,6 +697,7 @@ public Builder clear() { name_ = ""; exportFormat_ = 0; gcsUri_ = ""; + appVersion_ = ""; return this; } @@ -671,6 +743,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ExportAppRequest result) if (((from_bitField0_ & 0x00000004) != 0)) { result.gcsUri_ = gcsUri_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.appVersion_ = appVersion_; + } } @java.lang.Override @@ -698,6 +773,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportAppRequest other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -742,6 +822,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)) { @@ -1116,6 +1202,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.v1beta.ExportAppRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequestOrBuilder.java index b580172fa151..543c4739c720 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportAppRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponse.java index f63cc2167032..22277f44deaa 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponse.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponse.java @@ -3991,6 +3991,7 @@ public enum GeneratedResourceCase TOOLS(5), EVALUATIONS(6), APP_RESOURCES(7), + QUALITY_REPORT(8), GENERATEDRESOURCE_NOT_SET(0); private final int value; @@ -4022,6 +4023,8 @@ public static GeneratedResourceCase forNumber(int value) { return EVALUATIONS; case 7: return APP_RESOURCES; + case 8: + return QUALITY_REPORT; case 0: return GENERATEDRESOURCE_NOT_SET; default: @@ -4380,6 +4383,60 @@ public com.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResources getA .getDefaultInstance(); } + public static final int QUALITY_REPORT_FIELD_NUMBER = 8; + + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return Whether the qualityReport field is set. + */ + @java.lang.Override + public boolean hasQualityReport() { + return generatedResourceCase_ == 8; + } + + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return The qualityReport. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport getQualityReport() { + if (generatedResourceCase_ == 8) { + return (com.google.cloud.ces.v1beta.QualityReport) generatedResource_; + } + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReportOrBuilder getQualityReportOrBuilder() { + if (generatedResourceCase_ == 8) { + return (com.google.cloud.ces.v1beta.QualityReport) generatedResource_; + } + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + public static final int GENERATE_RESULT_INFO_FIELD_NUMBER = 2; private com.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo generateResultInfo_; @@ -4485,6 +4542,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResources) generatedResource_); } + if (generatedResourceCase_ == 8) { + output.writeMessage(8, (com.google.cloud.ces.v1beta.QualityReport) generatedResource_); + } getUnknownFields().writeTo(output); } @@ -4532,6 +4592,11 @@ public int getSerializedSize() { (com.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResources) generatedResource_); } + if (generatedResourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.ces.v1beta.QualityReport) generatedResource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4572,6 +4637,9 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getAppResources().equals(other.getAppResources())) return false; break; + case 8: + if (!getQualityReport().equals(other.getQualityReport())) return false; + break; case 0: default: } @@ -4615,6 +4683,10 @@ public int hashCode() { hash = (37 * hash) + APP_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getAppResources().hashCode(); break; + case 8: + hash = (37 * hash) + QUALITY_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getQualityReport().hashCode(); + break; case 0: default: } @@ -4787,6 +4859,9 @@ public Builder clear() { if (appResourcesBuilder_ != null) { appResourcesBuilder_.clear(); } + if (qualityReportBuilder_ != null) { + qualityReportBuilder_.clear(); + } generateResultInfo_ = null; if (generateResultInfoBuilder_ != null) { generateResultInfoBuilder_.dispose(); @@ -4832,7 +4907,7 @@ public com.google.cloud.ces.v1beta.GenerateAppResourceResponse buildPartial() { private void buildPartial0(com.google.cloud.ces.v1beta.GenerateAppResourceResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.generateResultInfo_ = generateResultInfoBuilder_ == null ? generateResultInfo_ @@ -4864,6 +4939,9 @@ private void buildPartialOneofs( if (generatedResourceCase_ == 7 && appResourcesBuilder_ != null) { result.generatedResource_ = appResourcesBuilder_.build(); } + if (generatedResourceCase_ == 8 && qualityReportBuilder_ != null) { + result.generatedResource_ = qualityReportBuilder_.build(); + } } @java.lang.Override @@ -4913,6 +4991,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.GenerateAppResourceResponse mergeAppResources(other.getAppResources()); break; } + case QUALITY_REPORT: + { + mergeQualityReport(other.getQualityReport()); + break; + } case GENERATEDRESOURCE_NOT_SET: { break; @@ -4954,7 +5037,7 @@ public Builder mergeFrom( { input.readMessage( internalGetGenerateResultInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 18 case 26: @@ -4990,6 +5073,13 @@ public Builder mergeFrom( generatedResourceCase_ = 7; break; } // case 58 + case 66: + { + input.readMessage( + internalGetQualityReportFieldBuilder().getBuilder(), extensionRegistry); + generatedResourceCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6401,6 +6491,225 @@ public Builder clearAppResources() { return appResourcesBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport, + com.google.cloud.ces.v1beta.QualityReport.Builder, + com.google.cloud.ces.v1beta.QualityReportOrBuilder> + qualityReportBuilder_; + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return Whether the qualityReport field is set. + */ + @java.lang.Override + public boolean hasQualityReport() { + return generatedResourceCase_ == 8; + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return The qualityReport. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport getQualityReport() { + if (qualityReportBuilder_ == null) { + if (generatedResourceCase_ == 8) { + return (com.google.cloud.ces.v1beta.QualityReport) generatedResource_; + } + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } else { + if (generatedResourceCase_ == 8) { + return qualityReportBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + public Builder setQualityReport(com.google.cloud.ces.v1beta.QualityReport value) { + if (qualityReportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatedResource_ = value; + onChanged(); + } else { + qualityReportBuilder_.setMessage(value); + } + generatedResourceCase_ = 8; + return this; + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + public Builder setQualityReport( + com.google.cloud.ces.v1beta.QualityReport.Builder builderForValue) { + if (qualityReportBuilder_ == null) { + generatedResource_ = builderForValue.build(); + onChanged(); + } else { + qualityReportBuilder_.setMessage(builderForValue.build()); + } + generatedResourceCase_ = 8; + return this; + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + public Builder mergeQualityReport(com.google.cloud.ces.v1beta.QualityReport value) { + if (qualityReportBuilder_ == null) { + if (generatedResourceCase_ == 8 + && generatedResource_ + != com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance()) { + generatedResource_ = + com.google.cloud.ces.v1beta.QualityReport.newBuilder( + (com.google.cloud.ces.v1beta.QualityReport) generatedResource_) + .mergeFrom(value) + .buildPartial(); + } else { + generatedResource_ = value; + } + onChanged(); + } else { + if (generatedResourceCase_ == 8) { + qualityReportBuilder_.mergeFrom(value); + } else { + qualityReportBuilder_.setMessage(value); + } + } + generatedResourceCase_ = 8; + return this; + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + public Builder clearQualityReport() { + if (qualityReportBuilder_ == null) { + if (generatedResourceCase_ == 8) { + generatedResourceCase_ = 0; + generatedResource_ = null; + onChanged(); + } + } else { + if (generatedResourceCase_ == 8) { + generatedResourceCase_ = 0; + generatedResource_ = null; + } + qualityReportBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + public com.google.cloud.ces.v1beta.QualityReport.Builder getQualityReportBuilder() { + return internalGetQualityReportFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReportOrBuilder getQualityReportOrBuilder() { + if ((generatedResourceCase_ == 8) && (qualityReportBuilder_ != null)) { + return qualityReportBuilder_.getMessageOrBuilder(); + } else { + if (generatedResourceCase_ == 8) { + return (com.google.cloud.ces.v1beta.QualityReport) generatedResource_; + } + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + } + + /** + * + * + *
              +     * The quality report generated by the LLM assistant.
              +     * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport, + com.google.cloud.ces.v1beta.QualityReport.Builder, + com.google.cloud.ces.v1beta.QualityReportOrBuilder> + internalGetQualityReportFieldBuilder() { + if (qualityReportBuilder_ == null) { + if (!(generatedResourceCase_ == 8)) { + generatedResource_ = com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + qualityReportBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport, + com.google.cloud.ces.v1beta.QualityReport.Builder, + com.google.cloud.ces.v1beta.QualityReportOrBuilder>( + (com.google.cloud.ces.v1beta.QualityReport) generatedResource_, + getParentForChildren(), + isClean()); + generatedResource_ = null; + } + generatedResourceCase_ = 8; + onChanged(); + return qualityReportBuilder_; + } + private com.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo generateResultInfo_; private com.google.protobuf.SingleFieldBuilder< @@ -6423,7 +6732,7 @@ public Builder clearAppResources() { * @return Whether the generateResultInfo field is set. */ public boolean hasGenerateResultInfo() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6472,7 +6781,7 @@ public Builder setGenerateResultInfo( } else { generateResultInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6496,7 +6805,7 @@ public Builder setGenerateResultInfo( } else { generateResultInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6515,7 +6824,7 @@ public Builder setGenerateResultInfo( public Builder mergeGenerateResultInfo( com.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo value) { if (generateResultInfoBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && generateResultInfo_ != null && generateResultInfo_ != com.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo @@ -6528,7 +6837,7 @@ public Builder mergeGenerateResultInfo( generateResultInfoBuilder_.mergeFrom(value); } if (generateResultInfo_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6546,7 +6855,7 @@ public Builder mergeGenerateResultInfo( * */ public Builder clearGenerateResultInfo() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); generateResultInfo_ = null; if (generateResultInfoBuilder_ != null) { generateResultInfoBuilder_.dispose(); @@ -6569,7 +6878,7 @@ public Builder clearGenerateResultInfo() { */ public com.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo.Builder getGenerateResultInfoBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetGenerateResultInfoFieldBuilder().getBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponseOrBuilder.java index 1d1587a2e66d..ecd0b4ce6aa8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateAppResourceResponseOrBuilder.java @@ -259,6 +259,43 @@ public interface GenerateAppResourceResponseOrBuilder com.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesOrBuilder getAppResourcesOrBuilder(); + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return Whether the qualityReport field is set. + */ + boolean hasQualityReport(); + + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + * + * @return The qualityReport. + */ + com.google.cloud.ces.v1beta.QualityReport getQualityReport(); + + /** + * + * + *
              +   * The quality report generated by the LLM assistant.
              +   * 
              + * + * .google.cloud.ces.v1beta.QualityReport quality_report = 8; + */ + com.google.cloud.ces.v1beta.QualityReportOrBuilder getQualityReportOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequest.java index 60b086a60db2..0a6c0d7e6e72 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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.v1beta.GenerateChatTokenRequest 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.v1beta.GenerateChatTokenRequest ot 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.v1beta.GenerateChatTokenRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequestOrBuilder.java index 5b959e7147f1..985d63d26244 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateChatTokenRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java index 2ce4b3c156ce..a3270cd85633 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The source. */ @java.lang.Override @@ -647,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -669,7 +669,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @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.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The source. */ @java.lang.Override @@ -718,7 +718,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @param value The source to set. * @return This builder for chaining. */ @@ -746,7 +746,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java index 37bcfaf62c18..7749524d95a9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1164 + * google/cloud/ces/v1beta/agent_service.proto;l=1172 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java index 84cee981e4ec..b6f33e3fd38c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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() {
                  * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @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() {
                  * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @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) { @@ -1065,8 +1079,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:
              @@ -1077,10 +1094,15 @@ public Builder clearEnableMultilingualSupport() {
                    * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @return The fallbackAction. */ + @java.lang.Deprecated public java.lang.String getFallbackAction() { java.lang.Object ref = fallbackAction_; if (!(ref instanceof java.lang.String)) { @@ -1097,8 +1119,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:
              @@ -1109,10 +1134,15 @@ public java.lang.String getFallbackAction() {
                    * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getFallbackActionBytes() { java.lang.Object ref = fallbackAction_; if (ref instanceof String) { @@ -1129,8 +1159,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:
              @@ -1141,11 +1174,16 @@ public com.google.protobuf.ByteString getFallbackActionBytes() {
                    * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @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(); @@ -1160,8 +1198,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:
              @@ -1172,10 +1213,15 @@ public Builder setFallbackAction(java.lang.String value) {
                    * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearFallbackAction() { fallbackAction_ = getDefaultInstance().getFallbackAction(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1187,8 +1233,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:
              @@ -1199,11 +1248,16 @@ public Builder clearFallbackAction() {
                    * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @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-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java index 96e3953df299..cef52839839d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/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
                  * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @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
                  * terminate the 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.v1beta.LanguageSettings.fallback_action is deprecated. See + * google/cloud/ces/v1beta/app.proto;l=247 * @return The bytes for fallbackAction. */ + @java.lang.Deprecated com.google.protobuf.ByteString getFallbackActionBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpTool.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpTool.java index 365927b091e5..742c1e0ebafa 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpTool.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpTool.java @@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1beta_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() { @@ -557,6 +569,135 @@ public com.google.cloud.ces.v1beta.ServiceDirectoryConfig getServiceDirectoryCon : 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.v1beta.McpToolProto + .internal_static_google_cloud_ces_v1beta_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 @@ -595,6 +736,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); } @@ -629,6 +772,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; @@ -667,6 +820,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; } @@ -704,6 +858,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; @@ -824,6 +982,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1beta_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() { @@ -886,6 +1066,7 @@ public Builder clear() { serviceDirectoryConfigBuilder_.dispose(); serviceDirectoryConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -959,6 +1140,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.McpTool result) { : serviceDirectoryConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customHeaders_ = internalGetCustomHeaders(); + result.customHeaders_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1004,6 +1189,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.McpTool other) { if (other.hasServiceDirectoryConfig()) { mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000100; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1084,6 +1271,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)) { @@ -2579,6 +2778,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.v1beta.McpTool) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolOrBuilder.java index 970ecec4be8f..6072d52153d1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolOrBuilder.java @@ -345,4 +345,92 @@ public interface McpToolOrBuilder * */ com.google.cloud.ces.v1beta.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-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolProto.java index c62ac8593052..910444198c09 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_McpTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_McpTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_McpTool_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_McpTool_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -58,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eld_behavior.proto\032\"google/cloud/ces/v1b" + "eta/auth.proto\032$google/cloud/ces/v1beta/" + "common.proto\032$google/cloud/ces/v1beta/sc" - + "hema.proto\"\256\003\n\007McpTool\022\021\n\004name\030\001 \001(\tB\003\340A" + + "hema.proto\"\266\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\022:\n\014input_sch" + "ema\030\003 \001(\0132\037.google.cloud.ces.v1beta.Sche" + "maB\003\340A\001\022;\n\routput_schema\030\004 \001(\0132\037.google." @@ -69,9 +73,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.ces.v1beta.TlsConfigB\003\340A\001\022V\n\030s" + "ervice_directory_config\030\010 \001(\0132/.google.c" + "loud.ces.v1beta.ServiceDirectoryConfigB\003" - + "\340A\001B\\\n\033com.google.cloud.ces.v1betaB\014McpT" - + "oolProtoP\001Z-cloud.google.com/go/ces/apiv" - + "1beta/cespb;cespbb\006proto3" + + "\340A\001\022P\n\016custom_headers\030\t \003(\01323.google.clo" + + "ud.ces.v1beta.McpTool.CustomHeadersEntry" + + "B\003\340A\001\0324\n\022CustomHeadersEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001B\\\n\033com.google.cloud." + + "ces.v1betaB\014McpToolProtoP\001Z-cloud.google" + + ".com/go/ces/apiv1beta/cespb;cespbb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -95,6 +103,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiAuthentication", "TlsConfig", "ServiceDirectoryConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1beta_McpTool_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1beta_McpTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_McpTool_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_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-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolset.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolset.java index 2b83b88f2c01..bd31ebb2ea30 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolset.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolset.java @@ -61,6 +61,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1beta_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() { @@ -328,6 +340,135 @@ public com.google.cloud.ces.v1beta.TlsConfigOrBuilder getTlsConfigOrBuilder() { : 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.v1beta.McpToolsetProto + .internal_static_google_cloud_ces_v1beta_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 @@ -354,6 +495,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); } @@ -376,6 +519,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; @@ -404,6 +557,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; } @@ -429,6 +583,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; @@ -549,6 +707,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_ces_v1beta_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() { @@ -597,6 +777,7 @@ public Builder clear() { tlsConfigBuilder_.dispose(); tlsConfigBuilder_ = null; } + internalGetMutableCustomHeaders().clear(); return this; } @@ -655,6 +836,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.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_; } @@ -684,6 +869,8 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.McpToolset other) { if (other.hasTlsConfig()) { mergeTlsConfig(other.getTlsConfig()); } + internalGetMutableCustomHeaders().mergeFrom(other.internalGetCustomHeaders()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -738,6 +925,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)) { @@ -1582,6 +1781,216 @@ public com.google.cloud.ces.v1beta.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.v1beta.McpToolset) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetOrBuilder.java index 630eb0ee614f..6cff3986d1bf 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetOrBuilder.java @@ -205,4 +205,92 @@ public interface McpToolsetOrBuilder * */ com.google.cloud.ces.v1beta.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-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetProto.java index 0078f7fb1ea9..1605a70287a6 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/McpToolsetProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_McpToolset_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_McpToolset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_McpToolset_CustomHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_McpToolset_CustomHeadersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -57,16 +61,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\022\027google.cloud.ces.v1beta\032\037google/api" + "/field_behavior.proto\032\"google/cloud/ces/" + "v1beta/auth.proto\032$google/cloud/ces/v1be" - + "ta/common.proto\"\213\002\n\nMcpToolset\022\033\n\016server" + + "ta/common.proto\"\226\003\n\nMcpToolset\022\033\n\016server" + "_address\030\001 \001(\tB\003\340A\002\022K\n\022api_authenticatio" + "n\030\002 \001(\0132*.google.cloud.ces.v1beta.ApiAut" + "henticationB\003\340A\001\022V\n\030service_directory_co" + "nfig\030\003 \001(\0132/.google.cloud.ces.v1beta.Ser" + "viceDirectoryConfigB\003\340A\001\022;\n\ntls_config\030\004" + " \001(\0132\".google.cloud.ces.v1beta.TlsConfig" - + "B\003\340A\001B_\n\033com.google.cloud.ces.v1betaB\017Mc" - + "pToolsetProtoP\001Z-cloud.google.com/go/ces" - + "/apiv1beta/cespb;cespbb\006proto3" + + "B\003\340A\001\022S\n\016custom_headers\030\005 \003(\01326.google.c" + + "loud.ces.v1beta.McpToolset.CustomHeaders" + + "EntryB\003\340A\001\0324\n\022CustomHeadersEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B_\n\033com.google.c" + + "loud.ces.v1betaB\017McpToolsetProtoP\001Z-clou" + + "d.google.com/go/ces/apiv1beta/cespb;cesp" + + "bb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -82,7 +90,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_McpToolset_descriptor, new java.lang.String[] { - "ServerAddress", "ApiAuthentication", "ServiceDirectoryConfig", "TlsConfig", + "ServerAddress", + "ApiAuthentication", + "ServiceDirectoryConfig", + "TlsConfig", + "CustomHeaders", + }); + internal_static_google_cloud_ces_v1beta_McpToolset_CustomHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1beta_McpToolset_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_McpToolset_CustomHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_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-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReport.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReport.java new file mode 100644 index 000000000000..f2d683aad576 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReport.java @@ -0,0 +1,4061 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v1beta/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
              + * The report describing any identified quality issues in the app.
              + * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport} + */ +@com.google.protobuf.Generated +public final class QualityReport extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.QualityReport) + QualityReportOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QualityReport"); + } + + // Use QualityReport.newBuilder() to construct. + private QualityReport(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QualityReport() { + issues_ = java.util.Collections.emptyList(); + evaluationRuns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + generalIssues_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.class, + com.google.cloud.ces.v1beta.QualityReport.Builder.class); + } + + public interface IssueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.QualityReport.Issue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * Optional. Description of the issue found.
              +     * 
              + * + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
              +     * Optional. Description of the issue found.
              +     * 
              + * + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
              +     * Optional. How many times this issue occurred.
              +     * 
              + * + * int32 occurrence_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The occurrenceCount. + */ + int getOccurrenceCount(); + + /** + * + * + *
              +     * Optional. Proposed solution to fix the issue by modifying instructions or
              +     * tools.
              +     * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposedSolution. + */ + java.lang.String getProposedSolution(); + + /** + * + * + *
              +     * Optional. Proposed solution to fix the issue by modifying instructions or
              +     * tools.
              +     * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposedSolution. + */ + com.google.protobuf.ByteString getProposedSolutionBytes(); + } + + /** + * + * + *
              +   * The issue identified.
              +   * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport.Issue} + */ + public static final class Issue extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.QualityReport.Issue) + IssueOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Issue"); + } + + // Use Issue.newBuilder() to construct. + private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Issue() { + description_ = ""; + proposedSolution_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_Issue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.Issue.class, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
              +     * Optional. Description of the issue found.
              +     * 
              + * + * string description = 1 [(.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 issue found.
              +     * 
              + * + * string description = 1 [(.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 OCCURRENCE_COUNT_FIELD_NUMBER = 2; + private int occurrenceCount_ = 0; + + /** + * + * + *
              +     * Optional. How many times this issue occurred.
              +     * 
              + * + * int32 occurrence_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The occurrenceCount. + */ + @java.lang.Override + public int getOccurrenceCount() { + return occurrenceCount_; + } + + public static final int PROPOSED_SOLUTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object proposedSolution_ = ""; + + /** + * + * + *
              +     * Optional. Proposed solution to fix the issue by modifying instructions or
              +     * tools.
              +     * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposedSolution. + */ + @java.lang.Override + public java.lang.String getProposedSolution() { + java.lang.Object ref = proposedSolution_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposedSolution_ = s; + return s; + } + } + + /** + * + * + *
              +     * Optional. Proposed solution to fix the issue by modifying instructions or
              +     * tools.
              +     * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposedSolution. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProposedSolutionBytes() { + java.lang.Object ref = proposedSolution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proposedSolution_ = 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(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + if (occurrenceCount_ != 0) { + output.writeInt32(2, occurrenceCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(proposedSolution_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, proposedSolution_); + } + 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(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + if (occurrenceCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, occurrenceCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(proposedSolution_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, proposedSolution_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.v1beta.QualityReport.Issue)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.QualityReport.Issue other = + (com.google.cloud.ces.v1beta.QualityReport.Issue) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (getOccurrenceCount() != other.getOccurrenceCount()) return false; + if (!getProposedSolution().equals(other.getProposedSolution())) return false; + if (!getUnknownFields().equals(other.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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + OCCURRENCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getOccurrenceCount(); + hash = (37 * hash) + PROPOSED_SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getProposedSolution().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + 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.v1beta.QualityReport.Issue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + com.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.v1beta.QualityReport.Issue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + java.io.InputStream 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.v1beta.QualityReport.Issue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseDelimitedFrom( + java.io.InputStream 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.v1beta.QualityReport.Issue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1beta.QualityReport.Issue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 issue identified.
              +     * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport.Issue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.QualityReport.Issue) + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_Issue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_Issue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.Issue.class, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.QualityReport.Issue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + occurrenceCount_ = 0; + proposedSolution_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_Issue_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.Issue getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.Issue build() { + com.google.cloud.ces.v1beta.QualityReport.Issue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.Issue buildPartial() { + com.google.cloud.ces.v1beta.QualityReport.Issue result = + new com.google.cloud.ces.v1beta.QualityReport.Issue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.QualityReport.Issue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.occurrenceCount_ = occurrenceCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proposedSolution_ = proposedSolution_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.QualityReport.Issue) { + return mergeFrom((com.google.cloud.ces.v1beta.QualityReport.Issue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.QualityReport.Issue other) { + if (other == com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance()) + return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getOccurrenceCount() != 0) { + setOccurrenceCount(other.getOccurrenceCount()); + } + if (!other.getProposedSolution().isEmpty()) { + proposedSolution_ = other.proposedSolution_; + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + occurrenceCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + proposedSolution_ = 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 description_ = ""; + + /** + * + * + *
              +       * Optional. Description of the issue found.
              +       * 
              + * + * string description = 1 [(.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 issue found.
              +       * 
              + * + * string description = 1 [(.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 issue found.
              +       * 
              + * + * string description = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Description of the issue found.
              +       * 
              + * + * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Description of the issue found.
              +       * 
              + * + * string description = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + private int occurrenceCount_; + + /** + * + * + *
              +       * Optional. How many times this issue occurred.
              +       * 
              + * + * int32 occurrence_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The occurrenceCount. + */ + @java.lang.Override + public int getOccurrenceCount() { + return occurrenceCount_; + } + + /** + * + * + *
              +       * Optional. How many times this issue occurred.
              +       * 
              + * + * int32 occurrence_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The occurrenceCount to set. + * @return This builder for chaining. + */ + public Builder setOccurrenceCount(int value) { + + occurrenceCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. How many times this issue occurred.
              +       * 
              + * + * int32 occurrence_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOccurrenceCount() { + bitField0_ = (bitField0_ & ~0x00000002); + occurrenceCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object proposedSolution_ = ""; + + /** + * + * + *
              +       * Optional. Proposed solution to fix the issue by modifying instructions or
              +       * tools.
              +       * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposedSolution. + */ + public java.lang.String getProposedSolution() { + java.lang.Object ref = proposedSolution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposedSolution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Optional. Proposed solution to fix the issue by modifying instructions or
              +       * tools.
              +       * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposedSolution. + */ + public com.google.protobuf.ByteString getProposedSolutionBytes() { + java.lang.Object ref = proposedSolution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proposedSolution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Optional. Proposed solution to fix the issue by modifying instructions or
              +       * tools.
              +       * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proposedSolution to set. + * @return This builder for chaining. + */ + public Builder setProposedSolution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + proposedSolution_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Proposed solution to fix the issue by modifying instructions or
              +       * tools.
              +       * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProposedSolution() { + proposedSolution_ = getDefaultInstance().getProposedSolution(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Proposed solution to fix the issue by modifying instructions or
              +       * tools.
              +       * 
              + * + * string proposed_solution = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for proposedSolution to set. + * @return This builder for chaining. + */ + public Builder setProposedSolutionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proposedSolution_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.QualityReport.Issue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.QualityReport.Issue) + private static final com.google.cloud.ces.v1beta.QualityReport.Issue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.QualityReport.Issue(); + } + + public static com.google.cloud.ces.v1beta.QualityReport.Issue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Issue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1beta.QualityReport.Issue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentIssuesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.QualityReport.AgentIssues) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * Optional. The name of the agent to which the issues are related.
              +     * Format:
              +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +     * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + java.lang.String getAgent(); + + /** + * + * + *
              +     * Optional. The name of the agent to which the issues are related.
              +     * Format:
              +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +     * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + com.google.protobuf.ByteString getAgentBytes(); + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIssuesList(); + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.Issue getIssues(int index); + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIssuesCount(); + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIssuesOrBuilderList(); + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getIssuesOrBuilder(int index); + } + + /** + * + * + *
              +   * Issues identified for a single agent.
              +   * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport.AgentIssues} + */ + public static final class AgentIssues extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.QualityReport.AgentIssues) + AgentIssuesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentIssues"); + } + + // Use AgentIssues.newBuilder() to construct. + private AgentIssues(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentIssues() { + agent_ = ""; + issues_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.class, + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder.class); + } + + public static final int AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; + + /** + * + * + *
              +     * Optional. The name of the agent to which the issues are related.
              +     * Format:
              +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +     * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + @java.lang.Override + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } + } + + /** + * + * + *
              +     * Optional. The name of the agent to which the issues are related.
              +     * Format:
              +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +     * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ISSUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List issues_; + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getIssuesList() { + return issues_; + } + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIssuesOrBuilderList() { + return issues_; + } + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIssuesCount() { + return issues_.size(); + } + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.Issue getIssues(int index) { + return issues_.get(index); + } + + /** + * + * + *
              +     * Optional. List of issues found for this agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getIssuesOrBuilder(int index) { + return issues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agent_); + } + for (int i = 0; i < issues_.size(); i++) { + output.writeMessage(2, issues_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agent_); + } + for (int i = 0; i < issues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, issues_.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.ces.v1beta.QualityReport.AgentIssues)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.QualityReport.AgentIssues other = + (com.google.cloud.ces.v1beta.QualityReport.AgentIssues) obj; + + if (!getAgent().equals(other.getAgent())) return false; + if (!getIssuesList().equals(other.getIssuesList())) return false; + if (!getUnknownFields().equals(other.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) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + if (getIssuesCount() > 0) { + hash = (37 * hash) + ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getIssuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + 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.v1beta.QualityReport.AgentIssues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + com.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.v1beta.QualityReport.AgentIssues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + java.io.InputStream 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.v1beta.QualityReport.AgentIssues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseDelimitedFrom( + java.io.InputStream 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.v1beta.QualityReport.AgentIssues parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1beta.QualityReport.AgentIssues prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +     * Issues identified for a single agent.
              +     * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport.AgentIssues} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.QualityReport.AgentIssues) + com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.class, + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.QualityReport.AgentIssues.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agent_ = ""; + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + } else { + issues_ = null; + issuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_AgentIssues_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.QualityReport.AgentIssues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues build() { + com.google.cloud.ces.v1beta.QualityReport.AgentIssues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues buildPartial() { + com.google.cloud.ces.v1beta.QualityReport.AgentIssues result = + new com.google.cloud.ces.v1beta.QualityReport.AgentIssues(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.QualityReport.AgentIssues result) { + if (issuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + issues_ = java.util.Collections.unmodifiableList(issues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.issues_ = issues_; + } else { + result.issues_ = issuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.QualityReport.AgentIssues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.QualityReport.AgentIssues) { + return mergeFrom((com.google.cloud.ces.v1beta.QualityReport.AgentIssues) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.QualityReport.AgentIssues other) { + if (other == com.google.cloud.ces.v1beta.QualityReport.AgentIssues.getDefaultInstance()) + return this; + if (!other.getAgent().isEmpty()) { + agent_ = other.agent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (issuesBuilder_ == null) { + if (!other.issues_.isEmpty()) { + if (issues_.isEmpty()) { + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIssuesIsMutable(); + issues_.addAll(other.issues_); + } + onChanged(); + } + } else { + if (!other.issues_.isEmpty()) { + if (issuesBuilder_.isEmpty()) { + issuesBuilder_.dispose(); + issuesBuilder_ = null; + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000002); + issuesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIssuesFieldBuilder() + : null; + } else { + issuesBuilder_.addAllMessages(other.issues_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + agent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1beta.QualityReport.Issue m = + input.readMessage( + com.google.cloud.ces.v1beta.QualityReport.Issue.parser(), + extensionRegistry); + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(m); + } else { + issuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object agent_ = ""; + + /** + * + * + *
              +       * Optional. The name of the agent to which the issues are related.
              +       * Format:
              +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +       * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agent. + */ + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Optional. The name of the agent to which the issues are related.
              +       * Format:
              +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +       * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agent. + */ + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Optional. The name of the agent to which the issues are related.
              +       * Format:
              +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +       * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agent to set. + * @return This builder for chaining. + */ + public Builder setAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The name of the agent to which the issues are related.
              +       * Format:
              +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +       * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgent() { + agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The name of the agent to which the issues are related.
              +       * Format:
              +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
              +       * 
              + * + * string agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agent to set. + * @return This builder for chaining. + */ + public Builder setAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List issues_ = + java.util.Collections.emptyList(); + + private void ensureIssuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + issues_ = + new java.util.ArrayList(issues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder> + issuesBuilder_; + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getIssuesList() { + if (issuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(issues_); + } else { + return issuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIssuesCount() { + if (issuesBuilder_ == null) { + return issues_.size(); + } else { + return issuesBuilder_.getCount(); + } + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue getIssues(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIssues(int index, com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.set(index, value); + onChanged(); + } else { + issuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.set(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues(com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(value); + onChanged(); + } else { + issuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues(int index, com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(index, value); + onChanged(); + } else { + issuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues( + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIssues( + java.lang.Iterable values) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issues_); + onChanged(); + } else { + issuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIssues() { + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + issuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIssues(int index) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.remove(index); + onChanged(); + } else { + issuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder getIssuesBuilder(int index) { + return internalGetIssuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getIssuesOrBuilder( + int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIssuesOrBuilderList() { + if (issuesBuilder_ != null) { + return issuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(issues_); + } + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder addIssuesBuilder() { + return internalGetIssuesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance()); + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder addIssuesBuilder(int index) { + return internalGetIssuesFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance()); + } + + /** + * + * + *
              +       * Optional. List of issues found for this agent.
              +       * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue issues = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIssuesBuilderList() { + return internalGetIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder> + internalGetIssuesFieldBuilder() { + if (issuesBuilder_ == null) { + issuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder>( + issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + issues_ = null; + } + return issuesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.QualityReport.AgentIssues) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.QualityReport.AgentIssues) + private static final com.google.cloud.ces.v1beta.QualityReport.AgentIssues DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.QualityReport.AgentIssues(); + } + + public static com.google.cloud.ces.v1beta.QualityReport.AgentIssues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentIssues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1beta.QualityReport.AgentIssues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ISSUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List issues_; + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getIssuesList() { + return issues_; + } + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIssuesOrBuilderList() { + return issues_; + } + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIssuesCount() { + return issues_.size(); + } + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues getIssues(int index) { + return issues_.get(index); + } + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder getIssuesOrBuilder( + int index) { + return issues_.get(index); + } + + public static final int EVALUATION_RUNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList evaluationRuns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the evaluationRuns. + */ + public com.google.protobuf.ProtocolStringList getEvaluationRunsList() { + return evaluationRuns_; + } + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of evaluationRuns. + */ + public int getEvaluationRunsCount() { + return evaluationRuns_.size(); + } + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The evaluationRuns at the given index. + */ + public java.lang.String getEvaluationRuns(int index) { + return evaluationRuns_.get(index); + } + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the evaluationRuns at the given index. + */ + public com.google.protobuf.ByteString getEvaluationRunsBytes(int index) { + return evaluationRuns_.getByteString(index); + } + + public static final int GENERAL_ISSUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List generalIssues_; + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getGeneralIssuesList() { + return generalIssues_; + } + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGeneralIssuesOrBuilderList() { + return generalIssues_; + } + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGeneralIssuesCount() { + return generalIssues_.size(); + } + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.Issue getGeneralIssues(int index) { + return generalIssues_.get(index); + } + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getGeneralIssuesOrBuilder( + int index) { + return generalIssues_.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 < issues_.size(); i++) { + output.writeMessage(1, issues_.get(i)); + } + for (int i = 0; i < evaluationRuns_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationRuns_.getRaw(i)); + } + for (int i = 0; i < generalIssues_.size(); i++) { + output.writeMessage(3, generalIssues_.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 < issues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, issues_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < evaluationRuns_.size(); i++) { + dataSize += computeStringSizeNoTag(evaluationRuns_.getRaw(i)); + } + size += dataSize; + size += 1 * getEvaluationRunsList().size(); + } + for (int i = 0; i < generalIssues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, generalIssues_.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.ces.v1beta.QualityReport)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.QualityReport other = + (com.google.cloud.ces.v1beta.QualityReport) obj; + + if (!getIssuesList().equals(other.getIssuesList())) return false; + if (!getEvaluationRunsList().equals(other.getEvaluationRunsList())) return false; + if (!getGeneralIssuesList().equals(other.getGeneralIssuesList())) return false; + if (!getUnknownFields().equals(other.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 (getIssuesCount() > 0) { + hash = (37 * hash) + ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getIssuesList().hashCode(); + } + if (getEvaluationRunsCount() > 0) { + hash = (37 * hash) + EVALUATION_RUNS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsList().hashCode(); + } + if (getGeneralIssuesCount() > 0) { + hash = (37 * hash) + GENERAL_ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getGeneralIssuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom( + 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.v1beta.QualityReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom( + com.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.v1beta.QualityReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom( + java.io.InputStream 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.v1beta.QualityReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseDelimitedFrom( + java.io.InputStream 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.v1beta.QualityReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.QualityReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, 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.v1beta.QualityReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 report describing any identified quality issues in the app.
              +   * 
              + * + * Protobuf type {@code google.cloud.ces.v1beta.QualityReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.QualityReport) + com.google.cloud.ces.v1beta.QualityReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.QualityReport.class, + com.google.cloud.ces.v1beta.QualityReport.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.QualityReport.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + } else { + issues_ = null; + issuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + evaluationRuns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (generalIssuesBuilder_ == null) { + generalIssues_ = java.util.Collections.emptyList(); + } else { + generalIssues_ = null; + generalIssuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_QualityReport_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport build() { + com.google.cloud.ces.v1beta.QualityReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.QualityReport buildPartial() { + com.google.cloud.ces.v1beta.QualityReport result = + new com.google.cloud.ces.v1beta.QualityReport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.QualityReport result) { + if (issuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + issues_ = java.util.Collections.unmodifiableList(issues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.issues_ = issues_; + } else { + result.issues_ = issuesBuilder_.build(); + } + if (generalIssuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + generalIssues_ = java.util.Collections.unmodifiableList(generalIssues_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.generalIssues_ = generalIssues_; + } else { + result.generalIssues_ = generalIssuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.QualityReport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + evaluationRuns_.makeImmutable(); + result.evaluationRuns_ = evaluationRuns_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.QualityReport) { + return mergeFrom((com.google.cloud.ces.v1beta.QualityReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.QualityReport other) { + if (other == com.google.cloud.ces.v1beta.QualityReport.getDefaultInstance()) return this; + if (issuesBuilder_ == null) { + if (!other.issues_.isEmpty()) { + if (issues_.isEmpty()) { + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIssuesIsMutable(); + issues_.addAll(other.issues_); + } + onChanged(); + } + } else { + if (!other.issues_.isEmpty()) { + if (issuesBuilder_.isEmpty()) { + issuesBuilder_.dispose(); + issuesBuilder_ = null; + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + issuesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIssuesFieldBuilder() + : null; + } else { + issuesBuilder_.addAllMessages(other.issues_); + } + } + } + if (!other.evaluationRuns_.isEmpty()) { + if (evaluationRuns_.isEmpty()) { + evaluationRuns_ = other.evaluationRuns_; + bitField0_ |= 0x00000002; + } else { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.addAll(other.evaluationRuns_); + } + onChanged(); + } + if (generalIssuesBuilder_ == null) { + if (!other.generalIssues_.isEmpty()) { + if (generalIssues_.isEmpty()) { + generalIssues_ = other.generalIssues_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureGeneralIssuesIsMutable(); + generalIssues_.addAll(other.generalIssues_); + } + onChanged(); + } + } else { + if (!other.generalIssues_.isEmpty()) { + if (generalIssuesBuilder_.isEmpty()) { + generalIssuesBuilder_.dispose(); + generalIssuesBuilder_ = null; + generalIssues_ = other.generalIssues_; + bitField0_ = (bitField0_ & ~0x00000004); + generalIssuesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGeneralIssuesFieldBuilder() + : null; + } else { + generalIssuesBuilder_.addAllMessages(other.generalIssues_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.ces.v1beta.QualityReport.AgentIssues m = + input.readMessage( + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.parser(), + extensionRegistry); + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(m); + } else { + issuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1beta.QualityReport.Issue m = + input.readMessage( + com.google.cloud.ces.v1beta.QualityReport.Issue.parser(), + extensionRegistry); + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + generalIssues_.add(m); + } else { + generalIssuesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List issues_ = + java.util.Collections.emptyList(); + + private void ensureIssuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + issues_ = + new java.util.ArrayList(issues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.AgentIssues, + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder, + com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder> + issuesBuilder_; + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getIssuesList() { + if (issuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(issues_); + } else { + return issuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIssuesCount() { + if (issuesBuilder_ == null) { + return issues_.size(); + } else { + return issuesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues getIssues(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.AgentIssues value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.set(index, value); + onChanged(); + } else { + issuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.set(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues(com.google.cloud.ces.v1beta.QualityReport.AgentIssues value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(value); + onChanged(); + } else { + issuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.AgentIssues value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(index, value); + onChanged(); + } else { + issuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues( + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIssues( + java.lang.Iterable + values) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issues_); + onChanged(); + } else { + issuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIssues() { + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + issuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIssues(int index) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.remove(index); + onChanged(); + } else { + issuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder getIssuesBuilder( + int index) { + return internalGetIssuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder getIssuesOrBuilder( + int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIssuesOrBuilderList() { + if (issuesBuilder_ != null) { + return issuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(issues_); + } + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder addIssuesBuilder() { + return internalGetIssuesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.QualityReport.AgentIssues.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder addIssuesBuilder( + int index) { + return internalGetIssuesFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.QualityReport.AgentIssues.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. The issues grouped by agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIssuesBuilderList() { + return internalGetIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.AgentIssues, + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder, + com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder> + internalGetIssuesFieldBuilder() { + if (issuesBuilder_ == null) { + issuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.AgentIssues, + com.google.cloud.ces.v1beta.QualityReport.AgentIssues.Builder, + com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder>( + issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + issues_ = null; + } + return issuesBuilder_; + } + + private com.google.protobuf.LazyStringArrayList evaluationRuns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEvaluationRunsIsMutable() { + if (!evaluationRuns_.isModifiable()) { + evaluationRuns_ = new com.google.protobuf.LazyStringArrayList(evaluationRuns_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the evaluationRuns. + */ + public com.google.protobuf.ProtocolStringList getEvaluationRunsList() { + evaluationRuns_.makeImmutable(); + return evaluationRuns_; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of evaluationRuns. + */ + public int getEvaluationRunsCount() { + return evaluationRuns_.size(); + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The evaluationRuns at the given index. + */ + public java.lang.String getEvaluationRuns(int index) { + return evaluationRuns_.get(index); + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the evaluationRuns at the given index. + */ + public com.google.protobuf.ByteString getEvaluationRunsBytes(int index) { + return evaluationRuns_.getByteString(index); + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The evaluationRuns to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRuns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The evaluationRuns to add. + * @return This builder for chaining. + */ + public Builder addEvaluationRuns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The evaluationRuns to add. + * @return This builder for chaining. + */ + public Builder addAllEvaluationRuns(java.lang.Iterable values) { + ensureEvaluationRunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationRuns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRuns() { + evaluationRuns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A list of evaluation runs used to generate the quality report.
              +     * Format:
              +     * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +     * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the evaluationRuns to add. + * @return This builder for chaining. + */ + public Builder addEvaluationRunsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List generalIssues_ = + java.util.Collections.emptyList(); + + private void ensureGeneralIssuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + generalIssues_ = + new java.util.ArrayList( + generalIssues_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder> + generalIssuesBuilder_; + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getGeneralIssuesList() { + if (generalIssuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(generalIssues_); + } else { + return generalIssuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGeneralIssuesCount() { + if (generalIssuesBuilder_ == null) { + return generalIssues_.size(); + } else { + return generalIssuesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue getGeneralIssues(int index) { + if (generalIssuesBuilder_ == null) { + return generalIssues_.get(index); + } else { + return generalIssuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGeneralIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (generalIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneralIssuesIsMutable(); + generalIssues_.set(index, value); + onChanged(); + } else { + generalIssuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGeneralIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + generalIssues_.set(index, builderForValue.build()); + onChanged(); + } else { + generalIssuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGeneralIssues(com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (generalIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneralIssuesIsMutable(); + generalIssues_.add(value); + onChanged(); + } else { + generalIssuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGeneralIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue value) { + if (generalIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneralIssuesIsMutable(); + generalIssues_.add(index, value); + onChanged(); + } else { + generalIssuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGeneralIssues( + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + generalIssues_.add(builderForValue.build()); + onChanged(); + } else { + generalIssuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGeneralIssues( + int index, com.google.cloud.ces.v1beta.QualityReport.Issue.Builder builderForValue) { + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + generalIssues_.add(index, builderForValue.build()); + onChanged(); + } else { + generalIssuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGeneralIssues( + java.lang.Iterable values) { + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generalIssues_); + onChanged(); + } else { + generalIssuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGeneralIssues() { + if (generalIssuesBuilder_ == null) { + generalIssues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + generalIssuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGeneralIssues(int index) { + if (generalIssuesBuilder_ == null) { + ensureGeneralIssuesIsMutable(); + generalIssues_.remove(index); + onChanged(); + } else { + generalIssuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder getGeneralIssuesBuilder( + int index) { + return internalGetGeneralIssuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getGeneralIssuesOrBuilder( + int index) { + if (generalIssuesBuilder_ == null) { + return generalIssues_.get(index); + } else { + return generalIssuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGeneralIssuesOrBuilderList() { + if (generalIssuesBuilder_ != null) { + return generalIssuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(generalIssues_); + } + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder addGeneralIssuesBuilder() { + return internalGetGeneralIssuesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.QualityReport.Issue.Builder addGeneralIssuesBuilder( + int index) { + return internalGetGeneralIssuesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.QualityReport.Issue.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. General issues not specific to any agent.
              +     * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGeneralIssuesBuilderList() { + return internalGetGeneralIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder> + internalGetGeneralIssuesFieldBuilder() { + if (generalIssuesBuilder_ == null) { + generalIssuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.QualityReport.Issue, + com.google.cloud.ces.v1beta.QualityReport.Issue.Builder, + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder>( + generalIssues_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + generalIssues_ = null; + } + return generalIssuesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.QualityReport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.QualityReport) + private static final com.google.cloud.ces.v1beta.QualityReport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.QualityReport(); + } + + public static com.google.cloud.ces.v1beta.QualityReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.v1beta.QualityReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReportOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReportOrBuilder.java new file mode 100644 index 000000000000..25c5a02bb9e9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/QualityReportOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface QualityReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.QualityReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIssuesList(); + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.AgentIssues getIssues(int index); + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIssuesCount(); + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIssuesOrBuilderList(); + + /** + * + * + *
              +   * Optional. The issues grouped by agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.AgentIssues issues = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.AgentIssuesOrBuilder getIssuesOrBuilder(int index); + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the evaluationRuns. + */ + java.util.List getEvaluationRunsList(); + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of evaluationRuns. + */ + int getEvaluationRunsCount(); + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The evaluationRuns at the given index. + */ + java.lang.String getEvaluationRuns(int index); + + /** + * + * + *
              +   * Optional. A list of evaluation runs used to generate the quality report.
              +   * Format:
              +   * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`.
              +   * 
              + * + * repeated string evaluation_runs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the evaluationRuns at the given index. + */ + com.google.protobuf.ByteString getEvaluationRunsBytes(int index); + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGeneralIssuesList(); + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.Issue getGeneralIssues(int index); + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGeneralIssuesCount(); + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGeneralIssuesOrBuilderList(); + + /** + * + * + *
              +   * Optional. General issues not specific to any agent.
              +   * 
              + * + * + * repeated .google.cloud.ces.v1beta.QualityReport.Issue general_issues = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.QualityReport.IssueOrBuilder getGeneralIssuesOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationOperationMetadata.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationOperationMetadata.java index d0c230c38a22..cb4199665092 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationOperationMetadata.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/RunEvaluationOperationMetadata.java @@ -25,7 +25,7 @@ * *
                * Operation metadata for
              - * [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation]
              + * [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation].
                * 
              * * Protobuf type {@code google.cloud.ces.v1beta.RunEvaluationOperationMetadata} @@ -627,7 +627,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
                  * Operation metadata for
              -   * [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation]
              +   * [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation].
                  * 
              * * Protobuf type {@code google.cloud.ces.v1beta.RunEvaluationOperationMetadata} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfig.java index a8a3e83bfa95..3949ffcd52c5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfig.java @@ -2233,6 +2233,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.v1beta.SessionService.StreamRunSession]
              +   * or [BidiRunSession][google.cloud.ces.v1beta.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 @@ -2274,6 +2298,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getRemoteDialogflowQueryParameters()); } + if (enableTextStreaming_ != false) { + output.writeBool(18, enableTextStreaming_); + } getUnknownFields().writeTo(output); } @@ -2313,6 +2340,9 @@ public int getSerializedSize() { 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; @@ -2349,6 +2379,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRemoteDialogflowQueryParameters().equals(other.getRemoteDialogflowQueryParameters())) return false; } + if (getEnableTextStreaming() != other.getEnableTextStreaming()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2386,6 +2417,8 @@ public int hashCode() { 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; @@ -2565,6 +2598,7 @@ public Builder clear() { remoteDialogflowQueryParametersBuilder_.dispose(); remoteDialogflowQueryParametersBuilder_ = null; } + enableTextStreaming_ = false; return this; } @@ -2649,6 +2683,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.SessionConfig result) { : remoteDialogflowQueryParametersBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableTextStreaming_ = enableTextStreaming_; + } result.bitField0_ |= to_bitField0_; } @@ -2723,6 +2760,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.SessionConfig other) { if (other.hasRemoteDialogflowQueryParameters()) { mergeRemoteDialogflowQueryParameters(other.getRemoteDialogflowQueryParameters()); } + if (other.getEnableTextStreaming() != false) { + setEnableTextStreaming(other.getEnableTextStreaming()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2814,6 +2854,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 122 + case 144: + { + enableTextStreaming_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4586,6 +4632,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.v1beta.SessionService.StreamRunSession]
              +     * or [BidiRunSession][google.cloud.ces.v1beta.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.v1beta.SessionService.StreamRunSession]
              +     * or [BidiRunSession][google.cloud.ces.v1beta.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.v1beta.SessionService.StreamRunSession]
              +     * or [BidiRunSession][google.cloud.ces.v1beta.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.v1beta.SessionConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfigOrBuilder.java index d30e4e79f6fa..52a885542c56 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionConfigOrBuilder.java @@ -405,4 +405,22 @@ public interface SessionConfigOrBuilder */ com.google.cloud.ces.v1beta.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.v1beta.SessionService.StreamRunSession]
              +   * or [BidiRunSession][google.cloud.ces.v1beta.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-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java index aee57a1cb5d1..b1b74f36d304 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java @@ -149,7 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021OutputAudioConfig\022C\n" + "\016audio_encoding\030\001" + " \001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" - + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\335\006\n\r" + + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\201\007\n\r" + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022J\n" @@ -165,10 +165,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022w\n" + "\"remote_dialogflow_query_parameters\030\017 \001(\0132F.google.cloud.ces.v1be" - + "ta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\032\272\002\n" + + "ta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\272\002\n" + "\037RemoteDialogflowQueryParameters\022x\n" - + "\017webhook_headers\030\001 \003(\0132Z.google.cloud.ces.v1beta.SessionConfig.Remot" - + "eDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132Z.google." + + "cloud.ces.v1beta.SessionConfig.RemoteDia" + + "logflowQueryParameters.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" @@ -178,14 +180,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tToolCalls\022:\n\n" + "tool_calls\030\001 \003(\0132!.google.cloud.ces.v1beta.ToolCallB\003\340A\001\"S\n\r" + "ToolResponses\022B\n" - + "\016tool_responses\030\001" - + " \003(\0132%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + + "\016tool_responses\030\001 \003(\013" + + "2%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + "\tCitations\022C\n" - + "\014cited_chunks\030\001" - + " \003(\0132-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + + "\014cited_chunks\030\001 \003(\013" + + "2-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + "CitedChunk\022\013\n" - + "\003uri\030\001 \001(\t\022\r" - + "\n" + + "\003uri\030\001 \001(\t\022\r\n" + "\005title\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\"\033\n" + "\005Event\022\022\n" @@ -194,8 +195,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001 \001(\tB\003\340A\001H\000\022\023\n" + "\004dtmf\030\006 \001(\tB\003\340A\001H\000\022\024\n" + "\005audio\030\002 \001(\014B\003\340A\001H\000\022E\n" - + "\016tool_responses\030\003 \001(" - + "\0132&.google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + + "\016tool_responses\030\003 \001(\0132&." + + "google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + "\005image\030\004" + " \001(\0132\036.google.cloud.ces.v1beta.ImageB\003\340A\001H\000\0222\n" + "\004blob\030\007 \001(\0132\035.google.cloud.ces.v1beta.BlobB\003\340A\001H\000\0221\n" @@ -215,8 +216,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\022S\n" - + "\017diagnostic_info\030\007" - + " \001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + + "\017diagnostic_info\030\007 " + + "\001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + "\016DiagnosticInfo\0222\n" + "\010messages\030\001 \003(\0132 .google.cloud.ces.v1beta.Message\0220\n" + "\troot_span\030\003 \001(\0132\035.google.cloud.ces.v1beta.SpanB\r\n" @@ -229,8 +230,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\010\n" + "\006GoAway\"\214\001\n" + "\021RunSessionRequest\022;\n" - + "\006config\030\001 \001(\0132&" - + ".google.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + + "\006config\030\001 \001(\0132&.goo" + + "gle.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + "\006inputs\030\003 \003(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\002\"M\n" + "\022RunSessionResponse\0227\n" + "\007outputs\030\001 \003(\0132&.google.cloud.ces.v1beta.SessionOutput\"\257\001\n" @@ -247,8 +248,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.RecognitionResultB\003\340A\001H\000\022O\n" + "\023interruption_signal\030\003" + " \001(\0132+.google.cloud.ces.v1beta.InterruptionSignalB\003\340A\001H\000\022?\n" - + "\013end_session\030\005 \001(" - + "\0132#.google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + + "\013end_session\030\005 \001(\0132#." + + "google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + "\007go_away\030\006" + " \001(\0132\037.google.cloud.ces.v1beta.GoAwayB\003\340A\001H\000B\016\n" + "\014message_type*R\n\r" @@ -256,21 +257,25 @@ 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\273\003\n" + + "\004ALAW\020\0032\212\005\n" + "\016SessionService\022\276\001\n\n" - + "RunSession\022*.google.cloud.ces.v1beta.RunSessionRequest" - + "\032+.google.cloud.ces.v1beta.RunSessionRes" - + "ponse\"W\202\323\344\223\002Q\"L/v1beta/{config.session=p" - + "rojects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022|\n" - + "\016BidiRunSession\0221.google.cloud.ces.v1beta.BidiSessionClientMess" - + "age\0321.google.cloud.ces.v1beta.BidiSessio" - + "nServerMessage\"\000(\0010\001\032j\312A\022ces.googleapis." - + "com\322ARhttps://www.googleapis.com/auth/ce" - + "s,https://www.googleapis.com/auth/cloud-platformB\311\001\n" - + "\033com.google.cloud.ces.v1beta" - + "B\023SessionServiceProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{project" - + "}/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.g" + + "oogle.cloud.ces.v1beta.RunSessionRespons" + + "e\"W\202\323\344\223\002Q\"L/v1beta/{config.session=proje" + + "cts/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" + + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.go" + + "ogle.cloud.ces.v1beta.RunSessionResponse" + + "\"]\202\323\344\223\002W\"R/v1beta/{config.session=projec" + + "ts/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022|\n" + + "\016BidiRunSession\0221.google.cloud.ces.v1beta.BidiSessionClientM" + + "essage\0321.google.cloud.ces.v1beta.BidiSes" + + "sionServerMessage\"\000(\0010\001\032j\312A\022ces.googleap" + + "is.com\322ARhttps://www.googleapis.com/auth" + + "/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" + + "\033com.google.cloud.ces.v1b" + + "etaB\023SessionServiceProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{proj" + + "ect}/locations/{location}/apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -316,6 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", "UseToolFakes", "RemoteDialogflowQueryParameters", + "EnableTextStreaming", }); internal_static_google_cloud_ces_v1beta_SessionConfig_RemoteDialogflowQueryParameters_descriptor = internal_static_google_cloud_ces_v1beta_SessionConfig_descriptor.getNestedType(0); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceProto.java index 51bce0b3b6a9..b3d37988910a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceProto.java @@ -62,25 +62,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "api/annotations.proto\032\027google/api/client" + ".proto\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\032\037google/proto" - + "buf/timestamp.proto\"\245\001\n\030GenerateChatToke" + + "buf/timestamp.proto\"\310\001\n\030GenerateChatToke" + "nRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.goog" + "leapis.com/Session\0229\n\ndeployment\030\002 \001(\tB%" + "\340A\002\372A\037\n\035ces.googleapis.com/Deployment\022\034\n" - + "\017recaptcha_token\030\003 \001(\tB\003\340A\001\"`\n\031GenerateC" - + "hatTokenResponse\022\022\n\nchat_token\030\001 \001(\t\022/\n\013" - + "expire_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp2\316\002\n\rWidgetService\022\320\001\n\021GenerateChat" - + "Token\0221.google.cloud.ces.v1beta.Generate" - + "ChatTokenRequest\0322.google.cloud.ces.v1be" - + "ta.GenerateChatTokenResponse\"T\202\323\344\223\002N\"I/v" - + "1beta/{name=projects/*/locations/*/apps/" - + "*/sessions/*}:generateChatToken:\001*\032j\312A\022c" - + "es.googleapis.com\322ARhttps://www.googleap" - + "is.com/auth/ces,https://www.googleapis.c" - + "om/auth/cloud-platformBb\n\033com.google.clo" - + "ud.ces.v1betaB\022WidgetServiceProtoP\001Z-clo" - + "ud.google.com/go/ces/apiv1beta/cespb;ces" - + "pbb\006proto3" + + "\017recaptcha_token\030\003 \001(\tB\003\340A\001\022!\n\024live_hand" + + "off_enabled\030\004 \001(\010B\003\340A\001\"`\n\031GenerateChatTo" + + "kenResponse\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expir" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "2\316\002\n\rWidgetService\022\320\001\n\021GenerateChatToken" + + "\0221.google.cloud.ces.v1beta.GenerateChatT" + + "okenRequest\0322.google.cloud.ces.v1beta.Ge" + + "nerateChatTokenResponse\"T\202\323\344\223\002N\"I/v1beta" + + "/{name=projects/*/locations/*/apps/*/ses" + + "sions/*}:generateChatToken:\001*\032j\312A\022ces.go" + + "ogleapis.com\322ARhttps://www.googleapis.co" + + "m/auth/ces,https://www.googleapis.com/au" + + "th/cloud-platformBb\n\033com.google.cloud.ce" + + "s.v1betaB\022WidgetServiceProtoP\001Z-cloud.go" + + "ogle.com/go/ces/apiv1beta/cespb;cespbb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,7 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_GenerateChatTokenRequest_descriptor, new java.lang.String[] { - "Name", "Deployment", "RecaptchaToken", + "Name", "Deployment", "RecaptchaToken", "LiveHandoffEnabled", }); internal_static_google_cloud_ces_v1beta_GenerateChatTokenResponse_descriptor = getDescriptor().getMessageType(1); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetTool.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetTool.java index dcdd2d555703..45a2d6180c67 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetTool.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetTool.java @@ -475,6 +475,2086 @@ private WidgetType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.WidgetTool.WidgetType) } + public interface DataMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.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.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.PythonFunctionOrBuilder getPythonFunctionOrBuilder(); + + /** + * + * + *
              +     * Optional. The mode of the data mapping.
              +     * 
              + * + * + * .google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode getMode(); + + /** + * + * + *
              +     * Deprecated: Use `python_function` instead.
              +     * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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.v1beta.WidgetTool.DataMapping} + */ + public static final class DataMapping extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.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.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_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.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Builder.class); + } + + /** + * + * + *
              +     * The strategy used to map data from the source tool to the widget.
              +     * 
              + * + * Protobuf enum {@code google.cloud.ces.v1beta.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.v1beta.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.v1beta.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.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_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.v1beta.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.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.PythonFunction getPythonFunction() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + return pythonFunction_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.WidgetTool.DataMapping other = + (com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.WidgetTool.DataMapping) + com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_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.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.class, + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.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.v1beta.WidgetToolProto + .internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.WidgetTool.DataMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping build() { + com.google.cloud.ces.v1beta.WidgetTool.DataMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping buildPartial() { + com.google.cloud.ces.v1beta.WidgetTool.DataMapping result = + new com.google.cloud.ces.v1beta.WidgetTool.DataMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping) { + return mergeFrom((com.google.cloud.ces.v1beta.WidgetTool.DataMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.WidgetTool.DataMapping other) { + if (other == com.google.cloud.ces.v1beta.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.v1beta.PythonFunction pythonFunction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.PythonFunction, + com.google.cloud.ces.v1beta.PythonFunction.Builder, + com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + public com.google.cloud.ces.v1beta.PythonFunction getPythonFunction() { + if (pythonFunctionBuilder_ == null) { + return pythonFunction_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction(com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction( + com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePythonFunction(com.google.cloud.ces.v1beta.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && pythonFunction_ != null + && pythonFunction_ + != com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + if (pythonFunctionBuilder_ != null) { + return pythonFunctionBuilder_.getMessageOrBuilder(); + } else { + return pythonFunction_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.PythonFunction, + com.google.cloud.ces.v1beta.PythonFunction.Builder, + com.google.cloud.ces.v1beta.PythonFunctionOrBuilder> + internalGetPythonFunctionFieldBuilder() { + if (pythonFunctionBuilder_ == null) { + pythonFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.PythonFunction, + com.google.cloud.ces.v1beta.PythonFunction.Builder, + com.google.cloud.ces.v1beta.PythonFunctionOrBuilder>( + getPythonFunction(), getParentForChildren(), isClean()); + pythonFunction_ = null; + } + return pythonFunctionBuilder_; + } + + private int mode_ = 0; + + /** + * + * + *
              +       * Optional. The mode of the data mapping.
              +       * 
              + * + * + * .google.cloud.ces.v1beta.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.v1beta.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; + } + + /** + * + * + *
              +       * Optional. The mode of the data mapping.
              +       * 
              + * + * + * .google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode getMode() { + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode result = + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +       * Optional. The mode of the data mapping.
              +       * 
              + * + * + * .google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The mode of the data mapping.
              +       * 
              + * + * + * .google.cloud.ces.v1beta.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; + } + + private java.lang.Object pythonScript_ = ""; + + /** + * + * + *
              +       * Deprecated: Use `python_function` instead.
              +       * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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; + } + } + + /** + * + * + *
              +       * Deprecated: Use `python_function` instead.
              +       * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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; + } + } + + /** + * + * + *
              +       * Deprecated: Use `python_function` instead.
              +       * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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; + } + + /** + * + * + *
              +       * Deprecated: Use `python_function` instead.
              +       * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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; + } + + /** + * + * + *
              +       * Deprecated: Use `python_function` instead.
              +       * 
              + * + * string python_script = 3 [deprecated = true]; + * + * @deprecated google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See + * google/cloud/ces/v1beta/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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.WidgetTool.DataMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.WidgetTool.DataMapping) + private static final com.google.cloud.ces.v1beta.WidgetTool.DataMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.WidgetTool.DataMapping(); + } + + public static com.google.cloud.ces.v1beta.WidgetTool.DataMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + 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 com.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.v1beta.WidgetTool.DataMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int inputCase_ = 0; @SuppressWarnings("serial") @@ -728,6 +2808,117 @@ public com.google.cloud.ces.v1beta.WidgetTool.WidgetType getWidgetType() { return result == null ? com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping getDataMapping() { + return dataMapping_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + return dataMapping_ == null + ? com.google.cloud.ces.v1beta.WidgetTool.DataMapping.getDefaultInstance() + : dataMapping_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -755,6 +2946,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 4) { output.writeMessage(4, (com.google.cloud.ces.v1beta.Schema) input_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUiConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getDataMapping()); + } getUnknownFields().writeTo(output); } @@ -779,6 +2976,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.ces.v1beta.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; @@ -797,6 +3000,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: @@ -822,6 +3033,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; @@ -963,10 +3182,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.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 @@ -979,6 +3208,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; @@ -1027,6 +3266,17 @@ private void buildPartial0(com.google.cloud.ces.v1beta.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.v1beta.WidgetTool result) { @@ -1062,6 +3312,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.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: { @@ -1124,6 +3380,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)) { @@ -1723,6 +3993,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.v1beta.WidgetTool.DataMapping dataMapping_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WidgetTool.DataMapping, + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + public com.google.cloud.ces.v1beta.WidgetTool.DataMapping getDataMapping() { + if (dataMappingBuilder_ == null) { + return dataMapping_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping(com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMapping( + com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataMapping(com.google.cloud.ces.v1beta.WidgetTool.DataMapping value) { + if (dataMappingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && dataMapping_ != null + && dataMapping_ + != com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder() { + if (dataMappingBuilder_ != null) { + return dataMappingBuilder_.getMessageOrBuilder(); + } else { + return dataMapping_ == null + ? com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WidgetTool.DataMapping, + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder> + internalGetDataMappingFieldBuilder() { + if (dataMappingBuilder_ == null) { + dataMappingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.WidgetTool.DataMapping, + com.google.cloud.ces.v1beta.WidgetTool.DataMapping.Builder, + com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder>( + getDataMapping(), getParentForChildren(), isClean()); + dataMapping_ = null; + } + return dataMappingBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.WidgetTool) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolOrBuilder.java index 490bcc35e4fe..d96df5a7133b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolOrBuilder.java @@ -150,5 +150,88 @@ public interface WidgetToolOrBuilder */ com.google.cloud.ces.v1beta.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.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMapping. + */ + com.google.cloud.ces.v1beta.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.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder(); + com.google.cloud.ces.v1beta.WidgetTool.InputCase getInputCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolProto.java index b3e2856ad2a9..ac42f7aeebd3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/WidgetToolProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_WidgetTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_WidgetTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_FieldMappingsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -56,14 +64,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ")google/cloud/ces/v1beta/widget_tool.pr" + "oto\022\027google.cloud.ces.v1beta\032\037google/api" - + "/field_behavior.proto\032$google/cloud/ces/v1beta/schema.proto\"\367\003\n\n" + + "/field_behavior.proto\032-google/cloud/ces/v1beta/python_function.proto\032$google/clo" + + "ud/ces/v1beta/schema.proto\032\034google/protobuf/struct.proto\"\251\010\n\n" + "WidgetTool\022:\n\n" + "parameters\030\004" + " \001(\0132\037.google.cloud.ces.v1beta.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\022H\n" - + "\013widget_type\030\003 \001(\016" - + "2..google.cloud.ces.v1beta.WidgetTool.WidgetTypeB\003\340A\001\"\254\002\n\n" + + "\013widget_type\030\003 \001(\0162.." + + "google.cloud.ces.v1beta.WidgetTool.WidgetTypeB\003\340A\001\022/\n" + + "\tui_config\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001\022J\n" + + "\014data_mapping\030\006 \001(" + + "\0132/.google.cloud.ces.v1beta.WidgetTool.DataMappingB\003\340A\001\032\262\003\n" + + "\013DataMapping\022\035\n" + + "\020source_tool_name\030\001 \001(\tB\003\340A\001\022_\n" + + "\016field_mappings\030\002 \003(\0132B.google.cloud.ces.v1beta.WidgetT" + + "ool.DataMapping.FieldMappingsEntryB\003\340A\001\022E\n" + + "\017python_function\030\005" + + " \001(\0132\'.google.cloud.ces.v1beta.PythonFunctionB\003\340A\001\022G\n" + + "\004mode\030\004" + + " \001(\01624.google.cloud.ces.v1beta.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" @@ -80,15 +108,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025APPOINTMENT_SCHEDULER\020\013\022\020\n" + "\014CONTACT_FORM\020\014B\007\n" + "\005inputB_\n" - + "\033com.google.cloud.ces.v1betaB\017WidgetToolProtoP\001Z-cloud.google.com/go/ces" - + "/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017WidgetToolProtoP\001Z-cloud.google.com/go/ces/" + + "apiv1beta/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.v1beta.PythonFunctionProto.getDescriptor(), com.google.cloud.ces.v1beta.SchemaProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_ces_v1beta_WidgetTool_descriptor = getDescriptor().getMessageType(0); @@ -96,11 +126,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_WidgetTool_descriptor, new java.lang.String[] { - "Parameters", "Name", "Description", "WidgetType", "Input", + "Parameters", "Name", "Description", "WidgetType", "UiConfig", "DataMapping", "Input", + }); + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_descriptor = + internal_static_google_cloud_ces_v1beta_WidgetTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_descriptor, + new java.lang.String[] { + "SourceToolName", "FieldMappings", "PythonFunction", "Mode", "PythonScript", + }); + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_FieldMappingsEntry_descriptor = + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_FieldMappingsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_WidgetTool_DataMapping_FieldMappingsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1beta.PythonFunctionProto.getDescriptor(); com.google.cloud.ces.v1beta.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-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto index ad68fdbaa4fc..db9661b816a3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_service.proto @@ -650,6 +650,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 @@ -1701,12 +1709,53 @@ message GenerateAppResourceResponse { // The app resources generated by the LLM assistant. AppResources app_resources = 7; + + // The quality report generated by the LLM assistant. + QualityReport quality_report = 8; } // Additional information about the generated result. GenerateResultInfo generate_result_info = 2; } +// The report describing any identified quality issues in the app. +message QualityReport { + // The issue identified. + message Issue { + // Optional. Description of the issue found. + string description = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many times this issue occurred. + int32 occurrence_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Proposed solution to fix the issue by modifying instructions or + // tools. + string proposed_solution = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Issues identified for a single agent. + message AgentIssues { + // Optional. The name of the agent to which the issues are related. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string agent = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of issues found for this agent. + repeated Issue issues = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The issues grouped by agent. + repeated AgentIssues issues = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of evaluation runs used to generate the quality report. + // Format: + // `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`. + repeated string evaluation_runs = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. General issues not specific to any agent. + repeated Issue general_issues = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for // [AgentService.ListChangelogs][google.cloud.ces.v1beta.AgentService.ListChangelogs]. message ListChangelogsRequest { diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto index be77bebe5ebc..7ac3059788d9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto @@ -232,8 +232,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: @@ -242,7 +245,8 @@ message LanguageSettings { // an [EndSession][google.cloud.ces.v1beta.EndSession] signal with // corresponding [metadata][google.cloud.ces.v1beta.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 @@ -422,15 +426,19 @@ message LoggingSettings { message ErrorHandlingSettings { // Defines the strategy for handling errors. enum ErrorHandlingStrategy { - // Unspecified error handling strategy. Defaults to FALLBACK_RESPONSE. + // 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 - // LLM errors. + // system errors (e.g. LLM errors). FALLBACK_RESPONSE = 2; + + // An [EndSession][google.cloud.ces.v1beta.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. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/bigquery_export.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/bigquery_export.proto index 62a99997f31d..ed505b1d2cbe 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/bigquery_export.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/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-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto index 8aba054d30d8..a1c4b162a189 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/common.proto @@ -242,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. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto index 1d0d46affaa9..9e61271d789b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto @@ -368,7 +368,7 @@ message RunEvaluationResponse { } // Operation metadata for -// [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation] +// [EvaluationService.RunEvaluation][google.cloud.ces.v1beta.EvaluationService.RunEvaluation]. message RunEvaluationOperationMetadata { // Output only. The list of evaluations that were run. // Format: diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_tool.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_tool.proto index b966847f4e39..d9a98740248c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/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-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_toolset.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_toolset.proto index 165af9c4a80c..fa4758a375e4 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mcp_toolset.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/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-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto index 4298586f74fe..59f00fc67d56 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/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: "/v1beta/{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.v1beta.SessionConfig.enable_text_streaming] + // to true. + rpc StreamRunSession(RunSessionRequest) returns (stream RunSessionResponse) { + option (google.api.http) = { + post: "/v1beta/{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. @@ -237,6 +252,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.v1beta.SessionService.StreamRunSession] + // or [BidiRunSession][google.cloud.ces.v1beta.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 diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_service.proto index da9850d7b40a..200a48207aec 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/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-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_tool.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_tool.proto index 6d6430443c79..670cf5327782 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/widget_tool.proto @@ -17,7 +17,9 @@ syntax = "proto3"; package google.cloud.ces.v1beta; import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1beta/python_function.proto"; import "google/cloud/ces/v1beta/schema.proto"; +import "google/protobuf/struct.proto"; option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb"; option java_multiple_files = true; @@ -29,6 +31,42 @@ option java_package = "com.google.cloud.ces.v1beta"; // 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 { @@ -87,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/v1beta/agentservice/exportapp/AsyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportApp.java index 76576c4414de..a36cc8652ce1 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportApp.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.ces.v1beta.AgentServiceClient; import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.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/v1beta/agentservice/exportapp/AsyncExportAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportAppLRO.java index 638f58789dbe..1af0d84bae85 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportAppLRO.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/AsyncExportAppLRO.java @@ -20,6 +20,7 @@ import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.ces.v1beta.AgentServiceClient; import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.ExportAppRequest; import com.google.cloud.ces.v1beta.ExportAppResponse; import com.google.cloud.ces.v1beta.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/v1beta/agentservice/exportapp/SyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/SyncExportApp.java index 7e0e177d482d..15c86987f25a 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/SyncExportApp.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/agentservice/exportapp/SyncExportApp.java @@ -19,6 +19,7 @@ // [START ces_v1beta_generated_AgentService_ExportApp_sync] import com.google.cloud.ces.v1beta.AgentServiceClient; import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.AppVersionName; import com.google.cloud.ces.v1beta.ExportAppRequest; import com.google.cloud.ces.v1beta.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/v1beta/sessionservice/streamrunsession/AsyncStreamRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/sessionservice/streamrunsession/AsyncStreamRunSession.java new file mode 100644 index 000000000000..717b95917705 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/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.v1beta.samples; + +// [START ces_v1beta_generated_SessionService_StreamRunSession_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.ces.v1beta.RunSessionRequest; +import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.SessionConfig; +import com.google.cloud.ces.v1beta.SessionInput; +import com.google.cloud.ces.v1beta.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_v1beta_generated_SessionService_StreamRunSession_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/widgetservice/generatechattoken/AsyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/widgetservice/generatechattoken/AsyncGenerateChatToken.java index 5ef8a977895e..0ecdcfd4f897 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/widgetservice/generatechattoken/AsyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/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/v1beta/widgetservice/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/widgetservice/generatechattoken/SyncGenerateChatToken.java index fe56977fdf73..e2f17cc15b82 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/widgetservice/generatechattoken/SyncGenerateChatToken.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index e4a5c8769d14..1f10cc1adac9 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.98.0 + 0.99.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.98.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.99.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-dialogflow-cx/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-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.99.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-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index 1a8cdde77ce8..d3aa9430db7d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -278,8 +278,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.

              *
                @@ -1710,13 +1712,20 @@ public final GenerativeSettings updateGenerativeSettings( // 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: * @@ -1749,13 +1758,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: * @@ -1788,13 +1804,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java index 06dd86f40231..5da2bf417658 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -108,8 +108,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.

                *
                  @@ -522,13 +524,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. * - *

                  * **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: * @@ -561,13 +570,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: * @@ -601,13 +617,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java index dfc43ac495e1..0354ba305357 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java @@ -129,8 +129,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.

                  *
                    @@ -678,13 +680,20 @@ public final UnaryCallable deleteConversationC // 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: * @@ -717,13 +726,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: * @@ -757,13 +773,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java index 89c921ca993d..516534f6b4e4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -109,8 +109,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.

                    *
                      @@ -545,13 +547,20 @@ public final UnaryCallable getDeploymentCallab // 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: * @@ -584,13 +593,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: * @@ -624,13 +640,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index 3db0bc88545b..0f5b43633956 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -203,8 +203,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.

                      *
                        @@ -1192,13 +1194,20 @@ public final UnaryCallable importEntityType // 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: * @@ -1231,13 +1240,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: * @@ -1271,13 +1287,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java index c400ca2ed800..5230585990f6 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java @@ -252,8 +252,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.

                        *
                          @@ -1788,13 +1790,20 @@ public final UnaryCallable deployFlowCallable() { // 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: * @@ -1827,13 +1836,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: * @@ -1867,13 +1883,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java index 99a24409f023..5fc01b9a17d0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java @@ -166,8 +166,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.

                          *
                            @@ -913,13 +915,20 @@ public final UnaryCallable updateExampleCallable( // 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: * @@ -952,13 +961,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: * @@ -991,13 +1007,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index 25cc53c8300b..dcf41b27540f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -205,8 +205,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.

                            *
                              @@ -1232,13 +1234,20 @@ public final UnaryCallable stopExperimentCall // 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: * @@ -1271,13 +1280,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: * @@ -1311,13 +1327,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java index b4cf2d9415a1..fa4c53d7788c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java @@ -265,8 +265,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.

                              *
                                @@ -1672,13 +1674,20 @@ public final UnaryCallable exportFlowCallable() { // 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: * @@ -1711,13 +1720,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: * @@ -1750,13 +1766,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java index 4e76d83e945d..f4ee0f01d038 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java @@ -166,8 +166,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.

                                *
                                  @@ -911,13 +913,20 @@ public final UnaryCallable deleteGeneratorCallabl // 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: * @@ -950,13 +959,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: * @@ -990,13 +1006,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index 2e4937e21815..3d43cf54872f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -206,8 +206,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.

                                  *
                                    @@ -1219,13 +1221,20 @@ public final UnaryCallable exportIntentsCallabl // 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: * @@ -1258,13 +1267,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: * @@ -1297,13 +1313,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java index c9ba8889f966..52e68125e739 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java @@ -165,8 +165,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.

                                    *
                                      @@ -901,13 +903,20 @@ public final UnaryCallable deletePageCallable() { // 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: * @@ -940,13 +949,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: * @@ -979,13 +995,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java index 00c65af588ec..4dc7c4e875d1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java @@ -299,8 +299,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.

                                      *
                                        @@ -1916,13 +1918,20 @@ public final UnaryCallable deletePlaybookVe // 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: * @@ -1955,13 +1964,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: * @@ -1994,13 +2010,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java index 5b3b10957ad3..1ac82caced29 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java @@ -169,8 +169,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.

                                        *
                                          @@ -978,13 +980,20 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) // 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: * @@ -1018,13 +1027,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: * @@ -1059,13 +1075,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index c67e034e0306..901612ffb983 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -169,8 +169,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.

                                          *
                                            @@ -1006,13 +1008,20 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request // 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: * @@ -1045,13 +1054,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: * @@ -1085,13 +1101,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index f8047f8e44f2..21ce784cebd3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -160,8 +160,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.

                                            *
                                              @@ -663,13 +665,20 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req // 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: * @@ -702,13 +711,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: * @@ -741,13 +757,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index b7278eed9ba4..83964b72542f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -292,8 +292,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.

                                              *
                                                @@ -1891,13 +1893,20 @@ public final UnaryCallable getTestCase // 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: * @@ -1930,13 +1939,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: * @@ -1969,13 +1985,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java index fee96be43253..40d7f4d614dd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java @@ -281,8 +281,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.

                                                *
                                                  @@ -1765,13 +1767,20 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq // 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: * @@ -1804,13 +1813,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: * @@ -1843,13 +1859,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java index d15bf39a9b53..0edee41fedd3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java @@ -175,8 +175,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.

                                                  *
                                                    @@ -1163,13 +1165,20 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r // 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: * @@ -1203,13 +1212,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: * @@ -1244,13 +1260,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java index 89a4aa62aa06..9e27db6e267e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java @@ -215,8 +215,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.

                                                    *
                                                      @@ -1395,13 +1397,20 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ // 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: * @@ -1434,13 +1443,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: * @@ -1473,13 +1489,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-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index 1706ecce1d45..4ae643a5d6eb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -165,8 +165,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.

                                                      *
                                                        @@ -890,13 +892,20 @@ public final UnaryCallable deleteWebhookCallable() // 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: * @@ -929,13 +938,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: * @@ -968,13 +984,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-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 8045590d03d6..32f820f2a7e1 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 @@ -3401,6 +3401,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.FlowTransition", "queryAllDeclaredConstructors": true, @@ -6344,6 +6362,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.PlaybookTransition", "queryAllDeclaredConstructors": true, @@ -7262,6 +7298,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings", "queryAllDeclaredConstructors": true, @@ -8171,6 +8225,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.TraceBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.TraceBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientHttpJsonTest.java index 9874c790a503..9eddfacfad68 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/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/v3beta1/IntentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java index 9c9398441bcb..c7616d3f9226 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadata.java new file mode 100644 index 000000000000..e1a36c1b45e9 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadata.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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *

                                                        + * Metadata of the flow trace.
                                                        + * 
                                                        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata} + */ +@com.google.protobuf.Generated +public final class FlowTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.FlowTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..ce893a6c7f55 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +@com.google.protobuf.Generated +public interface FlowTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransition.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransition.java index 346c85f76288..0d924570459e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransition.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransition.java @@ -200,7 +200,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return Whether the inputActionParameters field is set. */ @java.lang.Override @@ -219,7 +219,7 @@ public boolean hasInputActionParameters() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return The inputActionParameters. */ @java.lang.Override @@ -890,7 +890,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return Whether the inputActionParameters field is set. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public boolean hasInputActionParameters() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return The inputActionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransitionOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransitionOrBuilder.java index 3c00c9a09c0a..7359065b3d16 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransitionOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowTransitionOrBuilder.java @@ -96,7 +96,7 @@ public interface FlowTransitionOrBuilder * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return Whether the inputActionParameters field is set. */ @java.lang.Deprecated @@ -112,7 +112,7 @@ public interface FlowTransitionOrBuilder * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.FlowTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=408 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=485 * @return The inputActionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java index 649be7066175..540a7dfb7472 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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() { @@ -4588,6 +4589,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 @@ -4625,6 +4679,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); } @@ -4665,6 +4722,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; @@ -4689,6 +4749,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; } @@ -4722,6 +4783,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; @@ -4908,6 +4971,7 @@ public Builder clear() { isFallback_ = false; internalGetMutableLabels().clear(); description_ = ""; + dtmfPattern_ = ""; return this; } @@ -4985,6 +5049,9 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Intent result) if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dtmfPattern_ = dtmfPattern_; + } } @java.lang.Override @@ -5076,6 +5143,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { bitField0_ |= 0x00000080; onChanged(); } + if (!other.getDtmfPattern().isEmpty()) { + dtmfPattern_ = other.dtmfPattern_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5172,6 +5244,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)) { @@ -6783,6 +6861,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.v3beta1.Intent) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java index 0cb78ce786b1..13f2db057f08 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java @@ -400,4 +400,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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java index 7ae3ef34fe73..ba2d36467e80 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java @@ -128,7 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ehavior.proto\032\031google/api/resource.proto" + "\032/google/cloud/dialogflow/cx/v3beta1/inl" + "ine.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\265\006\n" + + " google/protobuf/field_mask.proto\"\320\006\n" + "\006Intent\022\014\n" + "\004name\030\001 \001(\t\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022S\n" @@ -140,11 +140,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013is_fallback\030\006 \001(\010\022F\n" + "\006labels\030\007" + " \003(\01326.google.cloud.dialogflow.cx.v3beta1.Intent.LabelsEntry\022\023\n" - + "\013description\030\010 \001(\t\032\274\001\n" + + "\013description\030\010 \001(\t\022\031\n" + + "\014dtmf_pattern\030\020 \001(\tB\003\340A\001\032\274\001\n" + "\016TrainingPhrase\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022R\n" - + "\005parts\030\002 \003(\0132>.google.cloud.d" - + "ialogflow.cx.v3beta1.Intent.TrainingPhrase.PartB\003\340A\002\022\024\n" + + "\005parts\030\002 \003(\0132>.google.cloud.dialogflow.cx." + + "v3beta1.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" @@ -158,8 +159,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/{project}" - + "/locations/{location}/agents/{agent}/intents/{intent}\"\321\001\n" + + " dialogflow.googleapis.com/Intent\022Gprojects/{project}/locations/{l" + + "ocation}/agents/{agent}/intents/{intent}\"\321\001\n" + "\022ListIntentsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022\025\n\r" @@ -173,17 +174,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\"a\n" + "\020GetIntentRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " dialogflow.googleapis.com/Intent\022\025\n\r" + + " dialogflow.googleapis.com/Intent\022\025\n" + + "\r" + "language_code\030\002 \001(\t\"\247\001\n" + "\023CreateIntentRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " dialogflow.googleapis.com/Intent\022?\n" - + "\006intent\030\002" - + " \001(\0132*.google.cloud.dialogflow.cx.v3beta1.IntentB\003\340A\002\022\025\n\r" + + "\006intent\030\002 \001(\0132*" + + ".google.cloud.dialogflow.cx.v3beta1.IntentB\003\340A\002\022\025\n\r" + "language_code\030\003 \001(\t\"\236\001\n" + "\023UpdateIntentRequest\022?\n" - + "\006intent\030\001 " - + "\001(\0132*.google.cloud.dialogflow.cx.v3beta1.IntentB\003\340A\002\022\025\n\r" + + "\006intent\030\001 \001(\0132*.google." + + "cloud.dialogflow.cx.v3beta1.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" @@ -193,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\022K\n" - + "\017intents_content\030\003" - + " \001(\01320.google.cloud.dialogflow.cx.v3beta1.InlineSourceH\000\022Z\n" - + "\014merge_option\030\004 \001(\0162D.google.cloud.dialogflow.cx.v3" - + "beta1.ImportIntentsRequest.MergeOption\"~\n" + + "\017intents_content\030\003 \001(" + + "\01320.google.cloud.dialogflow.cx.v3beta1.InlineSourceH\000\022Z\n" + + "\014merge_option\030\004 \001(\0162D.go" + + "ogle.cloud.dialogflow.cx.v3beta1.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" @@ -209,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\022m\n" - + "\025conflicting_resources\030\002 \001(\0132N.google.cloud.dialogflow.cx." - + "v3beta1.ImportIntentsResponse.ConflictingResources\032R\n" + + "\025conflicting_resources\030\002 \001(\0132N." + + "google.cloud.dialogflow.cx.v3beta1.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" @@ -221,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\022]\n" - + "\013data_format\030\005 \001(\0162C.googl" - + "e.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormatB\003\340A\001\"F\n\n" + + "\013data_format\030\005 \001(\0162C.google.cloud.dialo" + + "gflow.cx.v3beta1.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" @@ -231,8 +233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013destination\"\213\001\n" + "\025ExportIntentsResponse\022\025\n" + "\013intents_uri\030\001 \001(\tH\000\022P\n" - + "\017intents_content\030\002 \001(\01325.google.clo" - + "ud.dialogflow.cx.v3beta1.InlineDestinationH\000B\t\n" + + "\017intents_content\030\002" + + " \001(\01325.google.cloud.dialogflow.cx.v3beta1.InlineDestinationH\000B\t\n" + "\007intents\"\027\n" + "\025ExportIntentsMetadata*X\n\n" + "IntentView\022\033\n" @@ -240,43 +242,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023INTENT_VIEW_PARTIAL\020\001\022\024\n" + "\020INTENT_VIEW_FULL\020\0022\266\014\n" + "\007Intents\022\312\001\n" - + "\013ListIntents\0226.google.cloud.dialogflow.cx.v3beta1.List" - + "IntentsRequest\0327.google.cloud.dialogflow" - + ".cx.v3beta1.ListIntentsResponse\"J\332A\006pare" - + "nt\202\323\344\223\002;\0229/v3beta1/{parent=projects/*/locations/*/agents/*}/intents\022\267\001\n" - + "\tGetIntent\0224.google.cloud.dialogflow.cx.v3beta1.G" - + "etIntentRequest\032*.google.cloud.dialogflo" - + "w.cx.v3beta1.Intent\"H\332A\004name\202\323\344\223\002;\0229/v3b" - + "eta1/{name=projects/*/locations/*/agents/*/intents/*}\022\316\001\n" - + "\014CreateIntent\0227.google.cloud.dialogflow.cx.v3beta1.CreateIntent" - + "Request\032*.google.cloud.dialogflow.cx.v3beta1.Intent\"Y\332A\r" - + "parent,intent\202\323\344\223\002C\"9/v3" - + "beta1/{parent=projects/*/locations/*/agents/*}/intents:\006intent\022\332\001\n" - + "\014UpdateIntent\0227.google.cloud.dialogflow.cx.v3beta1.Upd" - + "ateIntentRequest\032*.google.cloud.dialogfl" - + "ow.cx.v3beta1.Intent\"e\332A\022intent,update_m" - + "ask\202\323\344\223\002J2@/v3beta1/{intent.name=project" - + "s/*/locations/*/agents/*/intents/*}:\006intent\022\251\001\n" - + "\014DeleteIntent\0227.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest\032\026." - + "google.protobuf.Empty\"H\332A\004name\202\323\344\223\002;*9/v" - + "3beta1/{name=projects/*/locations/*/agents/*/intents/*}\022\346\001\n\r" - + "ImportIntents\0228.google.cloud.dialogflow.cx.v3beta1.ImportInt" - + "entsRequest\032\035.google.longrunning.Operation\"|\312A.\n" - + "\025ImportIntentsResponse\022\025ImportIn" - + "tentsMetadata\202\323\344\223\002E\"@/v3beta1/{parent=pr" - + "ojects/*/locations/*/agents/*}/intents:import:\001*\022\346\001\n\r" - + "ExportIntents\0228.google.cloud.dialogflow.cx.v3beta1.ExportIntentsReq" - + "uest\032\035.google.longrunning.Operation\"|\312A.\n" - + "\025ExportIntentsResponse\022\025ExportIntentsMe" - + "tadata\202\323\344\223\002E\"@/v3beta1/{parent=projects/" - + "*/locations/*/agents/*}/intents:export:\001" - + "*\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogflowB\302\001\n" - + "&com.google.cloud.dialogflow.cx.v3beta1B\013IntentProtoP\001Z6cloud.google.com/" - + "go/dialogflow/cx/apiv3beta1/cxpb;cxpb\242\002\002" - + "DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1\352" - + "\002&Google::Cloud::Dialogflow::CX::V3beta1b\006proto3" + + "\013ListIntents\0226.google.cloud.dialogflow.cx.v3beta1.ListIntentsReques" + + "t\0327.google.cloud.dialogflow.cx.v3beta1.L" + + "istIntentsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v3" + + "beta1/{parent=projects/*/locations/*/agents/*}/intents\022\267\001\n" + + "\tGetIntent\0224.google.cloud.dialogflow.cx.v3beta1.GetIntentReque" + + "st\032*.google.cloud.dialogflow.cx.v3beta1." + + "Intent\"H\332A\004name\202\323\344\223\002;\0229/v3beta1/{name=pr" + + "ojects/*/locations/*/agents/*/intents/*}\022\316\001\n" + + "\014CreateIntent\0227.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest\032*.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Intent\"Y\332A\r" + + "parent,intent\202\323\344\223\002C\"9/v3beta1/{parent" + + "=projects/*/locations/*/agents/*}/intents:\006intent\022\332\001\n" + + "\014UpdateIntent\0227.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequ" + + "est\032*.google.cloud.dialogflow.cx.v3beta1" + + ".Intent\"e\332A\022intent,update_mask\202\323\344\223\002J2@/v" + + "3beta1/{intent.name=projects/*/locations/*/agents/*/intents/*}:\006intent\022\251\001\n" + + "\014DeleteIntent\0227.google.cloud.dialogflow.cx.v3b" + + "eta1.DeleteIntentRequest\032\026.google.protob" + + "uf.Empty\"H\332A\004name\202\323\344\223\002;*9/v3beta1/{name=" + + "projects/*/locations/*/agents/*/intents/*}\022\346\001\n\r" + + "ImportIntents\0228.google.cloud.dial" + + "ogflow.cx.v3beta1.ImportIntentsRequest\032\035.google.longrunning.Operation\"|\312A.\n" + + "\025ImportIntentsResponse\022\025ImportIntentsMetadata" + + "\202\323\344\223\002E\"@/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:import:\001*\022\346\001\n\r" + + "ExportIntents\0228.google.cloud.dialogflow." + + "cx.v3beta1.ExportIntentsRequest\032\035.google.longrunning.Operation\"|\312A.\n" + + "\025ExportIntentsResponse\022\025ExportIntentsMetadata\202\323\344\223\002E\"" + + "@/v3beta1/{parent=projects/*/locations/*" + + "/agents/*}/intents:export:\001*\032x\312A\031dialogf" + + "low.googleapis.com\322AYhttps://www.googlea" + + "pis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\302\001\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B\013Inten" + + "tProtoP\001Z6cloud.google.com/go/dialogflow" + + "/cx/apiv3beta1/cxpb;cxpb\242\002\002DF\252\002\"Google.C" + + "loud.Dialogflow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -305,6 +305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IsFallback", "Labels", "Description", + "DtmfPattern", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Intent_TrainingPhrase_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Intent_descriptor.getNestedType(0); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java index fa8bef5e7418..58d3e36dc611 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java @@ -357,7 +357,7 @@ public com.google.protobuf.ByteString getExecutionSummaryBytes() { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The enum numeric value on the wire for state. */ @java.lang.Override @@ -377,7 +377,7 @@ public int getStateValue() { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The state. */ @java.lang.Override @@ -952,7 +952,7 @@ public Builder setExecutionSummaryBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The enum numeric value on the wire for state. */ @java.lang.Override @@ -972,7 +972,7 @@ public int getStateValue() { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setStateValue(int value) { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The state. */ @java.lang.Override @@ -1019,7 +1019,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.State getState() { * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @param value The state to set. * @return This builder for chaining. */ @@ -1045,7 +1045,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.St * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java index 150f47b8692e..8f95bb0a741a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java @@ -63,7 +63,7 @@ public interface PlaybookOutputOrBuilder * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The enum numeric value on the wire for state. */ @java.lang.Deprecated @@ -80,7 +80,7 @@ public interface PlaybookOutputOrBuilder * * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.state is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=449 + * google/cloud/dialogflow/cx/v3beta1/trace.proto;l=526 * @return The state. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadata.java new file mode 100644 index 000000000000..5c234c325004 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadata.java @@ -0,0 +1,818 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
                                                        + * Metadata of the playbook trace.
                                                        + * 
                                                        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata} + */ +@com.google.protobuf.Generated +public final class PlaybookTraceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.PlaybookTraceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata build() { + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata result = + new com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) + private static final com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTraceMetadataOrBuilder.java new file mode 100644 index 000000000000..735b7e1a404a --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +@com.google.protobuf.Generated +public interface PlaybookTraceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransition.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransition.java index a029fbe00a8b..725178fae459 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransition.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransition.java @@ -200,7 +200,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return Whether the inputActionParameters field is set. */ @java.lang.Override @@ -219,7 +219,7 @@ public boolean hasInputActionParameters() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return The inputActionParameters. */ @java.lang.Override @@ -890,7 +890,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return Whether the inputActionParameters field is set. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public boolean hasInputActionParameters() { * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return The inputActionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransitionOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransitionOrBuilder.java index ec95ed61b280..6cf9e5c71e03 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransitionOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookTransitionOrBuilder.java @@ -96,7 +96,7 @@ public interface PlaybookTransitionOrBuilder * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return Whether the inputActionParameters field is set. */ @java.lang.Deprecated @@ -112,7 +112,7 @@ public interface PlaybookTransitionOrBuilder * .google.protobuf.Struct input_action_parameters = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.PlaybookTransition.input_action_parameters is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=390 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/trace.proto;l=467 * @return The inputActionParameters. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java index ed3784b9987a..5d41629de8d2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java @@ -1349,7 +1349,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder getSearchCon * * @deprecated * google.cloud.dialogflow.cx.v3beta1.QueryParameters.populate_data_store_connection_signals - * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=774 + * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=775 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5953,7 +5953,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder getSearchCon * * @deprecated * google.cloud.dialogflow.cx.v3beta1.QueryParameters.populate_data_store_connection_signals - * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=774 + * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=775 * @return The populateDataStoreConnectionSignals. */ @java.lang.Override @@ -5978,7 +5978,7 @@ public boolean getPopulateDataStoreConnectionSignals() { * * @deprecated * google.cloud.dialogflow.cx.v3beta1.QueryParameters.populate_data_store_connection_signals - * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=774 + * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=775 * @param value The populateDataStoreConnectionSignals to set. * @return This builder for chaining. */ @@ -6007,7 +6007,7 @@ public Builder setPopulateDataStoreConnectionSignals(boolean value) { * * @deprecated * google.cloud.dialogflow.cx.v3beta1.QueryParameters.populate_data_store_connection_signals - * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=774 + * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=775 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java index 79c8eb18ca74..9d30e22700e6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java @@ -965,7 +965,7 @@ java.lang.String getWebhookHeadersOrDefault( * * @deprecated * google.cloud.dialogflow.cx.v3beta1.QueryParameters.populate_data_store_connection_signals - * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=774 + * is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=775 * @return The populateDataStoreConnectionSignals. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java index 4c0e3942f792..a10adbba0c78 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java @@ -60,6 +60,7 @@ private QueryResult() { webhookTags_ = com.google.protobuf.LazyStringArrayList.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() { @@ -1336,7 +1337,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getCurrentFlowOrBuil * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return Whether the intent field is set. */ @java.lang.Override @@ -1360,7 +1361,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return The intent. */ @java.lang.Override @@ -1414,7 +1415,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1121 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1122 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -1852,6 +1853,108 @@ 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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlockOrBuilder getTraceBlocksOrBuilder( + int index) { + return traceBlocks_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1941,6 +2044,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(35, getDataStoreConnectionSignals()); } + for (int i = 0; i < traceBlocks_.size(); i++) { + output.writeMessage(37, traceBlocks_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2047,6 +2153,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; @@ -2115,6 +2224,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: @@ -2220,6 +2330,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; @@ -2399,6 +2513,7 @@ private void maybeForceBuilderInitialization() { internalGetSentimentAnalysisResultFieldBuilder(); internalGetAdvancedSettingsFieldBuilder(); internalGetDataStoreConnectionSignalsFieldBuilder(); + internalGetTraceBlocksFieldBuilder(); } } @@ -2493,6 +2608,13 @@ public Builder clear() { dataStoreConnectionSignalsBuilder_.dispose(); dataStoreConnectionSignalsBuilder_ = null; } + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + } else { + traceBlocks_ = null; + traceBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x02000000); queryCase_ = 0; query_ = null; return this; @@ -2569,6 +2691,15 @@ private void buildPartialRepeatedFields( } else { result.webhookPayloads_ = webhookPayloadsBuilder_.build(); } + if (traceBlocksBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0)) { + traceBlocks_ = java.util.Collections.unmodifiableList(traceBlocks_); + bitField0_ = (bitField0_ & ~0x02000000); + } + result.traceBlocks_ = traceBlocks_; + } else { + result.traceBlocks_ = traceBlocksBuilder_.build(); + } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.QueryResult result) { @@ -2849,6 +2980,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe if (other.hasDataStoreConnectionSignals()) { mergeDataStoreConnectionSignals(other.getDataStoreConnectionSignals()); } + if (traceBlocksBuilder_ == null) { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocks_.isEmpty()) { + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x02000000); + } else { + ensureTraceBlocksIsMutable(); + traceBlocks_.addAll(other.traceBlocks_); + } + onChanged(); + } + } else { + if (!other.traceBlocks_.isEmpty()) { + if (traceBlocksBuilder_.isEmpty()) { + traceBlocksBuilder_.dispose(); + traceBlocksBuilder_ = null; + traceBlocks_ = other.traceBlocks_; + bitField0_ = (bitField0_ & ~0x02000000); + traceBlocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTraceBlocksFieldBuilder() + : null; + } else { + traceBlocksBuilder_.addAllMessages(other.traceBlocks_); + } + } + } switch (other.getQueryCase()) { case TEXT: { @@ -3107,6 +3265,20 @@ public Builder mergeFrom( bitField0_ |= 0x01000000; break; } // case 282 + case 298: + { + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.parser(), + extensionRegistry); + if (traceBlocksBuilder_ == null) { + ensureTraceBlocksIsMutable(); + traceBlocks_.add(m); + } else { + traceBlocksBuilder_.addMessage(m); + } + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7002,7 +7174,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getCurrentFlowOrBuil * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -7025,7 +7197,7 @@ public boolean hasIntent() { * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return The intent. */ @java.lang.Deprecated @@ -7252,7 +7424,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1121 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1122 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -7279,7 +7451,7 @@ public float getIntentDetectionConfidence() { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1121 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1122 * @param value The intentDetectionConfidence to set. * @return This builder for chaining. */ @@ -7310,7 +7482,7 @@ public Builder setIntentDetectionConfidence(float value) { * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1121 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1122 * @return This builder for chaining. */ @java.lang.Deprecated @@ -8824,6 +8996,471 @@ public Builder clearDataStoreConnectionSignals() { return dataStoreConnectionSignalsBuilder_; } + private java.util.List traceBlocks_ = + java.util.Collections.emptyList(); + + private void ensureTraceBlocksIsMutable() { + if (!((bitField0_ & 0x02000000) != 0)) { + traceBlocks_ = + new java.util.ArrayList( + traceBlocks_); + bitField0_ |= 0x02000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks(com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTraceBlocks( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTraceBlocks() { + if (traceBlocksBuilder_ == null) { + traceBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + 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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder addTraceBlocksBuilder() { + return internalGetTraceBlocksFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder addTraceBlocksBuilder( + int index) { + return internalGetTraceBlocksFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.TraceBlock, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlockOrBuilder> + internalGetTraceBlocksFieldBuilder() { + if (traceBlocksBuilder_ == null) { + traceBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlockOrBuilder>( + traceBlocks_, ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); + traceBlocks_ = null; + } + return traceBlocksBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.QueryResult) } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java index eb063932dbad..4111b5c48de8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java @@ -873,7 +873,7 @@ com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getResponseMessa * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getResponseMessa * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1110 + * google/cloud/dialogflow/cx/v3beta1/session.proto;l=1111 * @return The intent. */ @java.lang.Deprecated @@ -935,7 +935,7 @@ com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getResponseMessa * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1121 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1122 * @return The intentDetectionConfidence. */ @java.lang.Deprecated @@ -1263,5 +1263,86 @@ com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getResponseMessa com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock trace_blocks = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.TraceBlockOrBuilder getTraceBlocksOrBuilder(int index); + com.google.cloud.dialogflow.cx.v3beta1.QueryResult.QueryCase getQueryCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index daedb53be1d2..f6ab3007ca68 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -177,342 +177,378 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n0google/cloud/dialogflow/cx/v3beta1/ses" - + "sion.proto\022\"google.cloud.dialogflow.cx.v" + "\n" + + "0google/cloud/dialogflow/cx/v3beta1/session.proto\022\"google.cloud.dialogflow.cx.v" + "3beta1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.prot" - + "o\032:google/cloud/dialogflow/cx/v3beta1/ad" - + "vanced_settings.proto\0325google/cloud/dial" - + "ogflow/cx/v3beta1/audio_config.proto\032>go" - + "ogle/cloud/dialogflow/cx/v3beta1/data_st" - + "ore_connection.proto\0320google/cloud/dialo" - + "gflow/cx/v3beta1/example.proto\032-google/c" - + "loud/dialogflow/cx/v3beta1/flow.proto\032.google" - + ".cloud.dialogflow.cx.v3beta1.StreamingRe" - + "cognitionResultH\000\022Z\n\026detect_intent_respo" - + "nse\030\002 \001(\01328.google.cloud.dialogflow.cx.v" - + "3beta1.DetectIntentResponseH\000\022Z\n\016debuggi" - + "ng_info\030\004 \001(\0132B.google.cloud.dialogflow." - + "cx.v3beta1.CloudConversationDebuggingInf" - + "oB\n\n\010response\"\300\003\n\032StreamingRecognitionRe" - + "sult\022`\n\014message_type\030\001 \001(\0162J.google.clou" - + "d.dialogflow.cx.v3beta1.StreamingRecogni" - + "tionResult.MessageType\022\022\n\ntranscript\030\002 \001" - + "(\t\022\020\n\010is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002" - + "\022\021\n\tstability\030\006 \001(\002\022L\n\020speech_word_info\030" - + "\007 \003(\01322.google.cloud.dialogflow.cx.v3bet" - + "a1.SpeechWordInfo\0224\n\021speech_end_offset\030\010" - + " \001(\0132\031.google.protobuf.Duration\022\025\n\rlangu" - + "age_code\030\n \001(\t\"X\n\013MessageType\022\034\n\030MESSAGE" - + "_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027E" - + "ND_OF_SINGLE_UTTERANCE\020\002\"\207\010\n\017QueryParame" - + "ters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030" - + "\002 \001(\0132\023.google.type.LatLng\022S\n\024session_en" - + "tity_types\030\003 \003(\01325.google.cloud.dialogfl" - + "ow.cx.v3beta1.SessionEntityType\022(\n\007paylo" - + "ad\030\004 \001(\0132\027.google.protobuf.Struct\022+\n\npar" - + "ameters\030\005 \001(\0132\027.google.protobuf.Struct\022\027" - + "\n\017parameter_scope\030\014 \001(\t\0229\n\014current_page\030" - + "\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/Pa" - + "ge\022\027\n\017disable_webhook\030\007 \001(\010\022$\n\034analyze_q" - + "uery_text_sentiment\030\010 \001(\010\022`\n\017webhook_hea" - + "ders\030\n \003(\0132G.google.cloud.dialogflow.cx." - + "v3beta1.QueryParameters.WebhookHeadersEn" - + "try\022=\n\rflow_versions\030\016 \003(\tB&\372A#\n!dialogf" - + "low.googleapis.com/Version\022D\n\020current_pl" - + "aybook\030\023 \001(\tB*\340A\001\372A$\n\"dialogflow.googlea" - + "pis.com/Playbook\022U\n\022llm_model_settings\030\025" - + " \001(\01324.google.cloud.dialogflow.cx.v3beta" - + "1.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(\013" - + "2\027.google.protobuf.StructB\003\340A\001\022L\n\rsearch" - + "_config\030\024 \001(\01320.google.cloud.dialogflow." - + "cx.v3beta1.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\"\244\001\n\014SearchConfig\022H\n\013b" - + "oost_specs\030\001 \003(\0132..google.cloud.dialogfl" - + "ow.cx.v3beta1.BoostSpecsB\003\340A\001\022J\n\014filter_" - + "specs\030\002 \003(\0132/.google.cloud.dialogflow.cx" - + ".v3beta1.FilterSpecsB\003\340A\001\"\265\007\n\tBoostSpec\022" - + "d\n\025condition_boost_specs\030\001 \003(\0132@.google." - + "cloud.dialogflow.cx.v3beta1.BoostSpec.Co" - + "nditionBoostSpecB\003\340A\001\032\301\006\n\022ConditionBoost" - + "Spec\022\026\n\tcondition\030\001 \001(\tB\003\340A\001\022\022\n\005boost\030\002 " - + "\001(\002B\003\340A\001\022r\n\022boost_control_spec\030\004 \001(\0132Q.g" - + "oogle.cloud.dialogflow.cx.v3beta1.BoostS" - + "pec.ConditionBoostSpec.BoostControlSpecB" - + "\003\340A\001\032\212\005\n\020BoostControlSpec\022\027\n\nfield_name\030" - + "\001 \001(\tB\003\340A\001\022|\n\016attribute_type\030\002 \001(\0162_.goo" - + "gle.cloud.dialogflow.cx.v3beta1.BoostSpe" - + "c.ConditionBoostSpec.BoostControlSpec.At" - + "tributeTypeB\003\340A\001\022\204\001\n\022interpolation_type\030" - + "\003 \001(\0162c.google.cloud.dialogflow.cx.v3bet" - + "a1.BoostSpec.ConditionBoostSpec.BoostCon" - + "trolSpec.InterpolationTypeB\003\340A\001\022{\n\016contr" - + "ol_points\030\004 \003(\0132^.google.cloud.dialogflo" - + "w.cx.v3beta1.BoostSpec.ConditionBoostSpe" - + "c.BoostControlSpec.ControlPointB\003\340A\001\032G\n\014" - + "ControlPoint\022\034\n\017attribute_value\030\001 \001(\tB\003\340" - + "A\001\022\031\n\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\rAttribu" - + "teType\022\036\n\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r" - + "\n\tNUMERICAL\020\001\022\r\n\tFRESHNESS\020\002\"C\n\021Interpol" - + "ationType\022\"\n\036INTERPOLATION_TYPE_UNSPECIF" - + "IED\020\000\022\n\n\006LINEAR\020\001\"\225\001\n\nBoostSpecs\022E\n\013data" - + "_stores\030\001 \003(\tB0\340A\001\372A*\n(discoveryengine.g" - + "oogleapis.com/DataStore\022@\n\004spec\030\002 \003(\0132-." - + "google.cloud.dialogflow.cx.v3beta1.Boost" - + "SpecB\003\340A\001\"i\n\013FilterSpecs\022E\n\013data_stores\030" - + "\001 \003(\tB0\340A\001\372A*\n(discoveryengine.googleapi" - + "s.com/DataStore\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\304\003\n" - + "\nQueryInput\022=\n\004text\030\002 \001(\0132-.google.cloud" - + ".dialogflow.cx.v3beta1.TextInputH\000\022A\n\006in" - + "tent\030\003 \001(\0132/.google.cloud.dialogflow.cx." - + "v3beta1.IntentInputH\000\022?\n\005audio\030\005 \001(\0132..g" - + "oogle.cloud.dialogflow.cx.v3beta1.AudioI" - + "nputH\000\022?\n\005event\030\006 \001(\0132..google.cloud.dia" - + "logflow.cx.v3beta1.EventInputH\000\022=\n\004dtmf\030" - + "\007 \001(\0132-.google.cloud.dialogflow.cx.v3bet" - + "a1.DtmfInputH\000\022N\n\020tool_call_result\030\013 \001(\013" - + "22.google.cloud.dialogflow.cx.v3beta1.To" - + "olCallResultH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340" - + "A\002B\007\n\005input\"u\n\016GenerativeInfo\022\031\n\021current" - + "_playbooks\030\001 \003(\t\022H\n\023action_tracing_info\030" - + "\002 \001(\0132+.google.cloud.dialogflow.cx.v3bet" - + "a1.Example\"\250\n\n\013QueryResult\022\016\n\004text\030\001 \001(\t" - + "H\000\022?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogf" - + "low.googleapis.com/IntentH\000\022\024\n\ntranscrip" - + "t\030\014 \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022=\n\004dt" - + "mf\030\027 \001(\0132-.google.cloud.dialogflow.cx.v3" - + "beta1.DtmfInputH\000\022\025\n\rlanguage_code\030\002 \001(\t" - + "\022+\n\nparameters\030\003 \001(\0132\027.google.protobuf.S" - + "truct\022N\n\021response_messages\030\004 \003(\01323.googl" - + "e.cloud.dialogflow.cx.v3beta1.ResponseMe" - + "ssage\022\023\n\013webhook_ids\030\031 \003(\t\022\035\n\025webhook_di" - + "splay_names\030\032 \003(\t\0224\n\021webhook_latencies\030\033" - + " \003(\0132\031.google.protobuf.Duration\022\024\n\014webho" - + "ok_tags\030\035 \003(\t\022,\n\020webhook_statuses\030\r \003(\0132" - + "\022.google.rpc.Status\0221\n\020webhook_payloads\030" - + "\006 \003(\0132\027.google.protobuf.Struct\022>\n\014curren" - + "t_page\030\007 \001(\0132(.google.cloud.dialogflow.c" - + "x.v3beta1.Page\022>\n\014current_flow\030\037 \001(\0132(.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Flow\022>" - + "\n\006intent\030\010 \001(\0132*.google.cloud.dialogflow" - + ".cx.v3beta1.IntentB\002\030\001\022\'\n\033intent_detecti" - + "on_confidence\030\t \001(\002B\002\030\001\0228\n\005match\030\017 \001(\0132)" - + ".google.cloud.dialogflow.cx.v3beta1.Matc" - + "h\0220\n\017diagnostic_info\030\n \001(\0132\027.google.prot" - + "obuf.Struct\022K\n\017generative_info\030! \001(\01322.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Genera" - + "tiveInfo\022^\n\031sentiment_analysis_result\030\021 " - + "\001(\0132;.google.cloud.dialogflow.cx.v3beta1" - + ".SentimentAnalysisResult\022O\n\021advanced_set" - + "tings\030\025 \001(\01324.google.cloud.dialogflow.cx" - + ".v3beta1.AdvancedSettings\022\035\n\025allow_answe" - + "r_feedback\030 \001(\010\022j\n\035data_store_connectio" - + "n_signals\030# \001(\0132>.google.cloud.dialogflo" - + "w.cx.v3beta1.DataStoreConnectionSignalsB" - + "\003\340A\001B\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\t" - + "B\003\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A" - + "\002\372A\"\n dialogflow.googleapis.com/Intent\"f" - + "\n\nAudioInput\022I\n\006config\030\001 \001(\01324.google.cl" - + "oud.dialogflow.cx.v3beta1.InputAudioConf" - + "igB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005" - + "event\030\001 \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t" - + "\022\024\n\014finish_digit\030\002 \001(\t\"\242\003\n\005Match\022:\n\006inte" - + "nt\030\001 \001(\0132*.google.cloud.dialogflow.cx.v3" - + "beta1.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparameter" - + "s\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016reso" - + "lved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\01623.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Match." - + "MatchType\022\022\n\nconfidence\030\005 \001(\002\"\253\001\n\tMatchT" - + "ype\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTEN" - + "T\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_FILL" - + "ING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVE" - + "NT\020\006\022\027\n\023KNOWLEDGE_CONNECTOR\020\010\022\014\n\010PLAYBOO" - + "K\020\t\"\210\002\n\022MatchIntentRequest\022:\n\007session\030\001 " - + "\001(\tB)\340A\002\372A#\n!dialogflow.googleapis.com/S" - + "ession\022I\n\014query_params\030\002 \001(\01323.google.cl" - + "oud.dialogflow.cx.v3beta1.QueryParameter" - + "s\022H\n\013query_input\030\003 \001(\0132..google.cloud.di" - + "alogflow.cx.v3beta1.QueryInputB\003\340A\002\022!\n\031p" - + "ersist_parameter_changes\030\005 \001(\010\"\232\002\n\023Match" - + "IntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigge" - + "r_intent\030\002 \001(\tB%\372A\"\n dialogflow.googleap" - + "is.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n" - + "\rtrigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(\0132" - + ").google.cloud.dialogflow.cx.v3beta1.Mat" - + "ch\022>\n\014current_page\030\005 \001(\0132(.google.cloud." - + "dialogflow.cx.v3beta1.PageB\007\n\005query\"\372\001\n\024" - + "FulfillIntentRequest\022T\n\024match_intent_req" - + "uest\030\001 \001(\01326.google.cloud.dialogflow.cx." - + "v3beta1.MatchIntentRequest\0228\n\005match\030\002 \001(" - + "\0132).google.cloud.dialogflow.cx.v3beta1.M" - + "atch\022R\n\023output_audio_config\030\003 \001(\01325.goog" - + "le.cloud.dialogflow.cx.v3beta1.OutputAud" - + "ioConfig\"\335\001\n\025FulfillIntentResponse\022\023\n\013re" - + "sponse_id\030\001 \001(\t\022E\n\014query_result\030\002 \001(\0132/." - + "google.cloud.dialogflow.cx.v3beta1.Query" - + "Result\022\024\n\014output_audio\030\003 \001(\014\022R\n\023output_a" - + "udio_config\030\004 \001(\01325.google.cloud.dialogf" - + "low.cx.v3beta1.OutputAudioConfig\";\n\027Sent" - + "imentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tma" - + "gnitude\030\002 \001(\002*\275\001\n\030DetectIntentResponseVi" - + "ew\022+\n\'DETECT_INTENT_RESPONSE_VIEW_UNSPEC" - + "IFIED\020\000\022$\n DETECT_INTENT_RESPONSE_VIEW_F" - + "ULL\020\001\022%\n!DETECT_INTENT_RESPONSE_VIEW_BAS" - + "IC\020\002\022\'\n#DETECT_INTENT_RESPONSE_VIEW_DEFA" - + "ULT\020\0032\343\016\n\010Sessions\022\272\002\n\014DetectIntent\0227.go" - + "ogle.cloud.dialogflow.cx.v3beta1.DetectI" - + "ntentRequest\0328.google.cloud.dialogflow.c" - + "x.v3beta1.DetectIntentResponse\"\266\001\202\323\344\223\002\257\001" - + "\"J/v3beta1/{session=projects/*/locations" - + "/*/agents/*/sessions/*}:detectIntent:\001*Z" - + "^\"Y/v3beta1/{session=projects/*/location" - + "s/*/agents/*/environments/*/sessions/*}:" - + "detectIntent:\001*\022\351\002\n\033ServerStreamingDetec" - + "tIntent\0227.google.cloud.dialogflow.cx.v3b" - + "eta1.DetectIntentRequest\0328.google.cloud." - + "dialogflow.cx.v3beta1.DetectIntentRespon" - + "se\"\324\001\202\323\344\223\002\315\001\"Y/v3beta1/{session=projects" - + "/*/locations/*/agents/*/sessions/*}:serv" - + "erStreamingDetectIntent:\001*Zm\"h/v3beta1/{" - + "session=projects/*/locations/*/agents/*/" - + "environments/*/sessions/*}:serverStreami" - + "ngDetectIntent:\001*0\001\022\242\001\n\025StreamingDetectI" - + "ntent\022@.google.cloud.dialogflow.cx.v3bet" - + "a1.StreamingDetectIntentRequest\032A.google" - + ".cloud.dialogflow.cx.v3beta1.StreamingDe" - + "tectIntentResponse\"\000(\0010\001\022\265\002\n\013MatchIntent" - + "\0226.google.cloud.dialogflow.cx.v3beta1.Ma" - + "tchIntentRequest\0327.google.cloud.dialogfl" - + "ow.cx.v3beta1.MatchIntentResponse\"\264\001\202\323\344\223" - + "\002\255\001\"I/v3beta1/{session=projects/*/locati" - + "ons/*/agents/*/sessions/*}:matchIntent:\001" - + "*Z]\"X/v3beta1/{session=projects/*/locati" - + "ons/*/agents/*/environments/*/sessions/*" - + "}:matchIntent:\001*\022\351\002\n\rFulfillIntent\0228.goo" - + "gle.cloud.dialogflow.cx.v3beta1.FulfillI" - + "ntentRequest\0329.google.cloud.dialogflow.c" - + "x.v3beta1.FulfillIntentResponse\"\342\001\202\323\344\223\002\333" - + "\001\"`/v3beta1/{match_intent_request.sessio" - + "n=projects/*/locations/*/agents/*/sessio" - + "ns/*}:fulfillIntent:\001*Zt\"o/v3beta1/{matc" - + "h_intent_request.session=projects/*/loca" - + "tions/*/agents/*/environments/*/sessions" - + "/*}:fulfillIntent:\001*\022\352\001\n\024SubmitAnswerFee" - + "dback\022?.google.cloud.dialogflow.cx.v3bet" - + "a1.SubmitAnswerFeedbackRequest\0322.google." - + "cloud.dialogflow.cx.v3beta1.AnswerFeedba" - + "ck\"]\202\323\344\223\002W\"R/v3beta1/{session=projects/*" - + "/locations/*/agents/*/sessions/*}:submit" - + "AnswerFeedback:\001*\032x\312A\031dialogflow.googlea" - + "pis.com\322AYhttps://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/dialogflowB\344\004\n&com.google.cloud" - + ".dialogflow.cx.v3beta1B\014SessionProtoP\001Z6" - + "cloud.google.com/go/dialogflow/cx/apiv3b" - + "eta1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dialo" - + "gflow.Cx.V3Beta1\352\002&Google::Cloud::Dialog" - + "flow::CX::V3beta1\352A\324\001\n!dialogflow.google" - + "apis.com/Session\022Iprojects/{project}/loc" - + "ations/{location}/agents/{agent}/session" - + "s/{session}\022dprojects/{project}/location" - + "s/{location}/agents/{agent}/environments" - + "/{environment}/sessions/{session}\352A\305\001\n(d" - + "iscoveryengine.googleapis.com/DataStore\022" - + "?projects/{project}/locations/{location}" - + "/dataStores/{data_store}\022Xprojects/{proj" - + "ect}/locations/{location}/collections/{c" - + "ollection}/dataStores/{data_store}b\006prot" - + "o3" + + "o\032:google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto\0325google/cloud/dial" + + "ogflow/cx/v3beta1/audio_config.proto\032>google/cloud/dialogflow/cx/v3beta1/data_st" + + "ore_connection.proto\0320google/cloud/dialogflow/cx/v3beta1/example.proto\032-google/c" + + "loud/dialogflow/cx/v3beta1/flow.proto\032.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResultH\000\022Z\n" + + "\026detect_intent_response\030\002" + + " \001(\01328.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponseH\000\022Z\n" + + "\016debugging_info\030\004 \001(\0132B.google.cloud.dia" + + "logflow.cx.v3beta1.CloudConversationDebuggingInfoB\n\n" + + "\010response\"\300\003\n" + + "\032StreamingRecognitionResult\022`\n" + + "\014message_type\030\001 \001(\0162J.goo" + + "gle.cloud.dialogflow.cx.v3beta1.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" + + "\tstability\030\006 \001(\002\022L\n" + + "\020speech_word_info\030\007" + + " \003(\01322.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo\0224\n" + + "\021speech_end_offset\030\010 \001(\0132\031.google.protobuf.Duration\022\025\n\r" + + "language_code\030\n" + + " \001(\t\"X\n" + + "\013MessageType\022\034\n" + + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "TRANSCRIPT\020\001\022\033\n" + + "\027END_OF_SINGLE_UTTERANCE\020\002\"\207\010\n" + + "\017QueryParameters\022\021\n" + + "\ttime_zone\030\001 \001(\t\022)\n" + + "\014geo_location\030\002 \001(\0132\023.google.type.LatLng\022S\n" + + "\024session_entity_types\030\003 \003(\01325.google.cloud." + + "dialogflow.cx.v3beta1.SessionEntityType\022(\n" + + "\007payload\030\004 \001(\0132\027.google.protobuf.Struct\022+\n\n" + + "parameters\030\005 \001(\0132\027.google.protobuf.Struct\022\027\n" + + "\017parameter_scope\030\014 \001(\t\0229\n" + + "\014current_page\030\006 \001(\tB#\372A \n" + + "\036dialogflow.googleapis.com/Page\022\027\n" + + "\017disable_webhook\030\007 \001(\010\022$\n" + + "\034analyze_query_text_sentiment\030\010 \001(\010\022`\n" + + "\017webhook_headers\030\n" + + " \003(\0132G.google.cloud.dialog" + + "flow.cx.v3beta1.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\022U\n" + + "\022llm_model_settings\030\025" + + " \001(\01324.google.cloud.dialogflow.cx.v3beta1.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\022L\n\r" + + "search_config\030\024" + + " \001(\01320.google.cloud.dialogflow.cx.v3beta1.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\"\244\001\n" + + "\014SearchConfig\022H\n" + + "\013boost_specs\030\001" + + " \003(\0132..google.cloud.dialogflow.cx.v3beta1.BoostSpecsB\003\340A\001\022J\n" + + "\014filter_specs\030\002" + + " \003(\0132/.google.cloud.dialogflow.cx.v3beta1.FilterSpecsB\003\340A\001\"\265\007\n" + + "\tBoostSpec\022d\n" + + "\025condition_boost_specs\030\001 \003(\0132@" + + ".google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpecB\003\340A\001\032\301\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\022r\n" + + "\022boost_control_spec\030\004 \001(\0132Q.google.cloud.dialogflow.cx.v3beta" + + "1.BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\212\005\n" + + "\020BoostControlSpec\022\027\n\n" + + "field_name\030\001 \001(\tB\003\340A\001\022|\n" + + "\016attribute_type\030\002 \001(\0162_.google.cloud.dialogflow.cx.v3beta1." + + "BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeTypeB\003\340A\001\022\204\001\n" + + "\022interpolation_type\030\003 \001(\0162c.google.cloud.dialogflow." + + "cx.v3beta1.BoostSpec.ConditionBoostSpec." + + "BoostControlSpec.InterpolationTypeB\003\340A\001\022{\n" + + "\016control_points\030\004 \003(\0132^.google.cloud.d" + + "ialogflow.cx.v3beta1.BoostSpec.Condition" + + "BoostSpec.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" + + "AttributeType\022\036\n" + + "\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tNUMERICAL\020\001\022\r\n" + + "\tFRESHNESS\020\002\"C\n" + + "\021InterpolationType\022\"\n" + + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006LINEAR\020\001\"\225\001\n\n" + + "BoostSpecs\022E\n" + + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022@\n" + + "\004spec\030\002" + + " \003(\0132-.google.cloud.dialogflow.cx.v3beta1.BoostSpecB\003\340A\001\"i\n" + + "\013FilterSpecs\022E\n" + + "\013data_stores\030\001 \003(\tB0\340A\001\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\"\304\003\n\n" + + "QueryInput\022=\n" + + "\004text\030\002 \001(\0132-.google.cloud.dialogflow.cx.v3beta1.TextInputH\000\022A\n" + + "\006intent\030\003" + + " \001(\0132/.google.cloud.dialogflow.cx.v3beta1.IntentInputH\000\022?\n" + + "\005audio\030\005" + + " \001(\0132..google.cloud.dialogflow.cx.v3beta1.AudioInputH\000\022?\n" + + "\005event\030\006 \001(\0132..google.c" + + "loud.dialogflow.cx.v3beta1.EventInputH\000\022=\n" + + "\004dtmf\030\007 \001(\0132-.google.cloud.dialogflow.cx.v3beta1.DtmfInputH\000\022N\n" + + "\020tool_call_result\030\013" + + " \001(\01322.google.cloud.dialogflow.cx.v3beta1.ToolCallResultH\000\022\032\n\r" + + "language_code\030\004 \001(\tB\003\340A\002B\007\n" + + "\005input\"u\n" + + "\016GenerativeInfo\022\031\n" + + "\021current_playbooks\030\001 \003(\t\022H\n" + + "\023action_tracing_info\030\002" + + " \001(\0132+.google.cloud.dialogflow.cx.v3beta1.Example\"\363\n\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\022=\n" + + "\004dtmf\030\027" + + " \001(\0132-.google.cloud.dialogflow.cx.v3beta1.DtmfInputH\000\022\025\n\r" + + "language_code\030\002 \001(\t\022+\n\n" + + "parameters\030\003 \001(\0132\027.google.protobuf.Struct\022N\n" + + "\021response_messages\030\004 \003(\013" + + "23.google.cloud.dialogflow.cx.v3beta1.ResponseMessage\022\023\n" + + "\013webhook_ids\030\031 \003(\t\022\035\n" + + "\025webhook_display_names\030\032 \003(\t\0224\n" + + "\021webhook_latencies\030\033 \003(\0132\031.google.protobuf.Duration\022\024\n" + + "\014webhook_tags\030\035 \003(\t\022,\n" + + "\020webhook_statuses\030\r" + + " \003(\0132\022.google.rpc.Status\0221\n" + + "\020webhook_payloads\030\006 \003(\0132\027.google.protobuf.Struct\022>\n" + + "\014current_page\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3beta1.Page\022>\n" + + "\014current_flow\030\037 \001(\0132(.google.cloud.dialogflow.cx.v3beta1.Flow\022>\n" + + "\006intent\030\010" + + " \001(\0132*.google.cloud.dialogflow.cx.v3beta1.IntentB\002\030\001\022\'\n" + + "\033intent_detection_confidence\030\t \001(\002B\002\030\001\0228\n" + + "\005match\030\017 \001(\0132).google.cloud.dialogflow.cx.v3beta1.Match\0220\n" + + "\017diagnostic_info\030\n" + + " \001(\0132\027.google.protobuf.Struct\022K\n" + + "\017generative_info\030!" + + " \001(\01322.google.cloud.dialogflow.cx.v3beta1.GenerativeInfo\022^\n" + + "\031sentiment_analysis_result\030\021" + + " \001(\0132;.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult\022O\n" + + "\021advanced_settings\030\025" + + " \001(\01324.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings\022\035\n" + + "\025allow_answer_feedback\030 \001(\010\022j\n" + + "\035data_store_connection_signals\030# \001(\0132>.google.cloud.d" + + "ialogflow.cx.v3beta1.DataStoreConnectionSignalsB\003\340A\001\022I\n" + + "\014trace_blocks\030% \003(\0132..goo" + + "gle.cloud.dialogflow.cx.v3beta1.TraceBlockB\003\340A\001B\007\n" + + "\005query\"\036\n" + + "\tTextInput\022\021\n" + + "\004text\030\001 \001(\tB\003\340A\002\"G\n" + + "\013IntentInput\0228\n" + + "\006intent\030\001 \001(\tB(\340A\002\372A\"\n" + + " dialogflow.googleapis.com/Intent\"f\n\n" + + "AudioInput\022I\n" + + "\006config\030\001 \001(\01324.google" + + ".cloud.dialogflow.cx.v3beta1.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" + + "\tDtmfInput\022\016\n" + + "\006digits\030\001 \001(\t\022\024\n" + + "\014finish_digit\030\002 \001(\t\"\242\003\n" + + "\005Match\022:\n" + + "\006intent\030\001 \001(\0132*.google.cloud.dialogflow.cx.v3beta1.Intent\022\r\n" + + "\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\022G\n\n" + + "match_type\030\004 \001(\0162" + + "3.google.cloud.dialogflow.cx.v3beta1.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" + + "\006INTENT\020\001\022\021\n\r" + + "DIRECT_INTENT\020\002\022\025\n" + + "\021PARAMETER_FILLING\020\003\022\014\n" + + "\010NO_MATCH\020\004\022\014\n" + + "\010NO_INPUT\020\005\022\t\n" + + "\005EVENT\020\006\022\027\n" + + "\023KNOWLEDGE_CONNECTOR\020\010\022\014\n" + + "\010PLAYBOOK\020\t\"\210\002\n" + + "\022MatchIntentRequest\022:\n" + + "\007session\030\001 \001(\tB)\340A\002\372A#\n" + + "!dialogflow.googleapis.com/Session\022I\n" + + "\014query_params\030\002 \001(\01323.google" + + ".cloud.dialogflow.cx.v3beta1.QueryParameters\022H\n" + + "\013query_input\030\003 \001(\0132..google.cloud" + + ".dialogflow.cx.v3beta1.QueryInputB\003\340A\002\022!\n" + + "\031persist_parameter_changes\030\005 \001(\010\"\232\002\n" + + "\023MatchIntentResponse\022\016\n" + + "\004text\030\001 \001(\tH\000\022?\n" + + "\016trigger_intent\030\002 \001(\tB%\372A\"\n" + + " dialogflow.googleapis.com/IntentH\000\022\024\n\n" + + "transcript\030\003 \001(\tH\000\022\027\n\r" + + "trigger_event\030\006 \001(\tH\000\022:\n" + + "\007matches\030\004 \003(\0132).google.cloud.dialogflow.cx.v3beta1.Match\022>\n" + + "\014current_page\030\005 \001(\0132(.google.cloud.dialogflow.cx.v3beta1.PageB\007\n" + + "\005query\"\372\001\n" + + "\024FulfillIntentRequest\022T\n" + + "\024match_intent_request\030\001" + + " \001(\01326.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest\0228\n" + + "\005match\030\002 \001(\0132).google.cloud.dialogflow.cx.v3beta1.Match\022R\n" + + "\023output_audio_config\030\003 \001(\01325.g" + + "oogle.cloud.dialogflow.cx.v3beta1.OutputAudioConfig\"\335\001\n" + + "\025FulfillIntentResponse\022\023\n" + + "\013response_id\030\001 \001(\t\022E\n" + + "\014query_result\030\002 \001(\013" + + "2/.google.cloud.dialogflow.cx.v3beta1.QueryResult\022\024\n" + + "\014output_audio\030\003 \001(\014\022R\n" + + "\023output_audio_config\030\004" + + " \001(\01325.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig\";\n" + + "\027SentimentAnalysisResult\022\r\n" + + "\005score\030\001 \001(\002\022\021\n" + + "\tmagnitude\030\002 \001(\002*\275\001\n" + + "\030DetectIntentResponseView\022+\n" + + "\'DETECT_INTENT_RESPONSE_VIEW_UNSPECIFIED\020\000\022$\n" + + " DETECT_INTENT_RESPONSE_VIEW_FULL\020\001\022%\n" + + "!DETECT_INTENT_RESPONSE_VIEW_BASIC\020\002\022\'\n" + + "#DETECT_INTENT_RESPONSE_VIEW_DEFAULT\020\0032\343\016\n" + + "\010Sessions\022\272\002\n" + + "\014DetectIntent\0227.google.cloud.dialogflow.cx.v3beta1.Dete" + + "ctIntentRequest\0328.google.cloud.dialogflo" + + "w.cx.v3beta1.DetectIntentResponse\"\266\001\202\323\344\223" + + "\002\257\001\"J/v3beta1/{session=projects/*/locati" + + "ons/*/agents/*/sessions/*}:detectIntent:\001*Z^\"Y/v3beta1/{session=projects/*/locat" + + "ions/*/agents/*/environments/*/sessions/*}:detectIntent:\001*\022\351\002\n" + + "\033ServerStreamingDetectIntent\0227.google.cloud.dialogflow.cx." + + "v3beta1.DetectIntentRequest\0328.google.cloud.dialogflow.cx.v3beta1.DetectIntentRes" + + "ponse\"\324\001\202\323\344\223\002\315\001\"Y/v3beta1/{session=proje" + + "cts/*/locations/*/agents/*/sessions/*}:serverStreamingDetectIntent:\001*Zm\"h/v3beta" + + "1/{session=projects/*/locations/*/agents" + + "/*/environments/*/sessions/*}:serverStreamingDetectIntent:\001*0\001\022\242\001\n" + + "\025StreamingDetectIntent\022@.google.cloud.dialogflow.cx.v3" + + "beta1.StreamingDetectIntentRequest\032A.goo" + + "gle.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse\"\000(\0010\001\022\265\002\n" + + "\013MatchIntent\0226.google.cloud.dialogflow.cx.v3beta1" + + ".MatchIntentRequest\0327.google.cloud.dialo" + + "gflow.cx.v3beta1.MatchIntentResponse\"\264\001\202" + + "\323\344\223\002\255\001\"I/v3beta1/{session=projects/*/loc" + + "ations/*/agents/*/sessions/*}:matchIntent:\001*Z]\"X/v3beta1/{session=projects/*/loc" + + "ations/*/agents/*/environments/*/sessions/*}:matchIntent:\001*\022\351\002\n\r" + + "FulfillIntent\0228.google.cloud.dialogflow.cx.v3beta1.Fulfi" + + "llIntentRequest\0329.google.cloud.dialogflo" + + "w.cx.v3beta1.FulfillIntentResponse\"\342\001\202\323\344" + + "\223\002\333\001\"`/v3beta1/{match_intent_request.ses" + + "sion=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent:\001*Zt\"o/v3beta1/{m" + + "atch_intent_request.session=projects/*/l" + + "ocations/*/agents/*/environments/*/sessions/*}:fulfillIntent:\001*\022\352\001\n" + + "\024SubmitAnswerFeedback\022?.google.cloud.dialogflow.cx.v3" + + "beta1.SubmitAnswerFeedbackRequest\0322.google.cloud.dialogflow.cx.v3beta1.AnswerFee" + + "dback\"]\202\323\344\223\002W\"R/v3beta1/{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\344\004\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B\014SessionProtoP" + + "\001Z6cloud.google.com/go/dialogflow/cx/api" + + "v3beta1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Di" + + "alogflow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::CX::V3beta1\352A\324\001\n" + + "!dialogflow.googleapis.com/Session\022Iprojects/{project}/" + + "locations/{location}/agents/{agent}/sessions/{session}\022dprojects/{project}/locat" + + "ions/{location}/agents/{agent}/environme" + + "nts/{environment}/sessions/{session}\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{project}/locations/{locati" + + "on}/dataStores/{data_store}\022Xprojects/{project}/locations/{location}/collections" + + "/{collection}/dataStores/{data_store}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -533,6 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3beta1.TraceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -786,6 +823,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdvancedSettings", "AllowAnswerFeedback", "DataStoreConnectionSignals", + "TraceBlocks", "Query", }); internal_static_google_cloud_dialogflow_cx_v3beta1_TextInput_descriptor = @@ -898,6 +936,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadata.java new file mode 100644 index 000000000000..f47406b06b27 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadata.java @@ -0,0 +1,604 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
                                                        + * Metadata of the speech-to-text and text-to-speech processing.
                                                        + * 
                                                        + * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata} + */ +@com.google.protobuf.Generated +public final class SpeechProcessingMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.SpeechProcessingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata build() { + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata result = + new com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) + private static final com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadataOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechProcessingMetadataOrBuilder.java new file mode 100644 index 000000000000..0bdc71ae191a --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +@com.google.protobuf.Generated +public interface SpeechProcessingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlock.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlock.java new file mode 100644 index 000000000000..0d115d0bcc93 --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlock.java @@ -0,0 +1,3374 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
                                                        + * 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.v3beta1.TraceBlock} + */ +@com.google.protobuf.Generated +public final class TraceBlock extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                        +   * Metadata of the playbook trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + + public static final int FLOW_TRACE_METADATA_FIELD_NUMBER = 2; + + /** + * + * + *
                                                        +   * Metadata of the flow trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata getFlowTraceMetadata() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                        +   * Metadata of the flow trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata + getSpeechProcessingMetadata() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } + + /** + * + * + *
                                                        +   * Metadata of the speech-to-text and speech-to-text processing.
                                                        +   * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3beta1.OutputState result = + com.google.cloud.dialogflow.cx.v3beta1.OutputState.forNumber(endState_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.OutputState.OUTPUT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, endState_); + } + if (traceMetadataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata) traceMetadata_); + } + if (traceMetadataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock other = + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TraceBlock) + com.google.cloud.dialogflow.cx.v3beta1.TraceBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.class, + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlock getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlock build() { + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TraceBlock buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock result = + new com.google.cloud.dialogflow.cx.v3beta1.TraceBlock(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.TraceBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TraceBlock other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder> + playbookTraceMetadataBuilder_; + + /** + * + * + *
                                                        +     * Metadata of the playbook trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return The playbookTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata getPlaybookTraceMetadata() { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 1) { + return playbookTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the playbook trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder setPlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public Builder mergePlaybookTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata value) { + if (playbookTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 1 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata + .getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.Builder + getPlaybookTraceMetadataBuilder() { + return internalGetPlaybookTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                        +     * Metadata of the playbook trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 1) && (playbookTraceMetadataBuilder_ != null)) { + return playbookTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the playbook trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder> + internalGetPlaybookTraceMetadataFieldBuilder() { + if (playbookTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 1)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.getDefaultInstance(); + } + playbookTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 1; + onChanged(); + return playbookTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder> + flowTraceMetadataBuilder_; + + /** + * + * + *
                                                        +     * Metadata of the flow trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata getFlowTraceMetadata() { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 2) { + return flowTraceMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the flow trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder setFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + public Builder mergeFlowTraceMetadata( + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata value) { + if (flowTraceMetadataBuilder_ == null) { + if (traceMetadataCase_ == 2 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.Builder + getFlowTraceMetadataBuilder() { + return internalGetFlowTraceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                        +     * Metadata of the flow trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder + getFlowTraceMetadataOrBuilder() { + if ((traceMetadataCase_ == 2) && (flowTraceMetadataBuilder_ != null)) { + return flowTraceMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 2) { + return (com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the flow trace.
                                                        +     * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder> + internalGetFlowTraceMetadataFieldBuilder() { + if (flowTraceMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 2)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.getDefaultInstance(); + } + flowTraceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata) traceMetadata_, + getParentForChildren(), + isClean()); + traceMetadata_ = null; + } + traceMetadataCase_ = 2; + onChanged(); + return flowTraceMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder> + speechProcessingMetadataBuilder_; + + /** + * + * + *
                                                        +     * Metadata of the speech-to-text and speech-to-text processing.
                                                        +     * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata + getSpeechProcessingMetadata() { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } else { + if (traceMetadataCase_ == 8) { + return speechProcessingMetadataBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the speech-to-text and speech-to-text processing.
                                                        +     * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder setSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public Builder mergeSpeechProcessingMetadata( + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata value) { + if (speechProcessingMetadataBuilder_ == null) { + if (traceMetadataCase_ == 8 + && traceMetadata_ + != com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata + .getDefaultInstance()) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.Builder + getSpeechProcessingMetadataBuilder() { + return internalGetSpeechProcessingMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
                                                        +     * Metadata of the speech-to-text and speech-to-text processing.
                                                        +     * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder() { + if ((traceMetadataCase_ == 8) && (speechProcessingMetadataBuilder_ != null)) { + return speechProcessingMetadataBuilder_.getMessageOrBuilder(); + } else { + if (traceMetadataCase_ == 8) { + return (com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata) traceMetadata_; + } + return com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
                                                        +     * Metadata of the speech-to-text and speech-to-text processing.
                                                        +     * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder> + internalGetSpeechProcessingMetadataFieldBuilder() { + if (speechProcessingMetadataBuilder_ == null) { + if (!(traceMetadataCase_ == 8)) { + traceMetadata_ = + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.getDefaultInstance(); + } + speechProcessingMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata.Builder, + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action, + com.google.cloud.dialogflow.cx.v3beta1.Action.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ActionOrBuilder> + actionsBuilder_; + + /** + * + * + *
                                                        +     * The actions performed by the agent and the user during this session.
                                                        +     * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder setActions(int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder setActions( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder addActions(com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder addActions(int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder addActions( + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public Builder addActions( + int index, com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Action.Builder addActionsBuilder() { + return internalGetActionsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Action.getDefaultInstance()); + } + + /** + * + * + *
                                                        +     * The actions performed by the agent and the user during this session.
                                                        +     * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Action.Builder addActionsBuilder(int index) { + return internalGetActionsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3beta1.Action.getDefaultInstance()); + } + + /** + * + * + *
                                                        +     * The actions performed by the agent and the user during this session.
                                                        +     * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + public java.util.List + getActionsBuilderList() { + return internalGetActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.Action, + com.google.cloud.dialogflow.cx.v3beta1.Action.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ActionOrBuilder> + internalGetActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.cx.v3beta1.Action, + com.google.cloud.dialogflow.cx.v3beta1.Action.Builder, + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.OutputState getEndState() { + com.google.cloud.dialogflow.cx.v3beta1.OutputState result = + com.google.cloud.dialogflow.cx.v3beta1.OutputState.forNumber(endState_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputState.UNRECOGNIZED + : result; + } + + /** + * + * + *
                                                        +     * Optional. Output only. The end state of the trace block.
                                                        +     * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.TraceBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TraceBlock) + private static final com.google.cloud.dialogflow.cx.v3beta1.TraceBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.TraceBlock(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TraceBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlockOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlockOrBuilder.java new file mode 100644 index 000000000000..79efb3c7401c --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceBlockOrBuilder.java @@ -0,0 +1,401 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language 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/v3beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.cx.v3beta1; + +@com.google.protobuf.Generated +public interface TraceBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.TraceBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                        +   * Metadata of the playbook trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return Whether the playbookTraceMetadata field is set. + */ + boolean hasPlaybookTraceMetadata(); + + /** + * + * + *
                                                        +   * Metadata of the playbook trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + * + * @return The playbookTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata getPlaybookTraceMetadata(); + + /** + * + * + *
                                                        +   * Metadata of the playbook trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadata playbook_trace_metadata = 1; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataOrBuilder + getPlaybookTraceMetadataOrBuilder(); + + /** + * + * + *
                                                        +   * Metadata of the flow trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return Whether the flowTraceMetadata field is set. + */ + boolean hasFlowTraceMetadata(); + + /** + * + * + *
                                                        +   * Metadata of the flow trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + * + * @return The flowTraceMetadata. + */ + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata getFlowTraceMetadata(); + + /** + * + * + *
                                                        +   * Metadata of the flow trace.
                                                        +   * 
                                                        + * + * .google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadata flow_trace_metadata = 2; + */ + com.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataOrBuilder getFlowTraceMetadataOrBuilder(); + + /** + * + * + *
                                                        +   * Metadata of the speech-to-text and speech-to-text processing.
                                                        +   * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + * + * @return The speechProcessingMetadata. + */ + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata getSpeechProcessingMetadata(); + + /** + * + * + *
                                                        +   * Metadata of the speech-to-text and speech-to-text processing.
                                                        +   * 
                                                        + * + * + * .google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadata speech_processing_metadata = 8; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.SpeechProcessingMetadataOrBuilder + getSpeechProcessingMetadataOrBuilder(); + + /** + * + * + *
                                                        +   * The actions performed by the agent and the user during this session.
                                                        +   * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + java.util.List getActionsList(); + + /** + * + * + *
                                                        +   * The actions performed by the agent and the user during this session.
                                                        +   * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3beta1.Action getActions(int index); + + /** + * + * + *
                                                        +   * The actions performed by the agent and the user during this session.
                                                        +   * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + int getActionsCount(); + + /** + * + * + *
                                                        +   * The actions performed by the agent and the user during this session.
                                                        +   * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + java.util.List + getActionsOrBuilderList(); + + /** + * + * + *
                                                        +   * The actions performed by the agent and the user during this session.
                                                        +   * 
                                                        + * + * repeated .google.cloud.dialogflow.cx.v3beta1.Action actions = 3; + */ + com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.OutputState end_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endState. + */ + com.google.cloud.dialogflow.cx.v3beta1.OutputState getEndState(); + + com.google.cloud.dialogflow.cx.v3beta1.TraceBlock.TraceMetadataCase getTraceMetadataCase(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceProto.java index cfcd61ca66e6..4a411ef8887d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TraceProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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_v3beta1_TraceBlock_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_Action_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -161,44 +177,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google/cloud/dialogflow/cx/v3beta1/trace.proto\022\"google.cloud.dialogflow.cx.v3b" + "eta1\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032>google/cloud/dialogflow/cx/v3beta1/data_store_connecti" - + "on.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\310\017\n" + + "on.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\235\005\n\n" + + "TraceBlock\022\\\n" + + "\027playbook_trace_metadata\030\001 \001(\0132" + + "9.google.cloud.dialogflow.cx.v3beta1.PlaybookTraceMetadataH\000\022T\n" + + "\023flow_trace_metadata\030\002" + + " \001(\01325.google.cloud.dialogflow.cx.v3beta1.FlowTraceMetadataH\000\022b\n" + + "\032speech_processing_metadata\030\010 \001(\0132<.google.cloud.di" + + "alogflow.cx.v3beta1.SpeechProcessingMetadataH\000\022;\n" + + "\007actions\030\003 \003(\0132*.google.cloud.dialogflow.cx.v3beta1.Action\0223\n\n" + + "start_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + + "complete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n" + + "\020input_parameters\030\t \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + + "\021output_parameters\030\006" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022J\n" + + "\tend_state\030\007 \001(\0162/.google.cl" + + "oud.dialogflow.cx.v3beta1.OutputStateB\006\340A\003\340A\001B\020\n" + + "\016trace_metadata\"5\n" + + "\030SpeechProcessingMetadata\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\003\"p\n" + + "\025PlaybookTraceMetadata\022<\n" + + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dialogflow.googleapis.com/Playbook\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\"d\n" + + "\021FlowTraceMetadata\0224\n" + + "\004flow\030\001 \001(\tB&\340A\002\372A \n" + + "\036dialogflow.googleapis.com/Flow\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\"\310\017\n" + "\006Action\022P\n" - + "\016user_utterance\030\001 \001(\01321.google.clou" - + "d.dialogflow.cx.v3beta1.UserUtteranceB\003\340A\001H\000\022?\n" - + "\005event\030\007" - + " \001(\0132).google.cloud.dialogflow.cx.v3beta1.EventB\003\340A\001H\000\022R\n" - + "\017agent_utterance\030\002" - + " \001(\01322.google.cloud.dialogflow.cx.v3beta1.AgentUtteranceB\003\340A\001H\000\022D\n" - + "\010tool_use\030\003" - + " \001(\0132+.google.cloud.dialogflow.cx.v3beta1.ToolUseB\003\340A\001H\000\022G\n" - + "\010llm_call\030\016 \001(" - + "\0132+.google.cloud.dialogflow.cx.v3beta1.LlmCallB\006\340A\003\340A\001H\000\022V\n" - + "\014intent_match\030\021 \001(\01326" - + ".google.cloud.dialogflow.cx.v3beta1.Action.IntentMatchB\006\340A\003\340A\001H\000\022_\n" - + "\021flow_state_update\030\022 \001(\0132:.google.cloud.dialogflow.cx" - + ".v3beta1.Action.FlowStateUpdateB\006\340A\003\340A\001H\000\022Z\n" - + "\023playbook_invocation\030\004 \001(\01326.google." - + "cloud.dialogflow.cx.v3beta1.PlaybookInvocationB\003\340A\001H\000\022R\n" - + "\017flow_invocation\030\005 \001(\01322" - + ".google.cloud.dialogflow.cx.v3beta1.FlowInvocationB\003\340A\001H\000\022Z\n" - + "\023playbook_transition\030\014" - + " \001(\01326.google.cloud.dialogflow.cx.v3beta1.PlaybookTransitionB\003\340A\001H\000\022R\n" + + "\016user_utterance\030\001" + + " \001(\01321.google.cloud.dialogflow.cx.v3beta1.UserUtteranceB\003\340A\001H\000\022?\n" + + "\005event\030\007 \001" + + "(\0132).google.cloud.dialogflow.cx.v3beta1.EventB\003\340A\001H\000\022R\n" + + "\017agent_utterance\030\002 \001(\01322." + + "google.cloud.dialogflow.cx.v3beta1.AgentUtteranceB\003\340A\001H\000\022D\n" + + "\010tool_use\030\003 \001(\0132+.goo" + + "gle.cloud.dialogflow.cx.v3beta1.ToolUseB\003\340A\001H\000\022G\n" + + "\010llm_call\030\016 \001(\0132+.google.cloud." + + "dialogflow.cx.v3beta1.LlmCallB\006\340A\003\340A\001H\000\022V\n" + + "\014intent_match\030\021 \001(\01326.google.cloud.dia" + + "logflow.cx.v3beta1.Action.IntentMatchB\006\340A\003\340A\001H\000\022_\n" + + "\021flow_state_update\030\022 \001(\0132:.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdateB\006\340A\003\340A\001H\000\022Z\n" + + "\023playbook_invocation\030\004" + + " \001(\01326.google.cloud.dialogflow.cx.v3beta1.PlaybookInvocationB\003\340A\001H\000\022R\n" + + "\017flow_invocation\030\005 \001(\01322.google.cloud.dia" + + "logflow.cx.v3beta1.FlowInvocationB\003\340A\001H\000\022Z\n" + + "\023playbook_transition\030\014 \001(\01326.google.c" + + "loud.dialogflow.cx.v3beta1.PlaybookTransitionB\003\340A\001H\000\022R\n" + "\017flow_transition\030\r" - + " \001(\01322.google.cloud.dialogflow.cx.v3beta1.FlowTransitionB\003\340A\001H\000\022B\n" - + "\003tts\030\023" - + " \001(\0132..google.cloud.dialogflow.cx.v3beta1.Action.TTSB\003\340A\001H\000\022B\n" - + "\003stt\030\024 \001(\0132..goo" - + "gle.cloud.dialogflow.cx.v3beta1.Action.STTB\003\340A\001H\000\022\031\n" + + " \001(\01322." + + "google.cloud.dialogflow.cx.v3beta1.FlowTransitionB\003\340A\001H\000\022B\n" + + "\003tts\030\023 \001(\0132..google.c" + + "loud.dialogflow.cx.v3beta1.Action.TTSB\003\340A\001H\000\022B\n" + + "\003stt\030\024" + + " \001(\0132..google.cloud.dialogflow.cx.v3beta1.Action.STTB\003\340A\001H\000\022\031\n" + "\014display_name\030\017 \001(\tB\003\340A\003\0223\n\n" + "start_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + "complete_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n" - + "\023sub_execution_steps\030\013" - + " \003(\0132(.google.cloud.dialogflow.cx.v3beta1.SpanB\003\340A\001\022B\n" - + "\006status\030\020 \001(\0132*." - + "google.cloud.dialogflow.cx.v3beta1.StatusB\006\340A\001\340A\003\032\353\001\n" + + "\023sub_execution_steps\030\013 \003(\0132(." + + "google.cloud.dialogflow.cx.v3beta1.SpanB\003\340A\001\022B\n" + + "\006status\030\020" + + " \001(\0132*.google.cloud.dialogflow.cx.v3beta1.StatusB\006\340A\001\340A\003\032\353\001\n" + "\013IntentMatch\022]\n" - + "\017matched_intents\030\001 \003(\0132D.google.cloud.dialogflow.cx." - + "v3beta1.Action.IntentMatch.MatchedIntent\032}\n\r" + + "\017matched_intents\030\001 \003(\0132D.goog" + + "le.cloud.dialogflow.cx.v3beta1.Action.IntentMatch.MatchedIntent\032}\n\r" + "MatchedIntent\022\021\n" + "\tintent_id\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\r\n" @@ -206,12 +249,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023generative_fallback\030\004 \001(\0132\027.google.protobuf.Struct\032\210\003\n" + "\017FlowStateUpdate\022\022\n\n" + "event_type\030\001 \001(\t\022X\n\n" - + "page_state\030\002 \001(\0132D.google.clo" - + "ud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.PageState\0223\n" + + "page_state\030\002 \001(\0132D.google.cloud.dialogflow.cx." + + "v3beta1.Action.FlowStateUpdate.PageState\0223\n" + "\022updated_parameters\030\003 \001(\0132\027.google.protobuf.Struct\022\023\n" + "\013destination\030\004 \001(\t\022^\n\r" - + "function_call\030\005 \001(\0132G.goo" - + "gle.cloud.dialogflow.cx.v3beta1.Action.FlowStateUpdate.FunctionCall\032?\n" + + "function_call\030\005 \001(\0132G.google.cloud.dialogf" + + "low.cx.v3beta1.Action.FlowStateUpdate.FunctionCall\032?\n" + "\tPageState\022\014\n" + "\004page\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\016\n" @@ -241,29 +284,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \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\022d\n" - + "\025data_store_tool_trace\030\007 \001(\0132>.googl" - + "e.cloud.dialogflow.cx.v3beta1.ToolUse.DataStoreToolTraceB\003\340A\001H\000\022_\n" - + "\022webhook_tool_trace\030\t \001(\0132<.google.cloud.dialogflow.cx" - + ".v3beta1.ToolUse.WebhookToolTraceB\003\340A\001H\000\032\200\001\n" + + "\025data_store_tool_trace\030\007 \001(\0132>.google.cloud.dialogflo" + + "w.cx.v3beta1.ToolUse.DataStoreToolTraceB\003\340A\001H\000\022_\n" + + "\022webhook_tool_trace\030\t \001(\0132<.goo" + + "gle.cloud.dialogflow.cx.v3beta1.ToolUse.WebhookToolTraceB\003\340A\001H\000\032\200\001\n" + "\022DataStoreToolTrace\022j\n" - + "\035data_store_connection_signals\030\001 \001(\0132>.google.cloud.di" - + "alogflow.cx.v3beta1.DataStoreConnectionSignalsB\003\340A\001\032F\n" + + "\035data_store_connection_signals\030\001" + + " \001(\0132>.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignalsB\003\340A\001\032F\n" + "\020WebhookToolTrace\022\030\n" + "\013webhook_tag\030\001 \001(\tB\003\340A\001\022\030\n" + "\013webhook_uri\030\002 \001(\tB\003\340A\001B\013\n" + "\tToolTrace\"\255\004\n" + "\007LlmCall\022X\n" - + "\022retrieved_examples\030\001 \003(\0132<.google.cloud.dialogfl" - + "ow.cx.v3beta1.LlmCall.RetrievedExample\022K\n" - + "\013token_count\030\002" - + " \001(\01326.google.cloud.dialogflow.cx.v3beta1.LlmCall.TokenCount\022\r\n" + + "\022retrieved_examples\030\001 \003(\0132" + + "<.google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample\022K\n" + + "\013token_count\030\002 \001" + + "(\01326.google.cloud.dialogflow.cx.v3beta1.LlmCall.TokenCount\022\r\n" + "\005model\030\003 \001(\t\022\023\n" + "\013temperature\030\004 \001(\002\032\275\001\n" + "\020RetrievedExample\022\022\n\n" + "example_id\030\001 \001(\t\022\034\n" + "\024example_display_name\030\002 \001(\t\022Q\n" - + "\022retrieval_strategy\030\003" - + " \001(\01625.google.cloud.dialogflow.cx.v3beta1.RetrievalStrategy\022$\n" + + "\022retrieval_strategy\030\003 \001(\01625.goog" + + "le.cloud.dialogflow.cx.v3beta1.RetrievalStrategy\022$\n" + "\027matched_retrieval_label\030\016 \001(\tB\003\340A\001\032\226\001\n\n" + "TokenCount\022\037\n" + "\027total_input_token_count\030\001 \001(\003\022(\n" @@ -274,12 +317,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022N\n" - + "\016playbook_input\030\002 \001(\01321.googl" - + "e.cloud.dialogflow.cx.v3beta1.PlaybookInputB\003\340A\001\022P\n" - + "\017playbook_output\030\003 \001(\01322.goog" - + "le.cloud.dialogflow.cx.v3beta1.PlaybookOutputB\003\340A\001\022L\n" - + "\016playbook_state\030\004 \001(\0162/.goo" - + "gle.cloud.dialogflow.cx.v3beta1.OutputStateB\003\340A\002\"\252\002\n" + + "\016playbook_input\030\002" + + " \001(\01321.google.cloud.dialogflow.cx.v3beta1.PlaybookInputB\003\340A\001\022P\n" + + "\017playbook_output\030\003" + + " \001(\01322.google.cloud.dialogflow.cx.v3beta1.PlaybookOutputB\003\340A\001\022L\n" + + "\016playbook_state\030\004" + + " \001(\0162/.google.cloud.dialogflow.cx.v3beta1.OutputStateB\003\340A\002\"\252\002\n" + "\016FlowInvocation\0224\n" + "\004flow\030\001 \001(\tB&\340A\002\372A \n" + "\036dialogflow.googleapis.com/Flow\022\031\n" @@ -288,8 +331,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \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\022H\n\n" - + "flow_state\030\004" - + " \001(\0162/.google.cloud.dialogflow.cx.v3beta1.OutputStateB\003\340A\002\"\253\001\n" + + "flow_state\030\004 \001(\0162/" + + ".google.cloud.dialogflow.cx.v3beta1.OutputStateB\003\340A\002\"\253\001\n" + "\022PlaybookTransition\022<\n" + "\010playbook\030\001 \001(\tB*\340A\002\372A$\n" + "\"dialogflow.googleapis.com/Playbook\022\031\n" @@ -308,8 +351,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\214\002\n" + "\016PlaybookOutput\022\036\n" + "\021execution_summary\030\001 \001(\tB\003\340A\001\022K\n" - + "\005state\030\002 \001(\01628.google." - + "cloud.dialogflow.cx.v3beta1.PlaybookOutput.StateB\002\030\001\0227\n" + + "\005state\030\002" + + " \001(\01628.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.StateB\002\030\001\0227\n" + "\021action_parameters\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\"T\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\006\n" @@ -320,8 +363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Span\022\014\n" + "\004name\030\001 \001(\t\022\014\n" + "\004tags\030\002 \003(\t\022@\n" - + "\007metrics\030\003" - + " \003(\0132/.google.cloud.dialogflow.cx.v3beta1.NamedMetric\022.\n\n" + + "\007metrics\030\003 \003(\0132/.googl" + + "e.cloud.dialogflow.cx.v3beta1.NamedMetric\022.\n\n" + "start_time\030\004 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + "complete_time\030\005 \001(\0132\032.google.protobuf.Timestamp\"P\n" + "\013NamedMetric\022\014\n" @@ -329,8 +372,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132\026.google.protobuf.Value\022\014\n" + "\004unit\030\003 \001(\t\"U\n" + "\006Status\022K\n" - + "\texception\030\001 \001(\01323.google.cl" - + "oud.dialogflow.cx.v3beta1.ExceptionDetailB\003\340A\001\"-\n" + + "\texception\030\001" + + " \001(\01323.google.cloud.dialogflow.cx.v3beta1.ExceptionDetailB\003\340A\001\"-\n" + "\017ExceptionDetail\022\032\n\r" + "error_message\030\001 \001(\tB\003\340A\001*\253\001\n" + "\013OutputState\022\034\n" @@ -346,10 +389,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006STATIC\020\002\022\t\n" + "\005NEVER\020\003B\301\001\n" + "&com.google.cloud.dialogflow.cx.v3beta1B\n" - + "TraceProtoP\001Z6cloud.google.com/go/d" - + "ialogflow/cx/apiv3beta1/cxpb;cxpb\242\002\002DF\252\002" - + "\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&Go" - + "ogle::Cloud::Dialogflow::CX::V3beta1b\006proto3" + + "TraceProtoP\001Z6cloud.google.com/go/dialogflow/cx/apiv" + + "3beta1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dia" + + "logflow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflow::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -361,8 +403,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_dialogflow_cx_v3beta1_Action_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_TraceBlock_descriptor, + new java.lang.String[] { + "PlaybookTraceMetadata", + "FlowTraceMetadata", + "SpeechProcessingMetadata", + "Actions", + "StartTime", + "CompleteTime", + "InputParameters", + "OutputParameters", + "EndState", + "TraceMetadata", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_SpeechProcessingMetadata_descriptor, + new java.lang.String[] { + "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTraceMetadata_descriptor, + new java.lang.String[] { + "Playbook", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTraceMetadata_descriptor, + new java.lang.String[] { + "Flow", "DisplayName", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Action_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_dialogflow_cx_v3beta1_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Action_descriptor, @@ -443,7 +526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3beta1_Action_STT_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dialogflow_cx_v3beta1_UserUtterance_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(5); internal_static_google_cloud_dialogflow_cx_v3beta1_UserUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_UserUtterance_descriptor, @@ -451,7 +534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "AudioTokens", "Audio", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Event_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(6); internal_static_google_cloud_dialogflow_cx_v3beta1_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Event_descriptor, @@ -459,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Event", "Text", "Payload", }); internal_static_google_cloud_dialogflow_cx_v3beta1_AgentUtterance_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(7); internal_static_google_cloud_dialogflow_cx_v3beta1_AgentUtterance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_AgentUtterance_descriptor, @@ -467,7 +550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "RequireGeneration", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(8); internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_descriptor, @@ -498,7 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WebhookTag", "WebhookUri", }); internal_static_google_cloud_dialogflow_cx_v3beta1_LlmCall_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(9); internal_static_google_cloud_dialogflow_cx_v3beta1_LlmCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_LlmCall_descriptor, @@ -525,7 +608,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalOutputTokenCount", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(10); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_descriptor, @@ -533,7 +616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", "PlaybookInput", "PlaybookOutput", "PlaybookState", }); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(11); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_descriptor, @@ -541,7 +624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Flow", "DisplayName", "InputActionParameters", "OutputActionParameters", "FlowState", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTransition_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(12); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookTransition_descriptor, @@ -549,7 +632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "DisplayName", "InputActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTransition_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTransition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_FlowTransition_descriptor, @@ -557,7 +640,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Flow", "DisplayName", "InputActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInput_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(14); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInput_descriptor, @@ -565,7 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrecedingConversationSummary", "ActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookOutput_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(15); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookOutput_descriptor, @@ -573,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionSummary", "State", "ActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Span_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(16); internal_static_google_cloud_dialogflow_cx_v3beta1_Span_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Span_descriptor, @@ -581,7 +664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Tags", "Metrics", "StartTime", "CompleteTime", }); internal_static_google_cloud_dialogflow_cx_v3beta1_NamedMetric_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(17); internal_static_google_cloud_dialogflow_cx_v3beta1_NamedMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_NamedMetric_descriptor, @@ -589,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Value", "Unit", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Status_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(18); internal_static_google_cloud_dialogflow_cx_v3beta1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Status_descriptor, @@ -597,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Exception", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ExceptionDetail_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(19); internal_static_google_cloud_dialogflow_cx_v3beta1_ExceptionDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ExceptionDetail_descriptor, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto index 1b72149703b8..18701c220c17 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto @@ -283,6 +283,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-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index b8d29a9680a3..d0d5ec02200c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -31,6 +31,7 @@ import "google/cloud/dialogflow/cx/v3beta1/page.proto"; import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; import "google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto"; import "google/cloud/dialogflow/cx/v3beta1/tool_call.proto"; +import "google/cloud/dialogflow/cx/v3beta1/trace.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; @@ -1167,6 +1168,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-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/trace.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/trace.proto index 91e1b9bf02b4..076b25429ebe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/trace.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/trace.proto @@ -30,6 +30,83 @@ option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; +// 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]; +} + // Action performed by end user or Dialogflow agent in the conversation. message Action { // Stores metadata of the intent match action. diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index b5881f064529..a431e3f79ff5 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.83.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.84.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-discoveryengine/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-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.84.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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index 11d88775105e..b76130ee93da 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -1294,6 +1294,8 @@ public interface DataStoreSpecOrBuilder * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1311,6 +1313,8 @@ public interface DataStoreSpecOrBuilder * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1350,6 +1354,56 @@ public interface DataStoreSpecOrBuilder * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec(); + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder(); } /** @@ -1404,6 +1458,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder.class); } + private int bitField0_; public static final int DATA_STORE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1416,6 +1471,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1444,6 +1501,8 @@ public java.lang.String getDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1522,6 +1581,72 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int BOOST_SPEC_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
              +     * Optional. Boost specification to boost certain documents.
              +     * For more information on boosting, see
              +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +     * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1542,6 +1667,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getBoostSpec()); + } getUnknownFields().writeTo(output); } @@ -1557,6 +1685,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBoostSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1575,6 +1706,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDataStore().equals(other.getDataStore())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1590,6 +1725,10 @@ public int hashCode() { hash = (53 * hash) + getDataStore().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1725,10 +1864,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.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) { + internalGetBoostSpecFieldBuilder(); + } } @java.lang.Override @@ -1737,6 +1885,11 @@ public Builder clear() { bitField0_ = 0; dataStore_ = ""; filter_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } return this; } @@ -1782,6 +1935,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.filter_ = filter_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1810,6 +1969,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1848,6 +2010,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 42 + case 50: + { + input.readMessage( + internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1876,6 +2045,8 @@ public Builder mergeFrom( * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1903,6 +2074,8 @@ public java.lang.String getDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1930,6 +2103,8 @@ public com.google.protobuf.ByteString getDataStoreBytes() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1956,6 +2131,8 @@ public Builder setDataStore(java.lang.String value) { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -1978,6 +2155,8 @@ public Builder clearDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. *
              * * @@ -2119,6 +2298,243 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + } + + /** + * + * + *
              +       * Optional. Boost specification to boost certain documents.
              +       * For more information on boosting, see
              +       * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
              +       * 
              + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + internalGetBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) } @@ -15150,7 +15566,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=439 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -15168,7 +15584,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=443 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 * @return The referenceOnly. */ @java.lang.Deprecated @@ -15256,7 +15672,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=439 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 * @return The maxSnippetCount. */ @java.lang.Override @@ -15280,7 +15696,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=443 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 * @return The referenceOnly. */ @java.lang.Override @@ -15726,7 +16142,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=439 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 * @return The maxSnippetCount. */ @java.lang.Override @@ -15748,7 +16164,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=439 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -15774,7 +16190,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=439 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 * @return This builder for chaining. */ @java.lang.Deprecated @@ -15799,7 +16215,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=443 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 * @return The referenceOnly. */ @java.lang.Override @@ -15820,7 +16236,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=443 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -15845,7 +16261,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=443 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java index 669545213cb3..ecd0cd4d8735 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -276,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032/google/cloud/discoveryengine/v1beta/chunk.proto\0320google/cloud/discov" + "eryengine/v1beta/common.proto\0322google/cl" - + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\2706\n\r" + + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\2207\n\r" + "SearchRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022:\n" @@ -336,14 +336,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec\032,\n\n" + "ImageQuery\022\025\n" + "\013image_bytes\030\001 \001(\tH\000B\007\n" - + "\005image\032j\n\r" + + "\005image\032\301\001\n\r" + "DataStoreSpec\022D\n\n" + "data_store\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022\023\n" - + "\006filter\030\005 \001(\tB\003\340A\001\032\204\003\n" + + "\006filter\030\005 \001(\tB\003\340A\001\022U\n\n" + + "boost_spec\030\006 \001(\013" + + "2<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecB\003\340A\001\032\204\003\n" + "\tFacetSpec\022]\n" - + "\tfacet_key\030\001 \001(\0132E.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + + "\tfacet_key\030\001 \001(\0132E.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + "\005limit\030\002 \001(\005\022\034\n" + "\024excluded_filter_keys\030\003 \003(\t\022\037\n" + "\027enable_dynamic_position\030\004 \001(\010\032\311\001\n" @@ -356,25 +358,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020case_insensitive\030\006 \001(\010\022\020\n" + "\010order_by\030\007 \001(\t\032\320\007\n" + "\tBoostSpec\022n\n" - + "\025condition_boost_specs\030\001 \003(\0132O.google.cloud.discovery" - + "engine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec\032\322\006\n" + + "\025condition_boost_specs\030\001 \003(\0132O.google.cloud.d" + + "iscoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec\032\322\006\n" + "\022ConditionBoostSpec\022\021\n" + "\tcondition\030\001 \001(\t\022\r\n" + "\005boost\030\002 \001(\002\022|\n" - + "\022boost_control_spec\030\003 \001(\0132`.google.cloud.dis" - + "coveryengine.v1beta.SearchRequest.BoostS" - + "pec.ConditionBoostSpec.BoostControlSpec\032\233\005\n" + + "\022boost_control_spec\030\003 \001(\0132`.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "t.BoostSpec.ConditionBoostSpec.BoostControlSpec\032\233\005\n" + "\020BoostControlSpec\022\022\n\n" + "field_name\030\001 \001(\t\022\206\001\n" - + "\016attribute_type\030\002 \001(\0162n.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.Bo" - + "ostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType\022\216\001\n" - + "\022interpolation_type\030\003 \001(\0162r.google.cloud.discoveryengine.v1" - + "beta.SearchRequest.BoostSpec.ConditionBo" - + "ostSpec.BoostControlSpec.InterpolationType\022\205\001\n" - + "\016control_points\030\004 \003(\0132m.google.clo" - + "ud.discoveryengine.v1beta.SearchRequest." - + "BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + + "\016attribute_type\030\002 \001(\0162n.google.cloud.discoveryengine.v1beta.SearchRe" + + "quest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType\022\216\001\n" + + "\022interpolation_type\030\003 \001(\0162r.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.BoostSpec.Con" + + "ditionBoostSpec.BoostControlSpec.InterpolationType\022\205\001\n" + + "\016control_points\030\004 \003(\0132m.google.cloud.discoveryengine.v1beta.Search" + + "Request.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + "\014ControlPoint\022\027\n" + "\017attribute_value\030\001 \001(\t\022\024\n" + "\014boost_amount\030\002 \001(\002\"M\n\r" @@ -386,31 +386,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006LINEAR\020\001\032\330\001\n" + "\022QueryExpansionSpec\022b\n" - + "\tcondition\030\001 \001(\0162O.google" - + ".cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition\022\036\n" + + "\tcondition\030\001 \001(\0162O.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.QueryExpansionSpec.Condition\022\036\n" + "\026pin_unexpanded_results\030\002 \001(\010\">\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\010\n" + "\004AUTO\020\002\032\255\001\n" + "\023SpellCorrectionSpec\022Y\n" - + "\004mode\030\001 \001(\0162K.google.cloud.discoveryengine.v1" - + "beta.SearchRequest.SpellCorrectionSpec.Mode\";\n" + + "\004mode\030\001 \001(\0162K.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.SpellCorrectionSpec.Mode\";\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\023\n" + "\017SUGGESTION_ONLY\020\001\022\010\n" + "\004AUTO\020\002\032\276\014\n" + "\021ContentSearchSpec\022f\n" - + "\014snippet_spec\030\001 \001(\0132P.google.cl" - + "oud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec\022f\n" - + "\014summary_spec\030\002 \001(\0132P.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\022{\n" - + "\027extractive_content_spec\030\003 \001(\0132Z.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec\022q\n" - + "\022search_result_mode\030\004 \001(\0162U.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.ContentSearchSpec.SearchResultMode\022b\n\n" - + "chunk_spec\030\005 \001(\0132N.goo" - + "gle.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec\032`\n" + + "\014snippet_spec\030\001 \001(\0132P.google.cloud.discoveryengine.v1beta.Searc" + + "hRequest.ContentSearchSpec.SnippetSpec\022f\n" + + "\014summary_spec\030\002 \001(\0132P.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\022{\n" + + "\027extractive_content_spec\030\003 \001(\0132Z.google.cloud.discovery" + + "engine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec\022q\n" + + "\022search_result_mode\030\004 \001(\0162U.google.cloud.discovery" + + "engine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode\022b\n\n" + + "chunk_spec\030\005 \001(\0132N.google.cloud.discoveryengine.v1beta" + + ".SearchRequest.ContentSearchSpec.ChunkSpec\032`\n" + "\013SnippetSpec\022\035\n" + "\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n" + "\016reference_only\030\002 \001(\010B\002\030\001\022\026\n" @@ -423,12 +423,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ignore_low_relevant_content\030\t \001(\010\022\'\n" + "\032ignore_jail_breaking_query\030\n" + " \001(\010B\003\340A\001\022{\n" - + "\021model_prompt_spec\030\005 \001(\0132`.google.clou" - + "d.discoveryengine.v1beta.SearchRequest.C" - + "ontentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n\r" + + "\021model_prompt_spec\030\005 \001(\0132`.google.cloud.discoveryengine.v1beta.SearchR" + + "equest.ContentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n\r" + "language_code\030\006 \001(\t\022n\n\n" - + "model_spec\030\007 \001(\0132Z.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" + + "model_spec\030\007 \001(\0132Z.google.cloud.discovery" + + "engine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" + "\023use_semantic_chunks\030\010 \001(\010\032#\n" + "\017ModelPromptSpec\022\020\n" + "\010preamble\030\001 \001(\t\032\034\n" @@ -444,28 +443,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023num_previous_chunks\030\001 \001(\005\022\027\n" + "\017num_next_chunks\030\002 \001(\005\"Q\n" + "\020SearchResultMode\022\"\n" - + "\036SEARCH_RESULT_MODE_UNSPECIFIED\020\000\022\r" - + "\n" + + "\036SEARCH_RESULT_MODE_UNSPECIFIED\020\000\022\r\n" + "\tDOCUMENTS\020\001\022\n\n" + "\006CHUNKS\020\002\032\263\001\n\r" + "EmbeddingSpec\022k\n" - + "\021embedding_vectors\030\001 \003(\0132P.google." - + "cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector\0325\n" + + "\021embedding_vectors\030\001 \003(\0132P.google.cloud.discoveryengine.v1beta.Sea" + + "rchRequest.EmbeddingSpec.EmbeddingVector\0325\n" + "\017EmbeddingVector\022\022\n\n" + "field_path\030\001 \001(\t\022\016\n" + "\006vector\030\002 \003(\002\032\304\002\n" + "%NaturalLanguageQueryUnderstandingSpec\022\227\001\n" - + "\033filter_extraction_condition\030\001 \001(\0162r.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.NaturalLanguageQuery" - + "UnderstandingSpec.FilterExtractionCondition\022.\n" + + "\033filter_extraction_condition\030\001 \001(\0162r.google.cloud.discovery" + + "engine.v1beta.SearchRequest.NaturalLangu" + + "ageQueryUnderstandingSpec.FilterExtractionCondition\022.\n" + "&geo_search_query_detection_field_names\030\002 \003(\t\"Q\n" + "\031FilterExtractionCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\032\275\001\n" + "\023SearchAsYouTypeSpec\022c\n" - + "\tcondition\030\001 \001(\0162P.google.cloud.discove" - + "ryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"A\n" + + "\tcondition\030\001 \001(\0162P.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"A\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" @@ -475,8 +473,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037search_result_persistence_count\030\002 \001(\005H\000\210\001\001B\"\n" + " _search_result_persistence_count\032\246\001\n" + "\023PersonalizationSpec\022Y\n" - + "\004mode\030\001 \001(\0162" - + "K.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + + "\004mode\030\001 \001(\0162K.google.cloud.discoveryengine.v" + + "1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\014\n" @@ -498,44 +496,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021RANK_BY_EMBEDDING\020\003\022\023\n" + "\017RANK_BY_FORMULA\020\004\"\004\010\001\020\001\"\004\010\002\020\002\"\3715\n" + "\016SearchResponse\022Q\n" - + "\007results\030\001 \003(\0132@" - + ".google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\022I\n" - + "\006facets\030\002 \003(\013" - + "29.google.cloud.discoveryengine.v1beta.SearchResponse.Facet\022d\n" - + "\024guided_search_result\030\010 \001(\0132F.google.cloud.discoveryengine" - + ".v1beta.SearchResponse.GuidedSearchResult\022\022\n\n" + + "\007results\030\001" + + " \003(\0132@.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\022I\n" + + "\006facets\030\002" + + " \003(\01329.google.cloud.discoveryengine.v1beta.SearchResponse.Facet\022d\n" + + "\024guided_search_result\030\010 \001(\0132F.google.cloud.discove" + + "ryengine.v1beta.SearchResponse.GuidedSearchResult\022\022\n\n" + "total_size\030\003 \001(\005\022\031\n" + "\021attribution_token\030\004 \001(\t\022\024\n" + "\014redirect_uri\030\014 \001(\t\022\027\n" + "\017next_page_token\030\005 \001(\t\022\027\n" + "\017corrected_query\030\007 \001(\t\022L\n" - + "\007summary\030\t \001(\0132;.google.cloud.discove" - + "ryengine.v1beta.SearchResponse.Summary\022\030\n" + + "\007summary\030\t \001(\0132;.google.cloud" + + ".discoveryengine.v1beta.SearchResponse.Summary\022\030\n" + "\020applied_controls\030\n" + " \003(\t\022e\n" - + "\025geo_search_debug_info\030\020 \003(\0132F.google.cloud.discovery" - + "engine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" - + "\024query_expansion_info\030\016 \001(\0132F." - + "google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo\022\214\001\n" - + ")natural_language_query_understanding_info\030\017 \001(" - + "\0132Y.google.cloud.discoveryengine.v1beta." - + "SearchResponse.NaturalLanguageQueryUnderstandingInfo\022U\n" - + "\014session_info\030\023 \001(\0132?.goo" - + "gle.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo\022Y\n" - + "\017one_box_results\030\024" - + " \003(\0132@.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult\032\302\010\n" + + "\025geo_search_debug_info\030\020 \003(\0132F.google.cloud.d" + + "iscoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" + + "\024query_expansion_info\030\016 \001(\0132F.google.cloud.discoveryengine.v1b" + + "eta.SearchResponse.QueryExpansionInfo\022\214\001\n" + + ")natural_language_query_understanding_info\030\017" + + " \001(\0132Y.google.cloud.discoveryengine" + + ".v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo\022U\n" + + "\014session_info\030\023 \001" + + "(\0132?.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo\022Y\n" + + "\017one_box_results\030\024 \003(\0132@.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.OneBoxResult\032\302\010\n" + "\014SearchResult\022\n\n" + "\002id\030\001 \001(\t\022?\n" + "\010document\030\002 \001(\0132-.google.cloud.discoveryengine.v1beta.Document\0229\n" + "\005chunk\030\022 \001(\0132*.google.cloud.discoveryengine.v1beta.Chunk\022g\n" - + "\014model_scores\030\004 \003(\0132Q.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.SearchResult.ModelScoresEntry\022g\n" - + "\014rank_signals\030\007 \001(\0132L.google." - + "cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032c\n" + + "\014model_scores\030\004 \003(\0132Q.google.cloud.discoveryen" + + "gine.v1beta.SearchResponse.SearchResult.ModelScoresEntry\022g\n" + + "\014rank_signals\030\007 \001(\0132L.google.cloud.discoveryengine.v1beta.Sea" + + "rchResponse.SearchResult.RankSignalsB\003\340A\001\032c\n" + "\020ModelScoresEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(" - + "\0132/.google.cloud.discoveryengine.v1beta.DoubleList:\0028\001\032\362\004\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.discoveryengine.v1beta.DoubleList:\0028\001\032\362\004\n" + "\013RankSignals\022*\n" + "\030keyword_similarity_score\030\001 \001(\002B\003\340A\001H\000\210\001\001\022!\n" + "\017relevance_score\030\002 \001(\002B\003\340A\001H\001\210\001\001\022+\n" @@ -546,8 +544,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014document_age\030\007 \001(\002B\003\340A\001H\005\210\001\001\022!\n" + "\017boosting_factor\030\010 \001(\002B\003\340A\001H\006\210\001\001\022\031\n" + "\014default_rank\030 \001(\002B\003\340A\001\022v\n" - + "\016custom_signals\030! \003(\0132Y.google.cloud.discover" - + "yengine.v1beta.SearchResponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + + "\016custom_signals\030! \003(\0132Y.google.cloud." + + "discoveryengine.v1beta.SearchResponse.Se" + + "archResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + "\014CustomSignal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\002B\003\340A\001B\033\n" @@ -560,41 +559,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_boosting_factorJ\004\010\005\020\006\032\201\002\n" + "\005Facet\022\013\n" + "\003key\030\001 \001(\t\022T\n" - + "\006values\030\002 \003" - + "(\0132D.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + + "\006values\030\002 \003(\0132D.google.cloud.discoveryengin" + + "e.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + "dynamic_facet\030\003 \001(\010\032~\n\n" + "FacetValue\022\017\n" + "\005value\030\001 \001(\tH\000\022A\n" - + "\010interval\030\002" - + " \001(\0132-.google.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + + "\010interval\030\002 \001(\0132-.googl" + + "e.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + "\005count\030\003 \001(\003B\r\n" + "\013facet_value\032\363\001\n" + "\022GuidedSearchResult\022y\n" - + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discoveryengine.v1beta.Sear" - + "chResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discoveryengine.v1b" + + "eta.SearchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + "\023follow_up_questions\030\002 \003(\t\032E\n" + "\023RefinementAttribute\022\025\n\r" + "attribute_key\030\001 \001(\t\022\027\n" + "\017attribute_value\030\002 \001(\t\032\263\014\n" + "\007Summary\022\024\n" + "\014summary_text\030\001 \001(\t\022q\n" - + "\027summary_skipped_reasons\030\002 \003(\0162P.google.cloud.discover" - + "yengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" - + "\021safety_attributes\030\003 \001(\0132L.google.cloud.discoveryengine.v1b" - + "eta.SearchResponse.Summary.SafetyAttributes\022n\n" - + "\025summary_with_metadata\030\004 \001(\0132O.goo" - + "gle.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata\0326\n" + + "\027summary_skipped_reasons\030\002 \003(\0162P.google.cloud." + + "discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" + + "\021safety_attributes\030\003 \001(\0132L.google.cloud.discoveryen" + + "gine.v1beta.SearchResponse.Summary.SafetyAttributes\022n\n" + + "\025summary_with_metadata\030\004 \001(\0132O.google.cloud.discoveryengine.v1beta" + + ".SearchResponse.Summary.SummaryWithMetadata\0326\n" + "\020SafetyAttributes\022\022\n\n" + "categories\030\001 \003(\t\022\016\n" + "\006scores\030\002 \003(\002\032k\n" + "\020CitationMetadata\022W\n" - + "\tcitations\030\001 \003(\0132D.google.cloud.discoveryengin" - + "e.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + + "\tcitations\030\001 \003(\0132D.google.cloud.discov" + + "eryengine.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022[\n" - + "\007sources\030\003 \003(\0132J.google." - + "cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource\032)\n" + + "\007sources\030\003 \003(\0132J" + + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource\032)\n" + "\016CitationSource\022\027\n" + "\017reference_index\030\004 \001(\003\032\220\002\n" + "\tReference\022\r\n" @@ -602,17 +601,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002 \001(\tB/\340A\002\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\003 \001(\t\022j\n" - + "\016chunk_contents\030\004 \003(\0132R.google.cloud.discoveryengine.v1beta" - + ".SearchResponse.Summary.Reference.ChunkContent\0328\n" + + "\016chunk_contents\030\004 \003(\0132R.google.cloud.discoveryengin" + + "e.v1beta.SearchResponse.Summary.Reference.ChunkContent\0328\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" + "\017page_identifier\030\002 \001(\t\032\352\001\n" + "\023SummaryWithMetadata\022\017\n" + "\007summary\030\001 \001(\t\022g\n" - + "\021citation_metadata\030\002 \001(\0132L.google.cloud.discoveryeng" - + "ine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" - + "references\030\003 \003(\0132E.google." - + "cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference\"\343\002\n" + + "\021citation_metadata\030\002 \001(\0132L.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" + + "references\030\003 \003(\0132E" + + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference\"\343\002\n" + "\024SummarySkippedReason\022&\n" + "\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n" @@ -633,21 +632,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NaturalLanguageQueryUnderstandingInfo\022\031\n" + "\021extracted_filters\030\001 \001(\t\022\027\n" + "\017rewritten_query\030\002 \001(\t\022\230\001\n" - + "\033structured_extracted_filter\030\003 \001(\0132s.google.cloud.d" - + "iscoveryengine.v1beta.SearchResponse.Nat" - + "uralLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\210\017\n" + + "\033structured_extracted_filter\030\003 \001(\0132s.google" + + ".cloud.discoveryengine.v1beta.SearchResp" + + "onse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\210\017\n" + "\031StructuredExtractedFilter\022\222\001\n\n" - + "expression\030\001 \001(\0132~.google.cloud.discoveryengine.v1beta.SearchResp" - + "onse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression\032M\n" + + "expression\030\001 \001(\0132~.google.cloud.discoveryengine.v1beta.Se" + + "archResponse.NaturalLanguageQueryUnderst" + + "andingInfo.StructuredExtractedFilter.Expression\032M\n" + "\020StringConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\016\n" + "\006values\030\002 \003(\t\022\025\n\r" + "query_segment\030\003 \001(\t\032\372\002\n" + "\020NumberConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\244\001\n\n" - + "comparison\030\002 \001(\0162\217\001.google.cloud.dis" - + "coveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Structu" - + "redExtractedFilter.NumberConstraint.Comparison\022\r\n" + + "comparison\030\002 \001(\0162\217\001.google.cloud.discoveryengine.v1beta.SearchRespon" + + "se.NaturalLanguageQueryUnderstandingInfo" + + ".StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + "\005value\030\003 \001(\001\022\025\n\r" + "query_segment\030\004 \001(\t\"\204\001\n\n" + "Comparison\022\032\n" @@ -664,38 +664,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tlongitude\030\005 \001(\001\022\030\n" + "\020radius_in_meters\030\003 \001(\002\032\245\001\n\r" + "AndExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud." - + "discoveryengine.v1beta.SearchResponse.Na" - + "turalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression\032\244\001\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.SearchRes" + + "ponse.NaturalLanguageQueryUnderstandingI" + + "nfo.StructuredExtractedFilter.Expression\032\244\001\n" + "\014OrExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.SearchResp" - + "onse.NaturalLanguageQueryUnderstandingIn" - + "fo.StructuredExtractedFilter.Expression\032\275\006\n\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.Se" + + "archResponse.NaturalLanguageQueryUnderst" + + "andingInfo.StructuredExtractedFilter.Expression\032\275\006\n\n" + "Expression\022\242\001\n" - + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.discoveryengine.v1bet" - + "a.SearchResponse.NaturalLanguageQueryUnd" - + "erstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\242\001\n" - + "\021number_constraint\030\002 \001(\0132\204\001.google.cloud.discoveryengine." - + "v1beta.SearchResponse.NaturalLanguageQue" - + "ryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintH\000\022\254\001\n" - + "\026geolocation_constraint\030\003 \001(\0132\211\001.google.cloud.discov" - + "eryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Structured" - + "ExtractedFilter.GeolocationConstraintH\000\022\226\001\n" - + "\010and_expr\030\004 \001(\0132\201\001.google.cloud.disco" - + "veryengine.v1beta.SearchResponse.Natural" - + "LanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpressionH\000\022\224\001\n" - + "\007or_expr\030\005 \001(\0132\200\001.google.cloud.discoveryengi" + + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.discoveryengi" + "ne.v1beta.SearchResponse.NaturalLanguage" - + "QueryUnderstandingInfo.StructuredExtractedFilter.OrExpressionH\000B\006\n" + + "QueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\242\001\n" + + "\021number_constraint\030\002 \001(\0132\204\001.google.cloud.discover" + + "yengine.v1beta.SearchResponse.NaturalLan" + + "guageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintH\000\022\254\001\n" + + "\026geolocation_constraint\030\003 \001(\0132\211\001.google.clou" + + "d.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.St" + + "ructuredExtractedFilter.GeolocationConstraintH\000\022\226\001\n" + + "\010and_expr\030\004 \001(\0132\201\001.google.clo" + + "ud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.S" + + "tructuredExtractedFilter.AndExpressionH\000\022\224\001\n" + + "\007or_expr\030\005 \001(\0132\200\001.google.cloud.disco" + + "veryengine.v1beta.SearchResponse.Natural" + + "LanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpressionH\000B\006\n" + "\004expr\032-\n" + "\013SessionInfo\022\014\n" + "\004name\030\001 \001(\t\022\020\n" + "\010query_id\030\002 \001(\t\032\265\002\n" + "\014OneBoxResult\022a\n" - + "\014one_box_type\030\001 \001(\0162K." - + "google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType\022X\n" - + "\016search_results\030\002 \003(\0132@.google.cloud.discov" - + "eryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + + "\014one_box_type\030\001 \001(\0162K.google.cloud.discoveryengine.v1b" + + "eta.SearchResponse.OneBoxResult.OneBoxType\022X\n" + + "\016search_results\030\002 \003(\0132@.google.clou" + + "d.discoveryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + "OneBoxType\022\034\n" + "\030ONE_BOX_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006PEOPLE\020\001\022\020\n" @@ -703,28 +703,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005SLACK\020\003\022\023\n" + "\017KNOWLEDGE_GRAPH\020\0042\277\007\n\r" + "SearchService\022\243\003\n" - + "\006Search\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.google" - + ".cloud.discoveryengine.v1beta.SearchResp" - + "onse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving_config=" - + "projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zg\"b/v1beta/{serv" - + "ing_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:s" - + "earch:\001*Zd\"_/v1beta/{serving_config=proj" - + "ects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" - + "SearchLite\0222.google.cloud.discoveryengine.v1b" - + "eta.SearchRequest\0323.google.cloud.discove" - + "ryengine.v1beta.SearchResponse\"\273\002\202\323\344\223\002\264\002" - + "\"X/v1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:" - + "searchLite:\001*Zk\"f/v1beta/{serving_config=projects/*/locations/*/collections/*/da" - + "taStores/*/servingConfigs/*}:searchLite:\001*Zh\"c/v1beta/{serving_config=projects/*" - + "/locations/*/collections/*/engines/*/ser" - + "vingConfigs/*}:searchLite:\001*\032R\312A\036discove" - + "ryengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\231\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\022Se" - + "archServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryengin" - + "epb;discoveryenginepb\242\002\017DISCOVERYENGINE\252" - + "\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002#" - + "Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&Go" - + "ogle::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\006Search\0222.google.cloud.discoveryengine.v1beta.SearchRequest\032" + + "3.google.cloud.discoveryengine.v1beta.Se" + + "archResponse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving" + + "_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zg\"b/v1be" + + "ta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConf" + + "igs/*}:search:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/collections/*" + + "/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" + + "SearchLite\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.google.cloud" + + ".discoveryengine.v1beta.SearchResponse\"\273" + + "\002\202\323\344\223\002\264\002\"X/v1beta/{serving_config=projec" + + "ts/*/locations/*/dataStores/*/servingConfigs/*}:searchLite:\001*Zk\"f/v1beta/{servin" + + "g_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:sea" + + "rchLite:\001*Zh\"c/v1beta/{serving_config=projects/*/locations/*/collections/*/engin" + + "es/*/servingConfigs/*}:searchLite:\001*\032R\312A" + + "\036discoveryengine.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platformB\231\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\022SearchServiceProtoP\001ZQcloud.google" + + ".com/go/discoveryengine/apiv1beta/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" + + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" + + "eta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -795,7 +795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor, new java.lang.String[] { - "DataStore", "Filter", + "DataStore", "Filter", "BoostSpec", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto index 67d723af6232..fcbd928d3c29 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto @@ -105,6 +105,8 @@ message SearchRequest { // Required. Full resource name of // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + // The path must include the project number, project id is not supported for + // this field. string data_store = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -116,6 +118,11 @@ message SearchRequest { // specified by data_store field. For more information on filtering, see // [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Boost specification to boost certain documents. + // For more information on boosting, see + // [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) + BoostSpec boost_spec = 6 [(google.api.field_behavior) = OPTIONAL]; } // A facet specification to perform faceted search.